From 76e4e16aeb1db6c6793df091759f9aa5ef70e41c Mon Sep 17 00:00:00 2001 From: hither2forlorn Date: Sun, 28 Feb 2010 13:19:20 +0000 Subject: updating the names of the directories to match that of the excel sheet. --- (limited to 'examples/NumberWords/js/lesson.js') diff --git a/examples/NumberWords/js/lesson.js b/examples/NumberWords/js/lesson.js deleted file mode 100755 index 4eed9b0..0000000 --- a/examples/NumberWords/js/lesson.js +++ /dev/null @@ -1,110 +0,0 @@ -$(document).ready (function(){ - var k = Karma ({ - image: [{name:"football", file:"football.png"}] - }); - k.ready(function() { - var ELEVEN=["30","40","50","60","70","80"]; //coordinates of each answer - var TWELVE=["32","33","34","35","36","37"]; - var THIRTEEN=["32","42","52","62","72","82","92","102"]; - var FOURTEEN=["39","49","59","69","79","89","99","109"]; - var FIFTEEN=["38","48","58","68","78","88","98"]; - var SIXTEEN=["47","56","65","74","83","92","101"]; - var SEVENTEEN=["210","29","28","27","26","25","24","23"]; - var EIGHTEEN=["03","04","05","06","07","08","09","010"]; - var NINETEEN=["10","11","12","13","14","15","16","17"]; - var TWENTY=["103","104","105","106","107","108"]; - var ANS=["eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen","twenty"]; - var ARR=[ELEVEN,TWELVE,THIRTEEN,FOURTEEN,FIFTEEN,SIXTEEN,SEVENTEEN,EIGHTEEN,NINETEEN,TWENTY]; //list of all coordinates - var opt="ONRELEVENCOTIXRAJSFTMNCNNTHIRTEENEEEWTLGEERTITEEGRFTATWGETLRMXWCAEHENVEIAQPFNTNEESOTETMTERVFIFTEENYEAEFOURTEENNTSCNCNETON"; - var question=[0,1,2,3,4,5,6,7,8,9]; //this array will be shuffled and the variable key will be used to generate random questions - var COLOR=["green","purple","orange","brown","pink"]; //some colors to display correct list on right in random color - var counter=0,key; - var paper,set; - var totalQuest = 10; //total number of questions before gameover is displayed - var isActive=false; - - var shuffle = function (choices) { - for(var i=0;i div").hide(); - $("#over").hide(); - var str=""; - for(var i=0;i<11;i++) { - str+=""; - for(var j=0;j<11;j++) { - str+=""+opt.charAt((i*11)+j)+""; - } - str+=""; - } - $('table').append(str); //table with id and class as cell - for(var k=0;k