summaryrefslogtreecommitdiff
path: root/js/codeq
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2015-10-16 16:30:04 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2015-10-16 16:30:04 +0200
commit932aac1a1930fa43ce2d0f3ec7bcff01e3c84d99 (patch)
treec141dacd8e7a6ce97766b4384a8a8296c86cbb4a /js/codeq
parenta630def321ae4f77156d3e95ec40516c1093e7aa (diff)
Improve (hopefully) the problem list screen
Diffstat (limited to 'js/codeq')
-rw-r--r--js/codeq/problem_list.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/js/codeq/problem_list.js b/js/codeq/problem_list.js
index eae86ed..4a3d24d 100644
--- a/js/codeq/problem_list.js
+++ b/js/codeq/problem_list.js
@@ -205,15 +205,14 @@
groupDict, problemDict;
// title: HTML structure for "name" and "desc"
html.push('<h1 class="language-title" ', ta(langDict.name), '></h1><hr>');
- html.push('<div class="language-description" ', ta(langDict.description), '></div>');
+ html.push('<p class="language-description" ', ta(langDict.description), '></p>');
// 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" ', ta(groupDict.name), '></div>');
- html.push('<div class="group-description" ', ta(groupDict.description), '></div>');
+ html.push('<h2 class="group-title" ', ta(groupDict.name), '></h2>');
+ html.push('<p class="group-description" ', ta(groupDict.description), '></p>');
html.push('<ul class="group-problems">');
// problem content
problems = group.problems || [];
@@ -224,9 +223,8 @@
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>');
+ html.push('</ul>');
}
- html.push('</ul>');
return {
'language': languageIdentifier, // 'prolog', 'python', ...