summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleš Smodiš <aless@guru.si>2015-10-02 10:00:40 +0200
committerAleš Smodiš <aless@guru.si>2015-10-02 10:00:40 +0200
commitcf46f01c7d227375f9d6bf46da0ee97b132a1b82 (patch)
treee6785224764edf14d71bcd3fa31335d18c2123d6
parent31fd0269ba3583765f5d6517365130a8e27878eb (diff)
Remove code rot: class "translatable" is not used anymore.
-rw-r--r--index.html12
-rw-r--r--js/codeq/hint.js4
-rw-r--r--js/codeq/problem.js10
3 files changed, 13 insertions, 13 deletions
diff --git a/index.html b/index.html
index c21850b..d594f0c 100644
--- a/index.html
+++ b/index.html
@@ -159,8 +159,8 @@
<div class="row">
<div class="col-lg-3 col-md-6 col-sm-12 block block1">
<div class="description-container">
- <h2 class="title translatable" data-dict="prolog" data-tkey="slug"></h2>
- <div class="description translatable" data-dict="prolog" data-tkey="description"></div>
+ <h2 class="title" data-dict="prolog" data-tkey="slug"></h2>
+ <div class="description" data-dict="prolog" data-tkey="description"></div>
</div>
<div class="block-label">Instructions</div>
</div>
@@ -196,8 +196,8 @@
<div class="col-lg-12 col-md-12 col-sm-12 block block1">
<div class="scrollable-content-container">
<div class="description-container">
- <h2 class="title translatable" data-dict="python" data-tkey="slug"></h2>
- <div class="description translatable" data-dict="python" data-tkey="description"></div>
+ <h2 class="title" data-dict="python" data-tkey="slug"></h2>
+ <div class="description" data-dict="python" data-tkey="description"></div>
</div>
</div>
<div class="block-label">Instructions</div>
@@ -237,8 +237,8 @@
<div class="row">
<div class="col-lg-3 col-md-6 col-sm-12 block block1">
<div class="description-container">
- <h2 class="title translatable" data-dict="robot" data-tkey="slug"></h2>
- <div class="description translatable" data-dict="robot" data-tkey="description"></div>
+ <h2 class="title" data-dict="robot" data-tkey="slug"></h2>
+ <div class="description" data-dict="robot" data-tkey="description"></div>
</div>
<div class="block-label">Instructions</div>
</div>
diff --git a/js/codeq/hint.js b/js/codeq/hint.js
index 75df457..fb07cfb 100644
--- a/js/codeq/hint.js
+++ b/js/codeq/hint.js
@@ -205,7 +205,7 @@
trContent[lang] = msg;
}
}
- jq = $('<div class="hint-static translatable" ' + ta(trContent) + '></div>');
+ jq = $('<div class="hint-static" ' + ta(trContent) + '></div>');
hintIndex++;
if (jqButton) {
if (hintIndex < Nhints) {
@@ -232,7 +232,7 @@
if (Nhints > 1) {
// hint sequence
jqContainer = $('<div class="hint-static-group"></div>');
- jqButton = $('<a class="hint-static-link translatable" ' + ta(trButton) + '></a>');
+ jqButton = $('<a class="hint-static-link" ' + ta(trButton) + '></a>');
jqHints.append(jqContainer);
jqContainer.append(jqButton);
jqButton.on('click', function () {
diff --git a/js/codeq/problem.js b/js/codeq/problem.js
index a875c45..e430b21 100644
--- a/js/codeq/problem.js
+++ b/js/codeq/problem.js
@@ -204,16 +204,16 @@
var langDict = convertTranslations(rawTranslations, 'name', 'description'), // this will be the resulting dictionary: multi-level keys that lead up to the lang-dict
groupDict, problemDict;
// title: HTML structure for "name" and "desc"
- html.push('<h1 class="language-title translatable" ', ta(langDict.name), '></h1><hr>');
- html.push('<div class="language-description translatable" ', ta(langDict.description), '></div>');
+ html.push('<h1 class="language-title" ', ta(langDict.name), '></h1><hr>');
+ html.push('<div class="language-description" ', ta(langDict.description), '></div>');
// content: problem directory
html.push('<ul class="language-problems">');
for (i = 0; i < Ngroups; i++) {
group = groups[i] || {};
groupDict = convertTranslations(group.translations, 'name', 'description'); // the group-level translations, added will
// group content
- html.push('<li><div class="group-title translatable" ', ta(groupDict.name), '></div>');
- html.push('<div class="group-description translatable" ', ta(groupDict.description), '></div>');
+ html.push('<li><div class="group-title" ', ta(groupDict.name), '></div>');
+ html.push('<div class="group-description" ', ta(groupDict.description), '></div>');
html.push('<ul class="group-problems">');
// problem content
problems = group.problems || [];
@@ -221,7 +221,7 @@
for (j = 0; j < Nproblems; j++) {
problem = problems[j] || {};
problemDict = convertTranslations(problem.translations, 'name');
- html.push('<li><a class="problem-', '' + problemReferences.length, ' translatable" ', ta(problemDict.name), '></a></li>');
+ html.push('<li><a class="problem-', '' + problemReferences.length, '" ', ta(problemDict.name), '></a></li>');
problemReferences.push({'g': group.identifier || 'nogroup', 'p': problem.identifier || 'noproblem', 'id': problem.id});
}
html.push('</ul></li>');