Index: help/help.js |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/help/help.js |
@@ -0,0 +1,15 @@ |
+var helpParent = document.getElementById('help'); |
+ |
+var title = document.createElement('h2'); |
+title.appendChild(document.createTextNode(' ' + translate.get('help'))); |
+helpParent.appendChild(title); |
+ |
+var help = ['help_not_working', 'help_unblocked', 'help_overblocked', 'help_my_overblocked', 'help_unsolved']; |
+for(i in help) { |
+ var subtitle = document.createElement('h3'); |
+ subtitle.appendChild(document.createTextNode(translate.get(help[i]))); |
+ helpParent.appendChild(subtitle); |
+ var text = document.createElement('p'); |
+ text.innerHTML = translate.get(help[i] + '_text'); |
+ helpParent.appendChild(text); |
+} |