forked from jeuelc/mworld-flat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sub-ancient.html
66 lines (60 loc) · 3.37 KB
/
sub-ancient.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
<!-- i-C-a -->
<div data-role="page" id="ancient">
<div data-role="content" style="overflow:hidden !important;">
<div id="titleb-holder"><h1 style="margin-top:184px;">Ancient Civilisations</h1></div>
<div style="width:90%;margin:auto;">
<!--<div class="aclink"><a href="preancientgreece.html" data-transition="slide" id="agmovielink"><img src="css/images/5-8/Ancient_Civilizations/agbtn.png"></a></div>-->
<div class="aclink"><a href="#" data-transition="slide" id="agmovielink"><img src="css/images/5-8/Ancient_Civilizations/agbtn.png"></a></div>
<div class="aclink"><a href="#" data-transition="slide"><img src="css/images/5-8/Ancient_Civilizations/cdbtn.png"></a></div>
<div class="aclink"><a href="#" data-transition="slide"><img src="css/images/5-8/Ancient_Civilizations/aibtn.png"></a></div>
<div class="aclink"><a href="#" data-transition="slide"><img src="css/images/5-8/Ancient_Civilizations/aztecbtn.png"></a></div><br>
<div class="aclink"><a href="#" data-transition="slide"><img src="css/images/5-8/Ancient_Civilizations/romebtn.png"></a></div>
<div class="aclink"><a href="#" data-transition="slide"><img src="css/images/5-8/Ancient_Civilizations/egyptbtn.png"></a></div>
<div class="aclink"><a href="#" data-transition="slide"><img src="css/images/5-8/Ancient_Civilizations/eabtn.png"></a></div>
<div class="aclink"><a href="#" data-transition="slide"><img src="css/images/5-8/Ancient_Civilizations/incasbtn.png"></a></div>
</div>
<div class="botlogoholder"><a href="home.html" class="homelinkag"><img src="css/images/5-8/bottomhome.png"></a></div>
<div id="pre-ag" style="width:1024px;height:748px;position:absolute;left:0px;top:0px;visibility:hidden;background:#000000;">
<div class="previdcontainer">
<video id="agvideo" width="1024" height="722" preload>
<source src="video/Ancient_Greece.m4v" type="video/mp4">
</video>
</div>
<!--<div style="float:right;margin-top:5px;margin-right:10px;z-index:999;"><a href="#" id="proceedtoag"><img src="css/images/5-8/Space/Black_Holes/skipvidbtn.png"></a></div>-->
</div> <!--/pre-ac -->
</div> <!-- end content -->
<script>
$(function() {
//agvideo = document.getElementById("agvideo");
$("#ancient").swipe( { swipeRight:goBack, allowPageScroll:"auto"} );
agvideo.addEventListener('ended', function() {
//agvideo.webkitExitFullscreen();
agsoundbg.play();
$.mobile.changePage("sub-ac-greece.html");
});
});
function goBack() {
$.mobile.changePage("home.html");
ancientsoundbg.pause(); ancientsoundbg.currentTime = 0;
mainaudiobg.play();
}
$("#agvideo").on('tap', function() {
//agvideo.webkitExitFullscreen();
agsoundbg.play();
$.mobile.changePage("sub-ac-greece.html");
});
$('#agmovielink').on('tap', function() {
ancientsoundbg.pause(); ancientsoundbg.currentTime = 0;
$("#pre-ag").css({"visibility":"visible"});
agvideo.play();
//agvideo.webkitEnterFullscreen();
});
$('.homelinkag').on('tap', function() {
mainaudiobg.play(); ancientsoundbg.pause(); ancientsoundbg.currentTime = 0;
});
$('#proceedtoag').on('tap', function() {
agsoundbg.play();
$.mobile.changePage("sub-ac-greece.html");
});
</script>
</div>