From 3d25f9304d97eb339db1b13725a2f20df4ca0266 Mon Sep 17 00:00:00 2001 From: Bryan Berry Date: Mon, 01 Mar 2010 14:32:49 +0000 Subject: restore accidentally deleted files in English Animal Identification lesson --- diff --git a/examples/old/adding_up_to_10_canvas/assets/audio/correct.ogg b/examples/English_Animal_Identification/assets/audio/correct.ogg index a0d9e3a..a0d9e3a 100755 --- a/examples/old/adding_up_to_10_canvas/assets/audio/correct.ogg +++ b/examples/English_Animal_Identification/assets/audio/correct.ogg Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/assets/audio/incorrect.ogg b/examples/English_Animal_Identification/assets/audio/incorrect.ogg index 4805e55..4805e55 100755 --- a/examples/old/adding_up_to_10_canvas/assets/audio/incorrect.ogg +++ b/examples/English_Animal_Identification/assets/audio/incorrect.ogg Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/1.png b/examples/English_Animal_Identification/assets/image/1.png new file mode 100755 index 0000000..fe825da --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/1.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/2.png b/examples/English_Animal_Identification/assets/image/2.png new file mode 100755 index 0000000..758d6f5 --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/2.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/3.png b/examples/English_Animal_Identification/assets/image/3.png new file mode 100755 index 0000000..2c86afb --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/3.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/4.png b/examples/English_Animal_Identification/assets/image/4.png new file mode 100755 index 0000000..8253cc5 --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/4.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/5.png b/examples/English_Animal_Identification/assets/image/5.png new file mode 100755 index 0000000..609ab6e --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/5.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/6.png b/examples/English_Animal_Identification/assets/image/6.png new file mode 100755 index 0000000..ccc9cf1 --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/6.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/background.png b/examples/English_Animal_Identification/assets/image/background.png new file mode 100755 index 0000000..146c777 --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/background.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/bear.png b/examples/English_Animal_Identification/assets/image/bear.png new file mode 100755 index 0000000..fe825da --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/bear.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/correct.png b/examples/English_Animal_Identification/assets/image/correct.png new file mode 100755 index 0000000..d6e54a8 --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/correct.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/cow.png b/examples/English_Animal_Identification/assets/image/cow.png new file mode 100755 index 0000000..758d6f5 --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/cow.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/elephant.png b/examples/English_Animal_Identification/assets/image/elephant.png new file mode 100755 index 0000000..2c86afb --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/elephant.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/goat.png b/examples/English_Animal_Identification/assets/image/goat.png new file mode 100755 index 0000000..ccc9cf1 --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/goat.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/horse.png b/examples/English_Animal_Identification/assets/image/horse.png new file mode 100755 index 0000000..8253cc5 --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/horse.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/image_name/1.png b/examples/English_Animal_Identification/assets/image/image_name/1.png new file mode 100755 index 0000000..6f01040 --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/image_name/1.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/image_name/10.png b/examples/English_Animal_Identification/assets/image/image_name/10.png new file mode 100755 index 0000000..788fda4 --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/image_name/10.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/image_name/2.png b/examples/English_Animal_Identification/assets/image/image_name/2.png new file mode 100755 index 0000000..143ae9d --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/image_name/2.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/image_name/3.png b/examples/English_Animal_Identification/assets/image/image_name/3.png new file mode 100755 index 0000000..eb0bfdf --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/image_name/3.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/image_name/4.png b/examples/English_Animal_Identification/assets/image/image_name/4.png new file mode 100755 index 0000000..c602d76 --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/image_name/4.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/image_name/5.png b/examples/English_Animal_Identification/assets/image/image_name/5.png new file mode 100755 index 0000000..6211dd2 --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/image_name/5.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/image_name/6.png b/examples/English_Animal_Identification/assets/image/image_name/6.png new file mode 100755 index 0000000..8e63238 --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/image_name/6.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/image_name/7.png b/examples/English_Animal_Identification/assets/image/image_name/7.png new file mode 100755 index 0000000..9be09b3 --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/image_name/7.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/image_name/8.png b/examples/English_Animal_Identification/assets/image/image_name/8.png new file mode 100755 index 0000000..efc190e --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/image_name/8.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/image_name/9.png b/examples/English_Animal_Identification/assets/image/image_name/9.png new file mode 100755 index 0000000..3e22423 --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/image_name/9.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/incorrect.png b/examples/English_Animal_Identification/assets/image/incorrect.png new file mode 100755 index 0000000..789db87 --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/incorrect.png Binary files differ diff --git a/examples/English_Animal_Identification/assets/image/tiger.png b/examples/English_Animal_Identification/assets/image/tiger.png new file mode 100755 index 0000000..609ab6e --- /dev/null +++ b/examples/English_Animal_Identification/assets/image/tiger.png Binary files differ diff --git a/examples/English_Animal_Identification/css/lesson.css b/examples/English_Animal_Identification/css/lesson.css new file mode 100755 index 0000000..d3f1795 --- /dev/null +++ b/examples/English_Animal_Identification/css/lesson.css @@ -0,0 +1,79 @@ +@CHARSET "UTF-8"; +#kMain { + background: url(../assets/image/background.png) no-repeat; + -moz-background-size: 100% 100%; + -webkit-background-size: 100% 100%; +} + +#questionBox{ + color: blue; + width: 40%; + font-weight: bold; + font-size: 3em; + margin-top: 10%; + margin-left: 15%; +} + +#imageBox{ + width: 220px; + height: 220px; +} + +.imageBox{ + margin-top: 2%; + margin-left: 20%; + width: 220px; + height: 220px; + visibility: hidden; +} + +#options{ + margin-left:5%; + margin-top:2%; + width: 70%; + height: 2em; +} + +.option{ + width: 22%; + height: 40px; + display:inline-block; + background-color: yellow; + padding:5px; + border: 2px solid green; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + cursor: pointer; + font-size: 3em; + text-align: center; +} + +.option:hover{ + background-color: rgba(0, 255, 255, 1); +} + +/*.playAgain{ + position:absolute; + top: 10px; + margin-left:220px; + width:115px; + height: 30px; + padding: 2px 2px 2px 2px; + } +input{ + color:green; + +} + +#gameOver{ + margin-left:300px; + width: 180px; + height: 20px; + display: none; + font: 25px "Rockwell Extra Bold", Geneva, Arial, Helvetica, sans-serif,Times New Roman; + font-weight: bold; + background-color: #ccc; + padding: 10px; +} + +*/ \ No newline at end of file diff --git a/examples/English_Animal_Identification/index.html b/examples/English_Animal_Identification/index.html index f315207..e08f815 100755 --- a/examples/English_Animal_Identification/index.html +++ b/examples/English_Animal_Identification/index.html @@ -63,4 +63,4 @@
- + \ No newline at end of file diff --git a/examples/English_Animal_Identification/js/lesson.js b/examples/English_Animal_Identification/js/lesson.js index 06c73f7..f932b4c 100755 --- a/examples/English_Animal_Identification/js/lesson.js +++ b/examples/English_Animal_Identification/js/lesson.js @@ -156,4 +156,4 @@ $(document).ready( }); //end of games -}); +}); \ No newline at end of file diff --git a/examples/English_Animal_Identification/js/lesson.js~ b/examples/English_Animal_Identification/js/lesson.js~ new file mode 100755 index 0000000..4d60c7d --- /dev/null +++ b/examples/English_Animal_Identification/js/lesson.js~ @@ -0,0 +1,191 @@ +$(document).ready( + function(){ + + var k = Karma({ + audio: [{'name':'correct','file':'correct.ogg'}, + {'name':'incorrect','file':'incorrect.ogg'} + ]}); + + k.scaleWindow(); + $.i18n.setLocale('ne'); + + k.ready( + function(){ + + var flag, i ,j; + var object_counter = 1; + var imgNameRand = []; + var optPosition = []; + var optOtherPos = []; + var imageObject = []; + var imgNames = ["Bear", "Cow", "Elephant", "Horse", "Tiger", "Goat"]; + var correctPosition; + var selectedOption; + var score = 0; + var wrong_selected = 0; //wrong option selected so don't score up + var pos; + var t; + var current_image; + + var $help = $('#kHelpText').dialog({ + position:[ "right", "top"], modal:'true',autoOpen:false + }); + + var $feedback = $('#feedback').feedback(); + + $('#kHeaderHelpBtn').click(function(){ $help.dialog('open');}); + + + $('#kHeader').kHeader({'title': 'English Animal Identification', + lessonPlan: true, teachersNote: true}); + + var kFooter = $('#kFooter').kFooter({'winningScore': 6}); + kFooter.bind('kFooterWinGame', + function(){ + $('.optImg').hide(); + $('.imageBox').hide(); + $('#gameOver').show(); + }); + kFooter.bind('kFooterRestart', + function() { + object_counter = 1; + imgNameRand = []; + optPosition = []; + optOtherPos = []; + imageObject = []; + score = 0; + wrong_selected = 0; //wrong option selected so don't score up + + load_images(); + game(); + + } + ); + + load_images(); //load the image numbers for random display + game(); //let the game begin + + + function checkDisplay(){ //Displays the correct and incorrect info + if(wrong_selected == 1){ + $feedback.feedback('incorrect'); + } + else if (object_counter === 7 ){ + $feedback.feedback('win'); + } else{ + $feedback.feedback('correct'); + } + } + + $("#anchorPlayAgain").click(function(){ + $('#gameOver').hide(); + $('.optImg').show(); + $('.imageBox').show(); + load_images(); + score = 0; + object_counter = 1; + wrong_selected = 0; + //display_score(); + kFooter.kFooter('reset'); + game(); + + }); + $("#anchorOpt0").click(function(){ + selected_Option_Process('0'); + }); + $("#anchorOpt1").click(function(){ + selected_Option_Process('1'); + }); + $("#anchorOpt2").click(function(){ + selected_Option_Process('2'); + }); + $("#anchorOpt3").click(function(){ + selected_Option_Process('3'); + }); + + + function load_images(){ + imageObject = k.shuffle([1, 2, 3, 4, 5, 6]); + } + + function selected_Option_Process(selectedOption){ + + if(selectedOption == correctPosition){ + object_counter++; + wrong_selected = 0; + score++; + kFooter.kFooter('inc'); + kFooter.kFooter('incTotal'); + checkDisplay(); + game(); + } + else { + wrong_selected = 1; + kFooter.kFooter('incTotal'); + checkDisplay(); + } + + } + + function game(){ + + wrong_selected = 0; + current_image = object_counter%6; + document.getElementById("imgObject").src = "assets/image/" + + imageObject[current_image] + ".png"; + + //find correct answer and apply it to the position + var currentImage = imageObject[current_image]; + imgNameRand[0] = currentImage; + //generate choices + + for(i=1; i<4; i++){ + do{ + flag = 0; + imgNameRand[i] = k.rand(1, 6); + for(j=0; j + + + Lesson Plan for English Animal Identification + + + + + + + + + + + + + +
+
+ +
+ पाठविवरणर पाठयोजना सहज तरिकाले पढ्न तपाईले निम्न कार्य गर्न सक्नु हुन्छ । +

+

थिच्दा
+ अक्षर आकार ठुलो बनाउन सक्नुहुन्छ। +

+

+

थिच्दा
+ अक्षर आकार सानो बनाउन सक्नुहुन्छ। +

+

+ पाठ पृष्टको दाईने तर्फको ठाडो रेखा तल माथि गर्दा
+ तपाईले हाल पढिरहेको पृष्टलाई आवश्यकता अनुसार तल माथि गर्न सक्नुहुन्छ +
+ + + + + \ No newline at end of file diff --git a/examples/English_Animal_Identification/lessonPlan.html b/examples/English_Animal_Identification/lessonPlan.html new file mode 100644 index 0000000..cec9613 --- /dev/null +++ b/examples/English_Animal_Identification/lessonPlan.html @@ -0,0 +1,709 @@ + + + +Animal identification + + + +
+

Animal Identification (पाठविवरण)

+

क्रियाकलापको + शिर्षक : Animal + Identification

+

क्रियाकलापको + कोड : II + E 14 (कक्षा , अङ्ग्रेजी )

+
+

शिक्षणको + हप्ता : , अथवा

+

पाठ्यपुस्तको + सम्बन्धित + पाठ : My English Book II

+
+
+

सिकाइ + क्षेत्र : Speaking, + reading, 8, 10, 12, 16

+

सिकाइउपलब्धि : १) ठिक उच्चारण, झोक्‍का उतार-चढाव मिलाई भाषाको प्रयोग

+

२) साधारण अङ्ग्रेजीमा जनावरका नामहरू भन्‍न

+

३) हेरेर वस्तुहरूका प्रचलित नामहरूको पहिचान गर्न

+

४) पाठ्यवस्तुबाट वस्तुहरूको खास नाम पत्ता लगाउन

+

सिकाइउपलब्धिको + विस्तृतीकरण : चित्रपत्तीको अभ्यास, वर्णमालाका ठूला अक्षरहरूको संयोजन खेल

+
+
+

क्रियाकलापको + उद्देश्य : दिएका जनावरहरूलाई चिन्‍नु तीनको नाम बताउन सक्नु

+

क्रियाकलाप + चलाउने तरिका : स्क्रिनमा एउटा प्रश्‍न, जनावरको चित्र केही जनावरका नामहरू देखिन्छन् जनावरलाई हेर्नुहोस्, सही नाम छान्‍नुहोस् क्लिक गर्नुहोस् सही नाममा क्लिक गरेमा ठीकको चिन्ह उछ जनावरको नामको उच्चारण सुनिन्छ यदि गलत उत्तरमा क्लिक भयो भने गलतको चिन्ह उछ त्यसपछि, तपाईंले सही उत्तर छान्‍ने मौका पाउनुहुन्छ तर स्क्रिनको माथि बायाँपट्टीको स्कोरमा अङ्क भने जोडिदैन

+

स्व-मूल्याङ्कन : स्क्रिनको माथि बायाँपट्टीको कुनामा आफूले मिलाएको उत्तरको अङ्क (Score) देखिन्छ।

+
+
+

-पाटी + प्रयोगपूर्वको + क्रियाकलाप : -पाटीमा भएका Vocabulary + Domestic Animals Vocabulary Wild Animals गराउनुहोस्

+

-पाटी + प्रयोगपछिको + क्रियाकलाप : विद्यार्थीहरूलाई शैक्षिकभ्रमणका लागि नजिकको वस्तीमा लैजानुहोस् लेख्‍ने कामका लागि आफूसँग कापी सीसाकलम बोक्न लगाउनुहोस् विद्यार्थीहरू सबैलाई एकपटकमा एउटा घरमा लगेर त्यहाँ देखिने जनावरका नामहरू लेख्‍न भन्‍नुहोस् यदि अङ्ग्रेजीमा नाम थाहा नभएका जनावरहरू टिएमा तीनको नाम नेपालीमा लेख्‍न लगाउनुहोस् विद्यार्थीहरूलाई कक्षाकोठामा ल्याउनुहोस् कालोपाटीमा तिनीहरूले देखेका जनावरका नामहरूको सूची तयार पार्नुहोस् सूची तयार पार्दा अङ्ग्रेजीमा थाहा भएका जनावरका नामहरू अङ्ग्रेजीमा अङ्ग्रेजीमा थाहा नभएका नामहरूलाई नेपालीमा लेख्‍नुहोस् अङ्ग्रेजीमा नामहरूको सूची तयार भए पछी यदि नेपालीमा लेख्‍नुपर्ने नामहरू भएमा त्यसलाई पनि लेख्‍नुहोस् विद्यार्थीहरूलाई दोहोर्‍याउन भन्‍दै ती नामहरू लेख्‍दै उच्चारण गर्न लगाउनुहोस् गृहकार्यमा हरेक विद्यार्थीहरूलाई आफ्नो छिमेकमा नजिकको घरमा भएका जनावरहरूको नाम लेखेर ल्याउने काम दिनुहोस्

+

-पुस्तकालयसित + सम्बन्धित + क्रियाकलाप :

+

सामूहिक + क्रियाकलाप :

+
+
+

गृहकार्य : सबै जनावरका नामहरू चिन्‍न ठीक तरिकाले भन्‍न नआउँदासम्म -पाटीको क्रियाकलापमा अभ्यास गरेर आउन लगाउनुहोस्

+

समान वा + सम्बन्धित + अन्य + क्रियाकलाप :

+

शिक्षणसम्बन्धि + थप सल्लाह :

+
+
+

उपयोगी + वेभसाइटहरू :

+
+
+ + diff --git a/examples/English_Animal_Identification/start.html b/examples/English_Animal_Identification/start.html new file mode 100755 index 0000000..3ee8538 --- /dev/null +++ b/examples/English_Animal_Identification/start.html @@ -0,0 +1,65 @@ + + + + Start Page for English Animal Identification + + + + + + + + + +
+ +
+
+
+
+
साझा शिक्षा ई-पाटीद्वारा निर्मित
+
ई-पाठ
+
+
+ +
+ +
+ कक्षा: +
+
अँग्रेजी
+ +
+ This is a lesson for identifying animals +
+ + +
+
+ + +
+ + + \ No newline at end of file diff --git a/examples/English_Animal_Identification/teachersNote.html b/examples/English_Animal_Identification/teachersNote.html new file mode 100755 index 0000000..440129f --- /dev/null +++ b/examples/English_Animal_Identification/teachersNote.html @@ -0,0 +1 @@ +foobar! \ No newline at end of file diff --git a/examples/old/adding_up_to_10_canvas/assets/audio/correct.ogg b/examples/adding_up_to_10_canvas/assets/audio/correct.ogg index a0d9e3a..a0d9e3a 100755 --- a/examples/old/adding_up_to_10_canvas/assets/audio/correct.ogg +++ b/examples/adding_up_to_10_canvas/assets/audio/correct.ogg Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/assets/audio/incorrect.ogg b/examples/adding_up_to_10_canvas/assets/audio/incorrect.ogg index 4805e55..4805e55 100755 --- a/examples/old/adding_up_to_10_canvas/assets/audio/incorrect.ogg +++ b/examples/adding_up_to_10_canvas/assets/audio/incorrect.ogg Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/assets/audio/trigger.ogg b/examples/adding_up_to_10_canvas/assets/audio/trigger.ogg index f22512a..f22512a 100755 --- a/examples/old/adding_up_to_10_canvas/assets/audio/trigger.ogg +++ b/examples/adding_up_to_10_canvas/assets/audio/trigger.ogg Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/assets/image/ball37px.png b/examples/adding_up_to_10_canvas/assets/image/ball37px.png index 4388283..4388283 100755 --- a/examples/old/adding_up_to_10_canvas/assets/image/ball37px.png +++ b/examples/adding_up_to_10_canvas/assets/image/ball37px.png Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/assets/image/balloon37px.png b/examples/adding_up_to_10_canvas/assets/image/balloon37px.png index 8f47d6a..8f47d6a 100755 --- a/examples/old/adding_up_to_10_canvas/assets/image/balloon37px.png +++ b/examples/adding_up_to_10_canvas/assets/image/balloon37px.png Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/assets/image/banana37px.png b/examples/adding_up_to_10_canvas/assets/image/banana37px.png index 90728e6..90728e6 100755 --- a/examples/old/adding_up_to_10_canvas/assets/image/banana37px.png +++ b/examples/adding_up_to_10_canvas/assets/image/banana37px.png Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/assets/image/chilli.png b/examples/adding_up_to_10_canvas/assets/image/chilli.png index 5f8b64d..5f8b64d 100755 --- a/examples/old/adding_up_to_10_canvas/assets/image/chilli.png +++ b/examples/adding_up_to_10_canvas/assets/image/chilli.png Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/assets/image/fish64px.png b/examples/adding_up_to_10_canvas/assets/image/fish64px.png index a29f12c..a29f12c 100755 --- a/examples/old/adding_up_to_10_canvas/assets/image/fish64px.png +++ b/examples/adding_up_to_10_canvas/assets/image/fish64px.png Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/assets/image/flower37px.png b/examples/adding_up_to_10_canvas/assets/image/flower37px.png index 224e707..224e707 100755 --- a/examples/old/adding_up_to_10_canvas/assets/image/flower37px.png +++ b/examples/adding_up_to_10_canvas/assets/image/flower37px.png Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/assets/image/happyChimp_120x125.png b/examples/adding_up_to_10_canvas/assets/image/happyChimp_120x125.png index 5e721c9..5e721c9 100755 --- a/examples/old/adding_up_to_10_canvas/assets/image/happyChimp_120x125.png +++ b/examples/adding_up_to_10_canvas/assets/image/happyChimp_120x125.png Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/assets/image/happyMonkey.jpg b/examples/adding_up_to_10_canvas/assets/image/happyMonkey.jpg index bfe0d38..bfe0d38 100755 --- a/examples/old/adding_up_to_10_canvas/assets/image/happyMonkey.jpg +++ b/examples/adding_up_to_10_canvas/assets/image/happyMonkey.jpg Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/assets/image/normalChimp_120x125.png b/examples/adding_up_to_10_canvas/assets/image/normalChimp_120x125.png index a731df4..a731df4 100755 --- a/examples/old/adding_up_to_10_canvas/assets/image/normalChimp_120x125.png +++ b/examples/adding_up_to_10_canvas/assets/image/normalChimp_120x125.png Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/assets/image/plussign.png b/examples/adding_up_to_10_canvas/assets/image/plussign.png index 915c5aa..915c5aa 100755 --- a/examples/old/adding_up_to_10_canvas/assets/image/plussign.png +++ b/examples/adding_up_to_10_canvas/assets/image/plussign.png Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/assets/image/sadChimp_120x125.png b/examples/adding_up_to_10_canvas/assets/image/sadChimp_120x125.png index 1dec5f0..1dec5f0 100755 --- a/examples/old/adding_up_to_10_canvas/assets/image/sadChimp_120x125.png +++ b/examples/adding_up_to_10_canvas/assets/image/sadChimp_120x125.png Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/assets/image/scorebox.png b/examples/adding_up_to_10_canvas/assets/image/scorebox.png index 424b60b..424b60b 100755 --- a/examples/old/adding_up_to_10_canvas/assets/image/scorebox.png +++ b/examples/adding_up_to_10_canvas/assets/image/scorebox.png Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/assets/image/sidebar.png b/examples/adding_up_to_10_canvas/assets/image/sidebar.png index 9632788..9632788 100755 --- a/examples/old/adding_up_to_10_canvas/assets/image/sidebar.png +++ b/examples/adding_up_to_10_canvas/assets/image/sidebar.png Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/assets/image/yellowBox.png b/examples/adding_up_to_10_canvas/assets/image/yellowBox.png index f7a72ca..f7a72ca 100755 --- a/examples/old/adding_up_to_10_canvas/assets/image/yellowBox.png +++ b/examples/adding_up_to_10_canvas/assets/image/yellowBox.png Binary files differ diff --git a/examples/old/adding_up_to_10_canvas/css/knavbar.css b/examples/adding_up_to_10_canvas/css/knavbar.css index 26e3896..26e3896 100755 --- a/examples/old/adding_up_to_10_canvas/css/knavbar.css +++ b/examples/adding_up_to_10_canvas/css/knavbar.css diff --git a/examples/old/adding_up_to_10_canvas/css/lesson.css b/examples/adding_up_to_10_canvas/css/lesson.css index 5147cfa..5147cfa 100755 --- a/examples/old/adding_up_to_10_canvas/css/lesson.css +++ b/examples/adding_up_to_10_canvas/css/lesson.css diff --git a/examples/old/adding_up_to_10_canvas/index.html b/examples/adding_up_to_10_canvas/index.html index baf36b8..baf36b8 100755 --- a/examples/old/adding_up_to_10_canvas/index.html +++ b/examples/adding_up_to_10_canvas/index.html diff --git a/examples/old/adding_up_to_10_canvas/js/lesson.js b/examples/adding_up_to_10_canvas/js/lesson.js index efabd88..efabd88 100755 --- a/examples/old/adding_up_to_10_canvas/js/lesson.js +++ b/examples/adding_up_to_10_canvas/js/lesson.js diff --git a/examples/old/quadrilaterals/css/activity.css b/examples/quadrilaterals/quadrilaterals/css/activity.css index a2ae7e9..a2ae7e9 100755 --- a/examples/old/quadrilaterals/css/activity.css +++ b/examples/quadrilaterals/quadrilaterals/css/activity.css diff --git a/examples/old/quadrilaterals/css/jquery.jgrowl.css b/examples/quadrilaterals/quadrilaterals/css/jquery.jgrowl.css index 96af78e..96af78e 100755 --- a/examples/old/quadrilaterals/css/jquery.jgrowl.css +++ b/examples/quadrilaterals/quadrilaterals/css/jquery.jgrowl.css diff --git a/examples/old/quadrilaterals/css/lesson.css b/examples/quadrilaterals/quadrilaterals/css/lesson.css index 3ed4696..3ed4696 100755 --- a/examples/old/quadrilaterals/css/lesson.css +++ b/examples/quadrilaterals/quadrilaterals/css/lesson.css diff --git a/examples/old/quadrilaterals/images/bg.png b/examples/quadrilaterals/quadrilaterals/images/bg.png index 1a4249f..1a4249f 100755 --- a/examples/old/quadrilaterals/images/bg.png +++ b/examples/quadrilaterals/quadrilaterals/images/bg.png Binary files differ diff --git a/examples/old/quadrilaterals/images/bg_small.png b/examples/quadrilaterals/quadrilaterals/images/bg_small.png index 2dedab6..2dedab6 100755 --- a/examples/old/quadrilaterals/images/bg_small.png +++ b/examples/quadrilaterals/quadrilaterals/images/bg_small.png Binary files differ diff --git a/examples/old/quadrilaterals/images/erase.png b/examples/quadrilaterals/quadrilaterals/images/erase.png index f2ea68f..f2ea68f 100755 --- a/examples/old/quadrilaterals/images/erase.png +++ b/examples/quadrilaterals/quadrilaterals/images/erase.png Binary files differ diff --git a/examples/old/quadrilaterals/images/eraseOver.png b/examples/quadrilaterals/quadrilaterals/images/eraseOver.png index bea6dbf..bea6dbf 100755 --- a/examples/old/quadrilaterals/images/eraseOver.png +++ b/examples/quadrilaterals/quadrilaterals/images/eraseOver.png Binary files differ diff --git a/examples/old/quadrilaterals/images/next.png b/examples/quadrilaterals/quadrilaterals/images/next.png index 81cc3c0..81cc3c0 100755 --- a/examples/old/quadrilaterals/images/next.png +++ b/examples/quadrilaterals/quadrilaterals/images/next.png Binary files differ diff --git a/examples/old/quadrilaterals/images/previous.png b/examples/quadrilaterals/quadrilaterals/images/previous.png index ef3b168..ef3b168 100755 --- a/examples/old/quadrilaterals/images/previous.png +++ b/examples/quadrilaterals/quadrilaterals/images/previous.png Binary files differ diff --git a/examples/old/quadrilaterals/index.html b/examples/quadrilaterals/quadrilaterals/index.html index 5ad6e6f..5ad6e6f 100755 --- a/examples/old/quadrilaterals/index.html +++ b/examples/quadrilaterals/quadrilaterals/index.html diff --git a/examples/old/quadrilaterals/js/lesson.js b/examples/quadrilaterals/quadrilaterals/js/lesson.js index 03cbace..03cbace 100755 --- a/examples/old/quadrilaterals/js/lesson.js +++ b/examples/quadrilaterals/quadrilaterals/js/lesson.js diff --git a/js/knavbar.js b/js/knavbar.js deleted file mode 100755 index e7d343f..0000000 --- a/js/knavbar.js +++ /dev/null @@ -1,13 +0,0 @@ -//This code loads in html for knavbar into a
-//tag with the id="navigation" -$(document).ready(function(){ - - //updates the links in knavbar - //specific to the context - var modify = function(){ - - }; - - var foo = $('#navigation').load('chakra/kfoo.html #knavbar', modify); - var x = 0; -}); \ No newline at end of file diff --git a/js/ui.kFooter.js~ b/js/ui.kFooter.js~ deleted file mode 100755 index 02d7937..0000000 --- a/js/ui.kFooter.js~ +++ /dev/null @@ -1,362 +0,0 @@ -/** -* @fileOverview a footer widget -* @author Bryan Berry -* uses MIT License -*/ - - - -(function($){ - - // This is a dummy function, just here as placeholder to - // to make the jsdoc tool happy - /** @name $.ui.kFooter - * @namespace kFooter widget - * @example Emits the event kFooterWinGame when the maxScore is reached
- * Emits the event kFooterRestart when game restarted
- * Start button emits kFooterStart event when clicked
- * Restart button emits kFooterRestart event when clicked
- * Pause button emits the kFooterPause event when clicked
- */ - $.ui.kFooter = function(){}; - - $.widget('ui.kFooter', - /** @lends $.ui.kFooter.prototype */ - { - /** Gets the current score - * @returns {Number} current score - */ - getScore : function(){ - return this._getData('score'); - }, - /** Sets the current score - * @param {Number} newScore new score - */ - setScore : function(newScore){ - this._setData('score', parseInt(newScore)); - this._refresh(); - }, - /** Gets the current total - * @returns {Number} current total - */ - getTotal : function(){ - return this._getData('total'); - }, - /** Sets the current total - * @param {Number} newTotal new total - */ - setTotal : function(newTotal){ - this._setData('total', parseInt(newTotal)); - this._refresh(); - }, - /** - * Resets the score and total to initial values and triggers - * the "kFooterRestart" event - */ - restart : function(){ - this.element.trigger('kFooterRestart'); - this._setData('score', this._getData('initialScore')); - this._setData('total', this._getData('initialTotal')); - this._refresh(); - }, - /** Increments the score by 1 or by the supplied numeric argument - * @param {Number} [val] increment value - */ - inc : function(val){ - var incVal = parseInt(val) || 1; - this._setData('score', this._getData('score') + incVal); - this._refresh(); - if(this._getData('winScore') === this._getData('score')){ - this.element.trigger('kFooterWinGame'); - } - }, - /** Increments the total by 1 or by the supplied numeric argument - * @param {Number} [val] increment value - */ - incTotal : function(val){ - var incVal = parseInt(val) || 1; - this._setData('total', this._getData('total') + incVal); - this._refresh(); - }, - /** Decrements the score by 1 or by the supplied numeric argument - * @param {Number} [val] decrement value - */ - dec : function(val){ - var decVal = parseInt(val) || 1; - this._setData('score', this._getData('score') - decVal); - this._refresh(); - }, - /** Decrements the total by 1 or by the supplied numeric argument - * @param {Number} [val] decrement value - */ - decTotal : function(val){ - var decVal = parseInt(val) || 1; - this._setData('total', this._getData('total') - decVal); - this._refresh(); - }, - /** Start the timer, defaults to 0:00 if no arguments supplied - * @param {Number} [minutes] value for minutes, default to 0 - * @param {Number} [seconds] value for seconds, default to 0 - */ - startTimer : function(minutes, seconds){ - var timerRunning = this._getData('timerRunning')|| false; - - if (this._$timer && timerRunning === false){ - var mins = minutes || 0; - var secs = seconds || 0; - var timerId = null; - var self = this; - - - this._setData('mins', mins); - this._setData('secs', secs); - - var addLeadingZero = function(num){ - if(''.concat(num).length === 1){ - return "0".concat(num); - } else { - return num; - } - - }; - - var increaseTimer = function(){ - if (self._getData('timerRunning') === false){ - return; - } - - var s = self._getData('secs') + 1; - var m = null; - var timerId = null; - - if (s < 60) { - self._setData('secs', s); - self._$timerSecs.text(self._n(addLeadingZero(s))); - } else { - s = 0; - m = self._getData('mins') + 1; - self._$timerSecs.text(self._n(addLeadingZero(s))); - self._$timerMins.text(self._n(addLeadingZero(m))); - self._setData('secs', s); - self._setData('mins', m); - } - - timerId = setTimeout(increaseTimer, 1000); - self._setData('timerId', timerId); - - }; - - timerId = setTimeout(increaseTimer , 1000); - - this._setData('timerRunning', true); - this._setData('timerId', timerId); - } - }, - /** Stop the timer - */ - stopTimer : function(){ - this._setData('timerRunning', false); - }, - _ : function(val, loc){ - return $.i18n.call($.ui.kFooter, val, loc); - }, - _n : function(val, loc){ - return $._n(val, loc); - }, - _init : function(){ - - var divDisplay = "inline"; - var score = this.options.score; - var total = this.options.total; - var self = this; - - var options = $.extend({}, $.ui.kFooter.defaults, this.options); - - this._setData('initialScore', parseInt(options.score)); - this._setData('initialTotal', parseInt(options.total)); - this._setData('score', parseInt(options.score)); - this._setData('total', parseInt(options.total)); - this._setData('winScore', parseInt(options.winningScore)); - this._setData('locale', options.locale); - - - this.element.addClass('ui-widget ui-widget-content ' + - ' ui-kFooter'); - - - var $kFooter = $("
    "); - - - if(options.scoreboard === true){ - - var $scoreboard = $("
  • " + this._("Score") + - "
  • " + "
  • " + - "" + - this._n(score) + "
  • " + - "
  • " + this._("Total") + "
  • " + - "
  • " + - this._n(total) + "
  • ") - .appendTo($kFooter); - - this._score = $('#kFooterScore', $scoreboard); - this._total = $('#kFooterTotal', $scoreboard); - - } - - if(options.timer === true){ - this._$timer = $("
  • " + this._("Timer") + - "
  • " + - "
  • " + this._n("00") + - "
  • " + - "
  • "+ this._n("00") + - "
  • ") - .appendTo($kFooter); - - this._$timerMins = $('#kFooterMins', this._$timer); - this._$timerSecs = $('#kFooterSecs', this._$timer); - } - - //if options.checkAnswerBtn === true - - if (options.restartButton === true){ - var $restartButton = $("
  • ") - .click(function(){ - self.startTimer(); - self.restart(); - }) - .appendTo($kFooter); - } - - if (options.pauseButton === true){ - var $pauseButton = $("
  • ") - .click(function(){ - self.stopTimer(); - self.element.trigger('kFooterPause'); - }) - .appendTo($kFooter); - } - - if (options.startButton === true){ - var $startButton = $("
  • ") - .click(function(){ - self.startTimer(); - self.element.trigger('kFooterStart'); - }) - .appendTo($kFooter); - } - - $('button', $kFooter).hover( - function(){ - $(this).addClass("ui-state-hover"); - }, - function(){ - $(this).removeClass("ui-state-hover"); - }); - - - // Check if any html w/in this.element, if so wrap it in
  • - // and add to $kFooter later - var $userHtml = this.element - .children() - .appendTo($kFooter); - - - $userHtml.wrap('
  • '); - - //get rid of userHtml - this.element.empty(); - - this.element.append($kFooter); - - }, - _refresh : function(){ - this._score.text(this._n(this._getData('score'))); - this._total.text(this._n(this._getData('total'))); - }, - /** Removes the kFooter widget and all related data from the DOM */ - destroy : function(){ - this.element.remove(); - $.widget.prototype.destroy.apply(this, arguments); - } - - - }); - - $.ui.kFooter.getter = ['getScore', 'getTotal', '_n', '_' ]; - - $.ui.kFooter.i18n = {}; - - - /** Default settings for the kFooter widget - * @namespace Default settings for the kFooter widget - * @extends $.ui.kFooter - */ - $.ui.kFooter.defaults = { - /** Initial score - * @type Number - * @default 0 - */ - score: 0, - /** Initial total - * @type Number - * @default 0 - */ - total: 0, - /** The score that will win the game - * @type Number - * @default 0 - */ - winningScore: 0, - /** Default locale, valid options are "en" and "ne" - * @type String - * @default "en" - */ - locale: "ne", - /** Display the scoreboard - * @type boolean - * @default true - */ - scoreboard: true, - /** Display the Start Button - * @type boolean - * @default false - */ - startButton: false, - /** Display the Retart Button - * @type boolean - * @default true - */ - restartButton: true, - /** Display the Pause Button - * @type boolean - * @default false - */ - pauseButton: false, - /** Display the timer - * @type boolean - * @default false - */ - timer: false - }; - - })(jQuery); \ No newline at end of file diff --git a/js/ui.kFooter.ne.json b/js/ui.kFooter.ne.json deleted file mode 100644 index 6a5a437..0000000 --- a/js/ui.kFooter.ne.json +++ /dev/null @@ -1,5 +0,0 @@ -$.ui.kFooter.i18n.ne = { -strings : { -"Score":"अङ्क", "Total": "जम्मा", "Play Again": "फेरी खेलौ", "Pause": "खेल रोकौ", -"Start": "सुरु गरौ" } -}; \ No newline at end of file diff --git a/js/ui.kHeader.ne.json b/js/ui.kHeader.ne.json deleted file mode 100644 index 8f29423..0000000 --- a/js/ui.kHeader.ne.json +++ /dev/null @@ -1,7 +0,0 @@ - -$.ui.kHeader.i18n.ne = { - strings : { - "Teacher's Note": "पाठविवरण", -"Lesson Plan":"पाठयोजना" -} -} \ No newline at end of file -- cgit v0.9.1