Conjuguemos Auto-Complete Script
This script will automatically complete Conjuguemos with your specified results, such as amount correct, amount incorrect, and the time it took to do it all. So first navigate to a page where you start the practice thing up… For example, here:
Once you paste the script into your browser and run it, a few message boxes will show, asking you for these settings.
To run Javascript, for let’s say Google Chrome, you just enter “javascript:” and then your javascript code in the URL box.
The Javascript script is:
if (start == 0)
{
if (activityType == "vocabulary") {
jQuery.ajax('/au.php?x=sa&t='+activityType);
randomizeList("yes");
setvariable();
}
else if (activityType == "verbs") {
jQuery.ajax('/au.php?x=sa&t='+activityType);
howToSelectVerbs('yes');
setvariable();
} else {
jQuery.ajax('/au.php?x=sa&t='+activityType);
}
}
var getCorrect = parseInt(prompt("How many would you like to get correct?", 1));
var getIncorrect = parseInt(prompt("How many would you like to get incorrect?", 1));
var qTime = parseInt(prompt("How much time would you like each question to take? (in seconds)", 33));
var totalSecs = (getCorrect + getIncorrect) * qTime;
tmin = Math.round(totalSecs / 60);
tsec = Math.round(totalSecs % 60);
if(tmin > 59)
{
tmin = 59;
tsec = 58;
}
var yi = 0;
for(yi = 0; yi < getIncorrect; yi++)
{
$('#response').val(solution + yi);
verifyAnswer();
$("#form").submit();
}
for(yi = 0; yi < getCorrect; yi++)
{
$('#response').val(solution);
verifyAnswer();
$("#form").submit();
}
stopClock();
alert("Done! Click 'Print Results', check your results, and if all is good click 'Record/send results'.
Create by Stevie Hetelekides.");
So to do it in Google Chrome, you’d navigate to the Conjuguemos page where you begin practice(above), and then you’d put this into the URL box:
javascript: *AND THE CODE ABOVE*
Warning: When pasting into the Google Chrome URL box, the “javascript:” prefix gets removed/trimed.
This is really the first thing I’ve ever done, so don’t yell at me! Austin…