Subversion Repositories jquery

Compare Revisions

Ignore whitespace Rev 7 → Rev 8

/plugins/examples/jeopardy/jeopardy.html
1,10 → 1,10
<html>
<head>
<title>Algebra Jeopardy</title>
<title>Soil Jeopardy</title>
<meta content="">
<!--
**************************************************
* Algebra Jeopardy
* Algebra Jeopardy/Soil Jeopardy
**************************************************
 
For: 4th Grade student teaching - Test preparation
22,7 → 22,7
 
div.header {
padding-top: 1%;
font-family : arial;
font-family : comic sans ms;
text-align : center;
font-size : 25pt;
font-weight : bold;
44,7 → 44,7
vertical-align : center;
text-align : center;
font-size : 50pt;
font-family : arial;
font-family : comic sans ms;
border : 3px #031754 outset;
width : 20%;
color : orange;
83,6 → 83,7
' <tr><td>N</td><td></td></tr> ' +
'</table> ';
 
//Algebra Jeopardy
var boardContents = {
'Vocabulary' : {
'100' : {
212,10 → 213,71
answer : 'Mental math, inverse operations, guess and check'
}
}
};
//Soil Jeopardy
var boardContents = {
'Worms' : {
'100' : {
question : 'Worms make tunnels in the soil. How does this help plants grow?',
answer : 'It makes room for roots to live and spread out.<br>' +
'It allows air into the soil.<br>' +
'It allows water to reach the roots easier.'
},
'200' : {
question : 'Worms put nutrients back into soil by ____________',
answer : 'Eating and passing soil and decaying matter.'
},
'300' : {
question : 'Vocabulary: <br> This is a pile or heap of food scraps, leaves, or other garden material layered and covered in soil.',
answer : 'Compost'
}
},
'Soil #1' : {
'100' : {
question : 'When dry, this soil feels gritty or grainy like salt.',
answer : 'Sand'
},
'200' : {
question : 'When wet, this soil is sticky and holds its shape.',
answer : 'Clay'
},
'300' : {
question : 'This soil smells like mulch.',
answer : 'Humus'
}
},
'Soil #2' : {
'100' : {
question : 'This soil can be colored pink, white, black or tan.',
answer : 'Sand'
},
'200' : {
question : 'What is found in some clay that makes it an orange-red color?',
answer : 'Iron'
},
'300' : {
question : 'Name two things you find in humus (not dirt)',
answer : 'Woodchips, bugs, worms, plant or animal decaying matter'
}
},
'Vocabulary' : {
'100' : {
question : 'Something we think might happen in the future because of what has happened before.',
answer : 'Prediction'
},
'200' : {
question : 'Material matter that is or once was living.',
answer : 'Organic'
},
'300' : {
question : 'Matter containing rocks that have broken down into tiny pieces of sand or clay.',
answer : 'Inorganic'
}
}
}
var $header = $('<div />').addClass('header').append("Algebra Jeopardy");
 
var $header = $('<div />').addClass('header').append("Soil Jeopardy");
var $board = $('<table cellpadding="0" cellspacing="0" />');
var $rows = [];
269,7 → 331,6
value = thisCategory.question
contentMode = 'answer';
 
if (useAnimation) {
$fullPage = $('<div />').appendTo(document.body)
.css({
279,11 → 340,12
height : '0px',
color : 'white',
fontFamily : 'comic sans ms',
fontSize : '35pt',
backgroundColor : '#031754',
border : '#031754 10px outset',
//display : 'table-cell',
display : 'table',
verticalAlign : 'middle',
position : 'absolute',
textAlign : 'center'
298,7 → 360,7
marginLeft : '5%',
marginTop: '2%'
}, 'slow', function () {
$fullPageContent
$fullPageContent.css({ display : 'table-cell', verticalAlign : 'middle' })
.html('Question: ' + value + '<br /><br />');
})
.click(function () {
342,23 → 404,19
break;
}
/*$($content).fadeOut(function () {
$content = $('<div />')
.html(value)
.css({display : 'none'})
.appendTo($td)
.fadeIn();
});*/
 
})
/*$($content).fadeOut(function () {
$content = $('<div />')
.html(value)
.css({display : 'none'})
.appendTo($td)
.fadeIn();
});*/
});
var $content = $('<div />')
.append(amt)
.appendTo($td);
 
rowIndex++;
});
});