forked from jeuelc/mworld-flat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sub-ac-greece-hittites.html
181 lines (156 loc) · 10.1 KB
/
sub-ac-greece-hittites.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
<!-- i-C-a -->
<div id="hittites" data-role="page">
<script src="js/hammer.js"></script>
<script src="js/jquery.hammer.js"></script>
<script src="js/slidebar.js"></script>
<div class="menubtnholder"><img class="menubtn" src="css/images/5-8/Ancient_Civilizations/Greece/menubtn.png"></div>
<div class="homebtnholder"><img class="homebtn" src="css/images/5-8/Ancient_Civilizations/Greece/homebtn.png"></div>
<div class="cpbtnholder"><img class="cpbtn" src="css/images/5-8/Ancient_Civilizations/Greece/cpbtn.png"></div>
<div class="buildbtnholder"><img class="buildbtn" src="css/images/5-8/Ancient_Civilizations/Greece/buildbtn.png"></div>
<div class="mpbtnholder"><img class="mpbtn" src="css/images/5-8/Ancient_Civilizations/Greece/mpbtn.png"></div>
<div class="menuhousing"></div>
<div class="bptitleholder" style="padding-top:14px;"><h1>The Hittites</h1></div>
<div id="anisold"><div id="animatedsoldier"></div><div id="acgreecechar">
<div data-role="content" class="kidzcontent">
<div class="v-spacer"></div>
<div class="sidebarleft-half">
<a id="hittiteslink" style="visibility:hidden;" href="JavaScript:html5Lightbox.showLightbox(0, 'css/images/5-8/Ancient_Civilizations/Greece/Origins_of_Ancient_Greece/hittites.jpg', 'Ruins of the old Hittite capital Hattusa, in the modern-day state of Turkey');">click here</a>
<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/5-8/Ancient_Civilizations/Greece/Origins_of_Ancient_Greece/hearhittitespol.jpg">
</div>
<div id="backofcard" class="back face center">
<p>Any content can go here.</p>
</div>
</div><!--/f1+card-->
</div><!--/f1_container-->
<div id="zoomwrapper">
<div id="pol1" class="pPiece" style="left:100px;top:270px;">
<img src="css/images/5-8/Ancient_Civilizations/Greece/Origins_of_Ancient_Greece/hittitespol.jpg" alt="" />
</div>
<div id="pol2"class="pPiece" style="left:80px;top:270px;">
<img src="css/images/5-8/Ancient_Civilizations/Greece/Origins_of_Ancient_Greece/hearhittitespol.jpg" alt="" />
</div>
</div><!--/zoomwrapper-->
</div>
<div class="bpcontent">
<p>The Hittites rose to power around the 18th century BCE in a place they called , which covers large parts of modern Turkey. By the 14th century BCE they had conquered almost all Asia Minor as well as parts of the northern Levant and Upper Mesopotamia.</p>
<p>The Hittite civilisation collapsed by the end of the 12th century BCE, not long after the Hittite King Hattusilis III fought at the battle of Kadesh against the Egyptian Pharaoh Rameses II. No-one really won the battle, but both opponents were seriously weakened.</p>
<p>The Hittites used a style of writing called <a href="#imongnawong" data-rel="popup">cuneiform</a>. Modern historians have decoded cuneiform, so we can guess what the Hittite language sounded like. Click on the link to hear this 3,000 year old language brought back to life!</p>
</div>
<div data-role="popup" id="imongnawong" data-position-to="window" data-overlay-theme="a" style="text-align:center;">
<div id="node-pop">
<p>Cuneiform was a writing script used by the Hittites and other ancient civilisations of the Mediterranean region. Cuneiform was based on writing signs on clay tablets. Each sign was made up of a number of wedge-shaped strokes. Each sign had the value of a syllable, such as "ka", "pe", and "ru". Other signs had specific meanings as words, such as "king".</p>
<p>Because writing involved memorizing so many signs, only a few people (called "scribes") could master this art. Therefore, scribes were in high demand in the palace of the Hittite kings. Today still, learning to read and write well is a very valuable skill!</p>
</div>
</div>
<div class="botlogoholder"><a href="home.html" class="homelinkag"><img src="css/images/5-8/bottomhome.png"></a></div>
</div><!-- end of content -->
</div></div><!--/anisold-->
<div class="audiopanel">
<div class="bbh"><img id="hittitesaudiobbtn" src="css/images/audio/audio-back.png"></div>
<div class="plbh"><img id="hittitesaudioplbtn" src="css/images/audio/audio-play.png"></div>
<div class="psbh"><img id="hittitesaudiopsbtn" src="css/images/audio/audio-pause.png"></div>
<div class="fbh"><img id="hittitesaudiofbtn" src="css/images/audio/audio-forw.png"></div>
<div id="actualaudio-hittites" style="visibility:hidden;"></div>
</div>
<script>
sound = new Audio(); // 'sound' is now an audio object
soundpop = new Audio(); // 'sound' is now an audio object
(function() {
$('div#pol1 > img').css("-webkit-transform", "rotate(0deg)");
$('div#pol1').css("z-index", 2);
$('div#pol2').css("z-index", 1);
$('div#pol2 > img').css("-webkit-transform", "rotate(5deg)");
$('#f1_container').css({"visibility":"hidden", "z-index":0});
/*$('#titleb-holder').html("<h1>"+ data[0].node_title +"</h1>");*/
//$('#node-body-hittites').html(data[0].Body);
if(sound.canPlayType('audio/mpeg')) {
$('#actualaudio-hittites').html('<audio id="hittitesaudio" controls preload onpause="playagbg()" onplay="pauseagbg()"><source src="http://back.uvmate.com/sites/default/files/subjectsaudio/Page3.mp3" type="audio/mpeg"></audio>');
}
$("#hittites").swipe( { swipeRight:goBack, allowPageScroll:"auto", excludedElements:$.fn.swipe.defaults.excludedElements+", #backofcard" } );
})();
(function() {
var url = "http://back.uvmate.com/jeuel_services/educ.json?nid=12";
$.getJSON( url, function( data ) {
var html = data[0].Images;
var re = /<img[^>]+src="http:\/\/([^">]+)/g;
var results = re.exec(html);
var source = results[1];
$('#claytablink').attr('href', "JavaScript:html5Lightbox.showLightbox(0, 'http://"+source+"', 'Cuneiform Script');")
});
})();
$('#start-hittites').on('click', function() {
$('#actualaudio-hittites').show();
var oldHeight = $('#node-body-holder').height();
var newHeight = oldHeight - $('#actualaudio-hittites').height();
$('#node-body-holder').height(newHeight);
});
(function() {
var url = "http://back.uvmate.com/jeuel_services/educ.json?nid=59";
$.getJSON( url, function( data ) {
//$('#node-pop').html(data[0].Body);
if(soundpop.canPlayType('audio/mpeg')) {
$('#actualaudiopop').html('<audio controls><source src="'+ data[0].Audio +'" type="audio/mpeg"></audio>');
}
});
})();
/*(function() {
var url = "http://back.uvmate.com/jeuel_services/educ.json?nid=60";
$.getJSON( url, function( data ) {
$('#node-pop2').html(data[0].Body);
});
})(); */
function goBack() {
$.mobile.changePage("sub-ac-greece-origins.html");
}
$('#startpop').on('click', function() {
$('#actualaudiopop').show();
});
$('.homelinkag').on('tap', function() {
mainaudiobg.play(); agsoundbg.pause(); agsoundbg.currentTime = 0;
});
$("#f1_container").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() {
$("#pol2").css({"visibility":"visible", "z-index":3});
$('#f1_container').css({"visibility":"hidden", "z-index":0});
}, 1000);
//$("#hittites").swipe( { swipeRight:goBack, allowPageScroll:"auto"} );
//$("#hittites").swipe("enable");
});
$("#pol2").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)"});
});
$("#pol1").on('tap', function() {
$('#hittiteslink')[0].click();
});
/* ******************** */
$("#hittitesaudioplbtn").on('tap', function() {
hittitesaudio.play();
agsoundbg.pause(); agsoundbg.currentTime = 0;
$(".audiopanel").css({"backgroundPosition":"-197px 0px"});
});
$("#hittitesaudiofbtn").on('tap', function() {
var ctime = hittitesaudio.currentTime;
hittitesaudio.currentTime = ctime + 10;
});
$("#hittitesaudiobbtn").on('tap', function() {
var ctime = hittitesaudio.currentTime;
hittitesaudio.currentTime = ctime - 10;
});
$("#hittitesaudiopsbtn").on('tap', function() {
hittitesaudio.pause();
});
</script>
<script src="js/twocardLogic.js"></script>
</div>