forked from jeuelc/mworld-flat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sub-space-bh-bhgo.html
104 lines (91 loc) · 4.77 KB
/
sub-space-bh-bhgo.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
<!-- i-C-a -->
<div id="bhgo" data-role="page">
<div class="coachcontainer" style="position:absolute;top:0px;left:-225px;width:225px;height:320px;"></div>
<script src="js/slidebarbh.js"></script>
<div class="menuhousing"></div>
<div class="homebtnholder"><div class="homebtnbh"></div></div>
<div class="mpbtnholder"><div class="mpbtnbh"></div></div>
<div class="cpbtnholder"><div class="cpbtnbh"></div></div>
<div class="infobtnholder"><div class="infobtnbh"></div></div>
<div class="credsbtnholder"><div class="credsbtnbh"></div></div>
<div class="menubtnholder"><div class="menubtnbh"></div></div>
<div id="bonus-bh2" class="talkbubble" style="background:url(css/images/5-8/Space/Black_Holes/game/bonustalk.png) no-repeat; width:473px;height:296px;position:absolute;left:300px;top:40px;visibility:hidden;"></div><!--/bonus-msm-->
<div class="bptitleholder" style="padding-top:14px;"><h1>Where do Black Holes Go?</h1></div>
<div id="anisold">
<div id="spacechar">
<div data-role="content" class="kidzcontent">
<div class="v-spacer"></div>
<div class="sidebarleft-half">
</div>
<div class="bpcontent">
<p>Where do black holes go? If you keep feeding them with gas and dust from nearby stars, they just keep getting bigger and bigger. But what if you just leave them alone?</p>
<p>The astrophysicist Stephen Hawking has proposed that black holes can very gradually leak energy, and thus lose mass. This process, called Hawking radiation, would result in black holes evaporating away. </p>
<p>The smallest black holes would disappear almost instantly, while black holes the mass of the Sun would survive for a very long time. Not a billion years, not a trillion years, but far far longer!</p>
<p>Maybe you can become an astrophysicist one day and learn more about the mysteries of black holes!</p>
</div>
<div class="botlogoholder"><a href="home.html" class="homelinkbh"><img src="css/images/5-8/bottomhomebh.png"></a></div>
</div><!--end of content-->
</div>
</div><!--/anisold-->
<!--<section class="container" style="height:670px;margin-top:-600px;">
<div class="spriteComing"></div>
</section>-->
<div class="micbtnholder"><div class="micbtnbh"></div></div>
<div class="bbh"><div class="rwbh" id="bhgoaudiobbtn"></div></div>
<div class="plbh"><div class="plpsbh" id="bhgoaudioplbtn"></div></div>
<div class="fbh"><div class="fwbh" id="bhgoaudiofbtn" ></div></div>
<div id="actualaudio-bhgo" style="visibility:hidden;"></div>
<script src="js/spritespin.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="js/script.js"></script>
<script>
sound = new Audio(); // 'sound' is now an audio object
var playing;
(function() {
mworldPageVisit(1, 'Where-Do-Black-Holes-Go');
playing = false;
if(sound.canPlayType('audio/mpeg')) {
$('#actualaudio-bhgo').html('<audio controls preload id="bhgoaudio" onpause="pausedaudio()" onplay="pausebg()"><source src="http://back.uvmate.com/sites/default/files/subjectsaudio/Page22_0.mp3" type="audio/mpeg"></audio>');
}
$("#bhgo").swipe( { swipeRight:goBack, allowPageScroll:"auto"} );
})();
$('.homelinkbh').on('tap', function() { mainaudiobg.play(); bgsoundbh.pause();bgsoundbh.currentTime = 0; });
function goBack() {
$.mobile.changePage("sub-space-bh.html");
}
function pausedaudio() {
bgsoundbh.play();
}
function pausebg() {
bgsoundbh.pause();
}
$("#bonus-bh2").on('tap', function() {
bhcreator.play();bgsoundbh.pause();
$.mobile.changePage("game-bh1.html", {transition: "flip"});
})
/* ******************** */
$("#bhgoaudioplbtn").on('tap', function() {
if(!playing) {
bhgoaudio.play();
$('.micbtnbh').css('background-position-x', '-81px');
playing = true;
} else {
bhgoaudio.pause();
$('.micbtnbh').css('background-position-x', '0px');
playing = false;
}
//$(".audiopanel").css({"backgroundPosition":"-197px 0px"});
});
$("#bhgoaudiofbtn").on('tap', function() {
var ctime = bhgoaudio.currentTime;
bhgoaudio.currentTime = ctime + 10;
});
$("#bhgoaudiobbtn").on('tap', function() {
var ctime = bhgoaudio.currentTime;
bhgoaudio.currentTime = ctime - 10;
});
$("#bhgoaudiopsbtn").on('tap', function() {
bhgoaudio.pause();
$(".audiopanel").css({"backgroundPosition":"0px 0px"});
});
</script>
</div>