Last active
August 29, 2015 14:18
-
-
Save stevenRush/784a9698b75ac6a3bc30 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Инструкция по использованию: зайти в задание, скопировать выражение javascript: ... в адресную строку и нажать Enter | |
Внимание, браузер почему-то убирает "javascript:" из строки, поэтому нужно дописывать самому в ее начале | |
gap filler: Там, где нужно заполнять пропуски | |
javascript:for(var i = 0; i < I.length; ++i) { d = document.getElementById("Gap"+i); if (d !== null){d.value = I[i][1][0];}else{d = document.getElementById("Q_" + i + "_Guess"); d.value = I[i][3][0][0];}} | |
single answer: Там, где нужно выбрать один вариант из предложенных. Нажимаете кнопку "Show all questions" и применяете скрипт | |
javascript:for (var n = 0; n < I.length; ++n) {for (var i = 0; i < I[n][3].length; ++i) { if (I[n][3][i][3] === 100) document.getElementById('Q_' + n + '_' + i).style.fontWeight = 'bold' }} alert('Just choose bold answers!'); | |
multiple choice question: Там, где нужно выбрать несколько вариантов | |
javascript:for(var i = 0; i < I.length; ++i) { for(var j = 0; j < I[i][3].length; ++j) { if (I[i][3][j][3] === 100) { document.getElementById("Q_" + i + "_" + j + "_Chk").checked = true; } } } | |
word enter: Там, где нужно вводить слова. Нажимаете кнопочку "show all questions" и дальше используете скрипт | |
javascript:for(var i=0; i < I.length; ++i) { document.getElementById("Q_" + i + "_Guess").value = I[i][3][0][0]; } | |
Там где нужно выбирать один вариант из выпадающего списка (как например в unit10, HP1) | |
javascript:for(var i=0; i < Status.length; ++i) { t=i+1; a = document.getElementById('s' + t + '_' + t); for(var j = 0; j < a.options.length; ++j) { if (a.options[j].value == t) a.selectedIndex = j; }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment