-
Notifications
You must be signed in to change notification settings - Fork 3
/
sub-build-your-own-skelton-what-are-bones.html
136 lines (117 loc) · 5.79 KB
/
sub-build-your-own-skelton-what-are-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
<!-- i-C-a -->
<div data-role="page" id="sub-build-your-own-skelton-what-are-bones">
<!-- <script src="js/slidebarnat.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:14px;"><h1>What are bones?</h1></div>
<div data-role="content" class="kidzcontent">
<div class="navskelton-content">
<p>Bones are the hard part of your body that make up your skeleton! But your bones are not solid. If they were, they'd be too heavy for you to stand up and walk! Inside, your bones are spongy and have lots of holes in them too!</p>
<p>When you were born your skeleton had around 350 bones of all different shapes and sizes. They can be long, short, flat or even irregular!</p>
<p>But your bones are alive, growing and changing all the time. By the time you become an adult, you will only have 206 bones!</p>
</div>
<div class="navbtn1">
<p><a href="sub-build-your-own-skelton-what-are-they-made-of.html" data-transition="slide"><img src="css/images/9-12/Human_Body/Build_Your_Own_Skelton/What_Are_Bones/What_Are_They_Made_Of.png"></a></p>
</div>
<div class="navbtn2">
<p><a href="sub-build-your-own-skelton-long-short-wobbly-and-strange.html" data-transition="slide"><img src="css/images/9-12/Human_Body/Build_Your_Own_Skelton/What_Are_Bones/Long_Short_Wobbly_Strange.png"></a></p>
</div>
<div class="navbtn3">
<p><a href="sub-build-your-own-skelton-every-bone-has-home.html" data-transition="slide"><img src="css/images/9-12/Human_Body/Build_Your_Own_Skelton/What_Are_Bones/Every_Bone_Has_Home.png"></a></p>
</div>
<div class="navbtn4">
<p><a href="sub-build-your-own-skelton-what-are-bones-bones-are-alive.html" data-transition="slide"><img src="css/images/9-12/Human_Body/Build_Your_Own_Skelton/What_Are_Bones/Bones_Are_Alive.png"></a></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 class="audiopanel">-->
<!-- images are in slidebarnat.js
note: change the ids to be able play the narration
-->
<div class="micbtnholder"><div class="micbtnskelton" id="playstopwhatarebones"></div></div>
<div class="bskelton"><div class="rwskelton" id="whatarebonesaudiobbtn"></div></div>
<div class="plskelton"><div class="plpsskelton" id="whatarebonesaudioplbtn"></div></div>
<div class="fskelton"><div class="fwskelton" id="whatarebonesaudiofbtn"></div></div>
<div id="actualaudio-whatarebones" 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;
if(sound.canPlayType('audio/mpeg')) {
$('#actualaudio-whatarebones').html('<audio id="whatarebonesaudio" controls preload onpause="playsskelton()" onplay="pauseskelton()"><source src="audio/Build_Your_Own_Skelton/What_Are_Bones.mp3" type="audio/mpeg"></audio>');
}
$("#sub-build-your-own-skelton-what-are-bones").swipe( { swipeRight:goBack, allowPageScroll:"auto"} );
})();
$('.homelinkbh').on('tap', function() { bgsoundskelton.pause(); bgsoundskelton.currentTime = 0; mainaudiobg.play(); });
function goBack() {
$.mobile.changePage("sub-build-your-own-skelton.html", {transition: "slide", reverse: true });
}
function playsskelton() {
bgsoundskelton.play();
}
function pauseskelton() {
bgsoundskelton.pause();
}
/* ******************** */
/* this is the microphone button */
$("#playstopwhatarebones").on('tap', function() {
if(!playing) {
whatarebonesaudio.play();
$('.micbtnskelton').css('background-position-x', '-81px');
playing = true;
paused = false;
} else {
whatarebonesaudio.pause(); whatarebonesaudio.currentTime = 0;
$('.micbtnskelton').css('background-position-x', '0px');
playing = false;
paused = true;
}
});
$("#whatarebonesaudioplbtn").on('tap', function() {
if(!paused) {
whatarebonesaudio.pause();
paused = true;
} else {
whatarebonesaudio.play();
paused = false;
}
//$(".audiopanel").css({"backgroundPosition":"-197px 0px"});
});
$("#whatarebonesaudiofbtn").on('tap', function() {
var ctime = whatarebonesaudio.currentTime;
whatarebonesaudio.currentTime = ctime + 10;
});
$("#whatarebonesaudiobbtn").on('tap', function() {
var ctime = whatarebonesaudio.currentTime;
whatarebonesaudio.currentTime = ctime - 10;
});
$("#whatarebonesaudiopsbtn").on('tap', function() {
whatarebonesaudio.pause();
//$(".audiopanel").css({"backgroundPosition":"0px 0px"});
});
$('.navbtn1').on('tap', function() {
nav1Effects();
});
$('.navbtn2').on('tap', function() {
nav2Effects();
});
$('.navbtn3').on('tap', function() {
nav3Effects();
});
$('.navbtn4').on('tap', function() {
nav4Effects();
});
</script>
</div> <!--//home-->