From 8346ca30b1b7677b694b6a4f1acc3268eeb4173a Mon Sep 17 00:00:00 2001 From: Bryan Berry Date: Sun, 14 Feb 2010 11:55:06 +0000 Subject: add back up-to-date js,css, and examples --- diff --git a/css/kDoc.css b/css/kDoc.css index fe0fe41..4830e03 100755 --- a/css/kDoc.css +++ b/css/kDoc.css @@ -1,9 +1,10 @@ #kDoc{ background-color: white; - /* width: 100%; - height: 100%;*/ + width: 100%; + height: 100%; } +/* #zoomIn{ background-image: url(epaath_images/btn_plus.png); } @@ -19,6 +20,7 @@ #zoomOut:hover{ background-image: url(epaath_images/btn_minus_hover.png); } +*/ #iframeLessonPlan{ width:100%; diff --git a/css/kStart.css b/css/kStart.css index 36b53c5..b5c07aa 100755 --- a/css/kStart.css +++ b/css/kStart.css @@ -8,13 +8,16 @@ } #kStart .center{ - width: 100%; - float: left; - text-align: center; + /* width: 100%; + float: left;*/ + width: 800px + margin-left: auto; + margin-right: auto; + text-align: center; } #kStart #top{ - height: 15%; + height: 13%; width: 100%; color: #8a72c4; } @@ -56,34 +59,12 @@ color: white; height: 70%; width: 90%; - margin-left: 60px; - margin-right: 60px; + margin-left: auto; + margin-right: auto; position:relative; - /* background-color: blue; - opacity: 0.7;*/ - background: transparent; + background-color: rgba(0,0,200,0.3); } - #blueOverlay{ - position:absolute; - background-color: #8a72c4; - width: 100%; - height: 100%; - border: 2px solid white; - -moz-border-radius: 10px; - -webkit-border-radius: 10px; - opacity: 0.7; - z-index: 10; - } - - #textOverlay{ - position:absolute; - width: 100%; - height: 100%; - opacity: 1.0; - z-index:11; - } - #grade{ margin-top: 0.5em; } @@ -167,22 +148,24 @@ width: 100%; color: white; } - #logo>div{ - width: 150px; + #logo{ + display: block; + width: 320px; height: 60px; + float: none; background-image: url(epaath_images/ole_logo.png); background-repeat: no-repeat; - text-align:center; - -webkit-background-size: 100% 100%; - -moz-background-size:100% 100%; + /* text-align:center;*/ + /* -webkit-background-size: 100% 100%; + -moz-background-size:100% 100%;*/ margin-left:auto; margin-right:auto; - margin-top: 0.4em; + margin-top: 0.8em; } #kStart #copyright{ - position: absolute; + position: fixed; left: 5px; bottom: 0px; color: white; diff --git a/css/karma.css b/css/karma.css index bc27c51..607bcbb 100755 --- a/css/karma.css +++ b/css/karma.css @@ -2,134 +2,42 @@ @import url(./ui.base.css); @import url(./theme/jquery-ui-1.7.2.custom.css); @import url(./ui.dialog.css); -@import url(./ui.kFooter.css); @import url(./ui.resizable.css); @import url(./ui.feedback.css); -/* special hack for the curren karma-loader notification */ +/* special hack for the current karma-loader notification */ @media screen { #karma-loader{ - position:fixed; + position:absolute; top:0; left:0; padding: 2px 2px 1px 5px; - font-family: arial; font-size: 12px; background: #0066cc; color: #ffffff; } - #karma-loader.status{ - + #karma-loader.status{ left:110px; - } } body{ - margin:0px; + padding: 0px; + margin: 0 auto 0 auto; + width: 1200px; + height: 900px; overflow: hidden; + position: relative; + background-color: purple; } - -#kHeader{ - background-image: url('./epaath_images/bg_header.png'); - height: 75px; - width: 100%; +#kMain { + width: 1200px; + height: 760px; float: left; - background-repeat: none; - -moz-background-size: 100% 100%; - -webkit-background-size: 100% 100%; - + clear: both; + background-color: white; } - #kHeader .left{ - float: left; - } - - #kHeader .right{ - float: right; - } - - #kHeader>div{ - display:inline; - margin-left: 0.2em; - margin-right:0.2em - } - - #kHeader .kHeaderBtn{ - width: 60px; - height: 60px; - margin-top: 7px; - cursor:pointer; - } - - #kHeaderBackBtn div{ - background-image:url(./epaath_images/btn_back.png); - } - #kHeaderBackBtn div:hover{ - background:url('./epaath_images/btn_back_hover.png'); - } - - #kHeaderBackBtn div{ - background-image:url(./epaath_images/btn_back.png); - } - - #kHeaderBackBtn div:hover{ - background:url('./epaath_images/btn_back_hover.png'); - } - - #kHeaderHelpBtn div{ - background-image:url(./epaath_images/btn_help.png); - } - - #kHeaderHelpBtn div:hover{ - background:url(./epaath_images/btn_help_hover.png); - } - - #kHeaderOleBtn div{ - background-image:url(./epaath_images/btn_ole.png); - } - - #kHeaderOleBtn div:hover{ - background:url(./epaath_images/btn_ole_hover.png); - } - - -#kHeaderLessonTitle { - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: larger; - font-weight: bold; - color: #FFFFFF; - margin-left: 2em; - margin-top: 18px; - border:0.2em solid black; - padding-left:0.5em; - padding-right:0.5em; - padding-top: 0.2em; - padding-bottom: 0.2em; - -moz-border-radius:1.3em; - -webkit-border-radius: 1.3em; -} - -#kHelpText{ - font-size:small; -} - - - -/* -#kHelpText>div:first>span:first{ - font-size:larger; -}*/ - -div.ui-dialog { - margin-top: 10px; -} - -.ui-dialog [role=button]{ - height:48px; - width: 48px; - top: 20%; -} diff --git a/css/ui.kFooter.css b/css/ui.kFooter.css index 5cae39d..db7edba 100755 --- a/css/ui.kFooter.css +++ b/css/ui.kFooter.css @@ -1,66 +1,56 @@ -.ui-kFooter-container{ +.ui-kFooter{ background-image: url('./epaath_images/bg_footer.png'); - background-repeat: no-repeat; - -moz-background-size: 100% 100%; - -webkit-background-size: 100% 100%; + background-repeat: repeat; + height: 70px; width: 100%; - height: 75px; - position: absolute; - bottom: 0px; - float:left; + margin:0; + padding: 0; + float: left; + clear: both; border-style: none; + color: #FFFF00; } -.ui-kFooter-spacing{ + +.ui-kFooter>ul{ + margin-left: 0px; + padding-left: 5px; + list-style: none; +} +.ui-kFooter>ul>li{ display:inline; - margin-top: 10px; - margin-right: 0.4em; + margin-right: 10px; + margin-left: 0px; } -.ui-kFooter-left{ + +.ui-kFooter .left{ float: left; } -.ui-kFooter-right{ +.ui-kFooter .right{ float: right; } -.ui-kFooter-text,.ui-kFooter-number{ - margin-top: 15px; -} - -.ui-kFooter-text span{ - color: #FFFF00; - margin-left: 0.2em; -} - -.ui-kFooter-number span { +.ui-kFooter .number{ background-color:white; color: black; padding-left:0.4em; padding-right:0.4em; } -.ui-kFooter-button{ + +.ui-kFooter button{ cursor:pointer; - height: 55px; -} + margin-top: -10px; +} -.ui-kFooter-icon{ -float: left; +.ui-kFooter button span{ + float: left; } -.ui-kFooter-button-text { -float: left; -color: #FFFFFF; +.ui-kFooter button .text{ +color: #FFA000; padding-top: 10px; +font-weight: bold; } - -.ui-state-default.ui-kFooter-button{ - background:#ff7c0f; - border: 2px solid #FFFF00; -} - -.ui-state-hover.ui-kFooter-button{ - background:#ffb70f; -} \ No newline at end of file diff --git a/examples/6_English_matchingProductsAndWords/css/lesson.css b/examples/6_English_matchingProductsAndWords/css/lesson.css index 6bc2bdc..3fe81fa 100755 --- a/examples/6_English_matchingProductsAndWords/css/lesson.css +++ b/examples/6_English_matchingProductsAndWords/css/lesson.css @@ -1,147 +1,48 @@ -@CHARSET "ISO-8859-1"; @CHARSET "UTF-8"; /****** Page Styles ****/ -body { - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 10pt; - margin: 0px; - background-color: #FFFFCC; -} -#header { - background-image: url(../assets/image/bg_header.png); - background-repeat: repeat-x; - height: 89px; - width: 100%; - position: absolute; - left: 0px; - top: 0px; -} -#topbtn_left { - float: left; - height: 60px; - width: 60px; - padding-top: 13px; - padding-left: 5px; -} - - - #linkBack{ - width: 60px; height: 59px; - background:url(../assets/image/btn_back.png); - } - #linkBack:hover{ - background:url(../assets/image/btn_back_hover.png); - } - -#lesson_title { - float: left; - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 16pt; - font-weight: bold; - color: #FFFFFF; - margin-left: 10px; - background-image: url(../assets/image/bg_title_block.png); -} -#topbtn_right { - float: right; - height: 60px; - width: 60px; - padding-top: 13px; - padding-right: 5px; -} - #linkHelp{ - width: 60px; height: 60px; - background:url(../assets/image/btn_help.png); - } - #linkHelp:hover{ - background:url(../assets/image/btn_help_hover.png); - } - #linkOle{ - width: 60px; height: 60px; - background:url(../assets/image/btn_ole.png); - } - #linkOle:hover{ - background:url(../assets/image/btn_ole_hover.png); - } - #linkNext{ - width: 60px; height: 60px; - background:url(../assets/image/btn_next.png); - } - #linkNext:hover{ - background:url(../assets/image/btn_next_hover.png); - } -#footer { - background-image: url(../assets/image/bg_footer.png); - background-repeat: repeat-x; - position: absolute; - height: 69px; - width: 100%; - left: 0px; - bottom: 0px; -} -#score_box { - float: left; - padding-left: 10px; - padding-top: 10px; - font-family: Verdana, Arial, Helvetica, sans-serif; - color: #FFFF00; - font-size: 16pt; - font-weight: bold; -} -#botbtn_right { - float: right; - height: 55px; - width: 251px; - padding-right: 5px; - padding-top: 5px; + +#clickBox{ + margin-top: -5px; + padding:4px; + border:2px dashed blue; + background-color:white; + color:black; } - #linkStart{ - width: 251px; height: 55px; - background:url(../assets/image/btn_start.png); - } - #linkStart:hover{ - background:url(../assets/image/btn_start_hover.png); - } - #linkStart:active{ - background:url(../assets/image/btn_start_mouse_down.png); - } - #linkPlayAgain{ - width: 251px; height: 55px; - background:url(../assets/image/btn_play_again.png); - } - #linkPlayAgain:hover{ - background:url(../assets/image/btn_play_again_hover.png); - } - #linkPlayAgain:active{ - background:url(../assets/image/btn_play_again_mouse_down.png); - } /**** End of the page style ****/ /**** Game Styles ****/ -a{ - color:white; +#content a{ + float:left; + width: 9em; + height: 9em; + padding: 0; + background-color: #99E6FF; + margin: 0 0.6em 0.6em 0; + text-align:center; + font-size: 6em/8em; + font-weight:bold; + color:black; + } -#currentTitle{ - width: 150px; - height: 80xp; - font:25px/30px "Courier New", Courier, monospace; - font-weight: bold; - color: red; + +#content a>div{ + margin: auto auto auto auto; + line-height: 9em; } + #content{ - margin: 0px auto; - margin-top: 90px; - width: 95%; - height: 375px; -} -#section{ - margin: 0px auto; - width: 620px; + margin-top: 2em; + margin-right: auto; + margin-bottom: 0; + margin-left:auto; + width: 78%; + height: 100%; } + #gameOver{ margin-top:150px; text-align:center; @@ -165,21 +66,11 @@ a{ } + .default{ float:left; - width: 90px; - height: 90px; - background-color: #99E6FF; - margin: 0.2em; - text-align:center; - font: 15px/85px Verdana, Geneva, Arial, Helvetica, sans-serif; - font-weight:bold; - color:black; -} -.showText{ - float:left; - width: 90px; - height: 90px; + width: 90px; + height: 90px; background-color: #99E6FF; margin: 0.2em; text-align:center; @@ -187,73 +78,11 @@ a{ font-weight:bold; color:black; } + .matched{ float:left; - width: 90px; - height: 90px; + width: 9.6em; + height: 9.6em; background-color: blue; } -#timerBar { - float: left; - width: 215px; - height:35px; - padding-left: 10px; - padding-top: 0px; - font-family: Verdana, Arial, Helvetica, sans-serif; - color: #FFFF00; - font-size: 16pt; - font-weight: bold; -} -#timerTitle{ - float: left; - margin-top: 20px; - width: 50px; - height: 35px; -} - -.timerBoxes{ /* Show the timer running after the game has began.... */ -float:right; -margin: 0.5em 0 0 0.1em; -width: 35px; -height: 30px; -border: 2px dotted green; -padding: 3px; -color: blue; -font : bold 25px Arial Black, Times New Roman; -background: #ACC; -} - -#clickDisplay{ - float: left; - width: 150px; - height:35px; - margin-left: 50px; - padding-left: 20px; - padding-top: 0px; - font-family: Verdana, Arial, Helvetica, sans-serif; - color: #FFFF00; - font-size: 16pt; - font-weight: bold; -} -#clickTitle{ - float: left; - margin-top: 20px; - width: 50px; - height: 35px; - -} - -#clickBox{ -float:right; -margin: 0.5em 0 0 0.1em; -height: 30px; -border: 2px dotted green; -padding: 3px; -color: red; -font : bold 25px Arial Black, Times New Roman; -background: #ACC; -} - - - diff --git a/examples/6_English_matchingProductsAndWords/index.html b/examples/6_English_matchingProductsAndWords/index.html index b6f7057..b6a84f8 100755 --- a/examples/6_English_matchingProductsAndWords/index.html +++ b/examples/6_English_matchingProductsAndWords/index.html @@ -1,50 +1,37 @@ Class 6 Maths Matching Products and Words - - - + - + + + + + + + + + + + + - - -
-
-
-
+
- +
+
+
+
+
- '); - $('#section').append('
You have completed the game in '+clickCounter+ + $('#content').html(''); + $('#content').append('
GAME OVER
Congratulations!!!
'); + $('#content').append('
You have completed the game in '+clickCounter+ ' clicks within '+h+' hour '+m+ ' minutes and '+s+' seconds .
'); } @@ -117,6 +71,7 @@ $(document).ready(function() { clickCounter++; clickCounter = checkTime(clickCounter); //for showing format as 1 for 01 $("#clickBox").html(clickCounter); + show_processed_image(); return true; @@ -211,9 +166,9 @@ $(document).ready(function() { }; var assignSquares = function (square){ - section.append(''); - $('#section a:last-of-type').append('
'); - $('#section a:last-of-type').click(function(){ + $content.append(''); + $('#content a:last-of-type').append('
'); + $('#content a:last-of-type').click(function(){ store_clicked_object(square); }); }; @@ -225,27 +180,20 @@ $(document).ready(function() { clickCounter = 0; matchedObjects = []; s=0; m=0; h=0; - $('#section').html(''); - $('#timerBox1').html('');$('#timerBox2').html('');$('#timerBox3').html(''); + $('#content').html(''); + //$('#timerBox1').html('');$('#timerBox2').html('');$('#timerBox3').html(''); $('#clickBox').html('00'); generate_random_objects_no(); - startTimer(); + //startTimer(); var square; for(i=0; i