-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsub-build-your-own-skelton-keep-skelton-healthy-old-bones.html
216 lines (195 loc) · 10.5 KB
/
sub-build-your-own-skelton-keep-skelton-healthy-old-bones.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<!-- i-C-a -->
<div data-role="page" id="sub-build-your-own-skelton-keep-skelton-healthy-old-bones">
<script src="js/hammer.js"></script>
<script src="js/jquery.hammer.js"></script>
<script src="js/slidebar_build_your_own_skelton.js"></script>
<link rel="stylesheet" href="css/style_build_your_own_skelton.css" />
<div class="menuhousing"></div>
<div class="homebtnholder"><div class="homebtnskelton"></div></div>
<div class="mpbtnholder"><div class="mpbtnskelton"></div></div>
<div class="cpbtnholder"><div class="cpbtnskelton"></div></div>
<div class="infobtnholder"><div class="infobtnskelton"></div></div>
<div class="credsbtnholder"><div class="credsbtnskelton"></div></div>
<div class="menubtnholder"><div class="menubtnskelton"></div></div>
<div class="bptitleholder" style="padding-top:0px;"><h1>Old bones</h1></div>
<div id="spacechar">
<div data-role="content" class="kidzcontent">
<div class="v-spacer"></div>
<div class="sidebarleft-half">
<!-- Quiz Time -->
<div id="f1_container" style="visibility:hidden;position:absolute;left:100px;top:270px;">
<div id="f1_card">
<div class="front face">
<img id="dopple" src="css/images/9-12/Human_Body/Build_Your_Own_Skelton/Keep_Your_Skeleton_Healthy/Old_Bones/Quiz_Card_1.png">
</div>
<div id="backofcard" class="back face center" style="background:url(css/images/9-12/Human_Body/Build_Your_Own_Skelton/Keep_Your_Skeleton_Healthy/Old_Bones/Quiz_Card_1_Reverse.png) no-repeat;">
<div class="returncard" style="position:absolute;left:0px;top:0px;width:362px;height:170px;"></div>
<div id="trueans1" style="position: absolute;left: 56px;top: 169px;width: 120px;height: 30px;"></div>
<div class="falseans1" style="position: absolute;left: 193px;top: 169px;width: 120px;height: 30px;"></div>
<div class="falseans1" style="position: absolute;left: 56px;top: 205px;width: 120px;height: 30px;"></div>
<div class="falseans1" style="position: absolute;left: 192px;top: 205px;width: 120px;height: 30px;"></div>
</div>
</div><!--/f1+card-->
</div><!--/f1_container-->
<div id="f2_container" style="visibility:hidden;position:absolute;left:100px;top:270px;">
<div id="f2_card">
<div class="front face">
<img id="dopple" src="css/images/9-12/Human_Body/Build_Your_Own_Skelton/Keep_Your_Skeleton_Healthy/Old_Bones/Quiz_Card_2.png">
</div>
<div id="backofcard" class="back face center" style="background:url(css/images/9-12/Human_Body/Build_Your_Own_Skelton/Keep_Your_Skeleton_Healthy/Old_Bones/Quiz_Card_2_Reverse.png) no-repeat;">
<div class="returncard2" style="position:absolute;left:0px;top:0px;width:362px;height:170px;"></div>
<div id="trueans2" style="position: absolute;left: 56px;top: 169px;width: 120px;height: 30px;"></div>
<div class="falseans2" style="position: absolute;left: 193px;top: 169px;width: 120px;height: 30px;"></div>
<div class="falseans2" style="position: absolute;left: 56px;top: 205px;width: 120px;height: 30px;"></div>
<div class="falseans2" style="position: absolute;left: 192px;top: 205px;width: 120px;height: 30px;"></div>
</div>
</div><!--/f1+card-->
</div><!--/f1_container-->
<!-- Quiz Time div ends here -->
<div id="zoomwrapper">
<div id="pol1" class="pPiece" style="left:100px;top:270px;">
<img src="css/images/9-12/Human_Body/Build_Your_Own_Skelton/Keep_Your_Skeleton_Healthy/Old_Bones/Quiz_Card_1.png" alt="" />
</div>
<div id="pol2" class="pPiece" style="left:75px;top:290px;">
<img src="css/images/9-12/Human_Body/Build_Your_Own_Skelton/Keep_Your_Skeleton_Healthy/Old_Bones/Quiz_Card_2.png" alt="" />
</div>
<div id="pol3" class="pPiece" style="left:75px;top:290px;">
<img src="css/images/9-12/Human_Body/Build_Your_Own_Skelton/Keep_Your_Skeleton_Healthy/Old_Bones/Play_Me_Card.png" alt="" />
</div>
</div><!--/zoomwrapper-->
</div>
<div class="healthy-old-bones-text">
<p>When you age, sometimes your bones can lose their strength and density. This process is called osteoporosis and it literally means 'bones with holes'. It occurs when bones lose calcium more quickly than the body replaces it. Bones become weak and brittle, so they tend to fracture more easily.</p>
<p>Osteoporosis most commonly affects elderly people, and you can prevent osteoporosis by taking care of your bones in your teenage years.</p>
<p>People with osteoporosis can reduce their bone loss with a calcium-rich diet (or calcium tablets). They can also help maintain their bone density by doing moderate weight-bearing exercise, such as walking and weight programs. Other exercises such as Yoga and Pilates can improve their balance and reduce their risk of falls.</p>
<p>There are other diseases that affect your bones as you get older such as arthritis and rickets.
Therefore it is really important to look after your bones throughout your life.</p>
</div>
<div class="botlogoholder"><a href="home.html" class="homelinkbh"><img src="css/images/9-12/Human_Body/bottomhomehb.png"></a></div>
</div> <!-- end content -->
</div><!--/spacechar-->
<div class="micbtnholder"><div class="micbtnskelton" id="playstophealthyoldbones"></div></div>
<div class="bskelton"><div class="rwskelton" id="healthyoldbonesaudiobbtn"></div></div>
<div class="plskelton"><div class="plpsskelton" id="healthyoldbonesaudioplbtn"></div></div>
<div class="fskelton"><div class="fwskelton" id="healthyoldbonesaudiofbtn"></div></div>
<div id="actualaudio-healthyoldbones" style="visibility:hidden;"></div>
<!-- </div> -->
<script>
// sound setup is in home.html and index.js
sound = new Audio(); // 'sound' is now an audio object
var playing;
var paused;
(function() {
playing = false;
paused = true;
$('div#pol2').css("z-index", 2);
$('div#pol1').css("z-index", 1);
$('div#pol1 > img').css("-webkit-transform", "rotate(0deg)");
$('div#pol2 > img').css("-webkit-transform", "rotate(5deg)");
$('div#pol3 > img').css("-webkit-transform", "rotate(-3deg)");
if(sound.canPlayType('audio/mpeg')) {
$('#actualaudio-healthyoldbones').html('<audio id="healthyoldbonesaudio" controls preload onpause="playsskelton()" onplay="pauseskelton()"><source src="audio/Build_Your_Own_Skelton/Old_Bones.mp3" type="audio/mpeg"></audio>');
}
$("#sub-build-your-own-skelton-keep-skelton-healthy-old-bones").swipe( { swipeRight:goBack, allowPageScroll:"auto"} );
})();
$('.homelinkbh').on('tap', function() { bgsoundskelton.pause(); bgsoundskelton.currentTime = 0; mainaudiobg.play(); });
$(".returncard").on('tap', function() {
$('#f1_card').css({"-webkit-transform": "rotateY(0deg)"});
$('#f1_card').css({"-moz-transform": "rotateY(0deg)"});
$('#f1_card').css({"-o-transform": "rotateY(0deg)"});
$('#f1_card').css({"transform": "rotateY(0deg)"});
setTimeout(function() {
$("#pol1").css({"visibility":"visible", "z-index":3});
$('#f1_container').css({"visibility":"hidden", "z-index":0});
}, 1000);
});
$(".returncard2").on('tap', function() {
$('#f2_card').css({"-webkit-transform": "rotateY(0deg)"});
$('#f2_card').css({"-moz-transform": "rotateY(0deg)"});
$('#f2_card').css({"-o-transform": "rotateY(0deg)"});
$('#f2_card').css({"transform": "rotateY(0deg)"});
setTimeout(function() {
$("#pol2").css({"visibility":"visible", "z-index":3});
$('#f2_container').css({"visibility":"hidden", "z-index":0});
}, 1000);
});
$('.falseans1').on('tap', function() {
alert("Wrong answer");
});
$('#trueans1').on('tap', function() {
alert("Correct answer");
});
// $("#pol3").on('tap', function() {
// $.mobile.changePage("sub-space-sleeps-binaries.html", {transition: "slide"});
// });
//
$("#pol1").on('tap', function() {
$('#f1_container').css({"visibility":"visible", "z-index":10});
$(this).css({"visibility":"hidden"});
$('#f1_card').css({"-webkit-transform": "rotateY(180deg)"});
$('#f1_card').css({"-moz-transform": "rotateY(180deg)"});
$('#f1_card').css({"-o-transform": "rotateY(180deg)"});
$('#f1_card').css({"transform": "rotateY(180deg)"});
});
$("#pol2").on('tap', function() {
$('#f2_container').css({"visibility":"visible", "z-index":10});
$(this).css({"visibility":"hidden"});
$('#f2_card').css({"-webkit-transform": "rotateY(180deg)"});
$('#f2_card').css({"-moz-transform": "rotateY(180deg)"});
$('#f2_card').css({"-o-transform": "rotateY(180deg)"});
$('#f2_card').css({"transform": "rotateY(180deg)"});
});
$('.falseans2').on('tap', function() {
alert("Wrong answer");
});
$('#trueans2').on('tap', function() {
alert("Correct answer");
});
function goBack() {
$.mobile.changePage("sub-build-your-own-skelton-keep-skelton-healthy.html", {transition: "slide", reverse: true });
}
function playsskelton() {
bgsoundskelton.play();
}
function pauseskelton() {
bgsoundskelton.pause();
}
/* ******************** */
/* this is the microphone button */
$("#playstophealthyoldbones").on('tap', function() {
if(!playing) {
healthyoldbonesaudio.play();
$('.micbtnskelton').css('background-position-x', '-81px');
playing = true;
paused = false;
} else {
healthyoldbonesaudio.pause(); healthyoldbonesaudio.currentTime = 0;
$('.micbtnskelton').css('background-position-x', '0px');
playing = false;
paused = true;
}
});
$("#healthyoldbonesaudioplbtn").on('tap', function() {
if(!paused) {
healthyoldbonesaudio.pause();
paused = true;
} else {
healthyoldbonesaudio.play();
paused = false;
}
//$(".audiopanel").css({"backgroundPosition":"-197px 0px"});
});
$("#healthyoldbonesaudiofbtn").on('tap', function() {
var ctime = healthyoldbonesaudio.currentTime;
healthyoldbonesaudio.currentTime = ctime + 10;
});
$("#healthyoldbonesaudiobbtn").on('tap', function() {
var ctime = healthyoldbonesaudio.currentTime;
healthyoldbonesaudio.currentTime = ctime - 10;
});
$("#healthyoldbonesaudiopsbtn").on('tap', function() {
healthyoldbonesaudio.pause();
});
</script>
<script src="js/threecardLogic.js"></script> <!-- for card dragging effects -->
</div> <!--//home-->