-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsub-ac-greece-storytelling.html
186 lines (167 loc) · 9.51 KB
/
sub-ac-greece-storytelling.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
<!-- i-C-a -->
<div id="storytelling" data-role="page">
<script src="js/hammer.js"></script>
<script src="js/jquery.hammer.js"></script>
<script src="js/slidebar.js"></script>
<div class="menuhousing"></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="menubtnholder"><img class="menubtn" src="css/images/5-8/Ancient_Civilizations/Greece/menubtn.png"></div>
<div class="bptitleholder" style="padding-top:14px;"><h1>Greek Story Telling</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">
<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/hearagpol.jpg" alt="" />
</div>
<div id="backofcard" class="back face center">
<p>Here are two verses of the Odyssey in the language of the Ancient Greeks. Translated to English, it would mean something like... "Narrate to me, Muse, about the man of many ways who wandered a lot and to many places after the holy citadel of Troy fell".</p>
<div id="psbutton-oddysey">
<div id="audiobuttonholder-oddysey"><a href="#" id="start-oddysey"><img src="css/images/sound.png" height="30px" width="30px"></a></div>
<div id="actualaudio-oddysey" style="display: none;">
</div>
</div>
<p>no audio file available yet</p>
</div>
</div><!--/f1+card-->
</div>
<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/iliadpol.jpg" alt="" />
</div>
<div id="pol2"class="pPiece" style="left:75px;top:290px;">
<img src="css/images/5-8/Ancient_Civilizations/Greece/Origins_of_Ancient_Greece/odysseypol.jpg" alt="" />
</div>
<div id="pol3"class="pPiece" style="left:80px;top:270px;">
<img src="css/images/5-8/Ancient_Civilizations/Greece/Origins_of_Ancient_Greece/hearagpol.jpg" alt="" />
</div>
</div><!--/zoomwrapper-->
</div>
<div class="bpcontent">
<p>You know, of course, that ancient civilisations did not have modern technologies like computers, TVs, and movie theatres. They had their own ways to have fun - playing music, attending live theatre, and by telling stories...</p>
<p>Ancient Greek stories were told by singing verses of poetry. The singers of the stories were very skilful - they could remember thousands of verses without any written records or notes!</p>
<p>Stories were told to educate children, record histories and legends, to inspire and bind communities together, and just to entertain.</p>
<p>The most famous Greek poet and story teller was <a href="#imongnawong" data-rel="popup">Homer</a>. Homer is credited with writing the Iliad and the Odyssey, but historians think he may not have composed all of them by himself... each of them contain more than 13,000 verses!</p>
<p>Even today, nearly 3,000 years later, they're pretty cool stories... !</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>Homer is perhaps the most important ancient Greek poet. He lived and composed his verses in the first half of the eight century BCE. He was probably a travelling bard from ancient Chios or Smyrna who offered his services for a fee. He may also have been a member of a guild of singers. He wrote the Iliad and the Odyssey, famous stories that have inspired poets, artists, and storytellers ever since... including modern movie makers!</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="storytellingaudiobbtn" src="css/images/audio/audio-back.png"></div>
<div class="plbh"><img id="storytellingaudioplbtn" src="css/images/audio/audio-play.png"></div>
<div class="psbh"><img id="storytellingaudiopsbtn" src="css/images/audio/audio-pause.png"></div>
<div class="fbh"><img id="storytellingaudiofbtn" src="css/images/audio/audio-forw.png"></div>
<div id="actualaudio-storytelling" style="visibility:hidden;"></div>
</div>
<script>
sound = new Audio();
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)");
$('div#pol3 > img').css("-webkit-transform", "rotate(-3deg)");
$('#f1_container').css({"visibility":"hidden", "z-index":0});
if(sound.canPlayType('audio/mpeg')) {
$('#actualaudio-storytelling').html('<audio id="storytellingaudio" controls preload onpause="playagbg()" onplay="pauseagbg()"><source src="http://back.uvmate.com/sites/default/files/subjectsaudio/Page15.mp3" type="audio/mpeg"></audio>');
}
$("#storytelling").swipe( { swipeRight:goBack, allowPageScroll:"auto"} );
})();
(function() {
var url = "http://back.uvmate.com/jeuel_services/educ.json?nid=62";
$.getJSON( url, function( data ) {
//$('#node-pop').html(data[0].Body);
if(soundpop.canPlayType('audio/mpeg')) {
$('#psbuttonpop').show();
$('#actualaudiopop').html('<audio controls preload onpause="playagbg()" onplay="pauseagbg()"><source src="'+ data[0].Audio +'" type="audio/mpeg"></audio>');
} else {
soundpop.src = null;
$('#psbuttonpop').html('Your system does not support HTML5 Audio.');
$('#psbuttonpop').show();
}
});
})();
$('#start-storytelling').on('click', function() {
$('#actualaudio-storytelling').show();
var oldHeight = $('#node-body-holder').height();
var newHeight = oldHeight - $('#actualaudio-storytelling').height();
$('#node-body-holder').height(newHeight);
});
$('#odysseylink').on('click', function() {
startodysseyaudiobg();
pauseagbg();
});
$('#iliadlink').on('click', function() {
startiliadaudiobg();
pauseagbg();
});
$('#startpop').on('click', function() {
$('#actualaudiopop').show();
});
function goBack() {
$.mobile.changePage("sub-ac-greece-lifeinag.html");
}
$('.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() {
$("#pol3").css({"visibility":"visible", "z-index":3});
$('#f1_container').css({"visibility":"hidden", "z-index":0});
}, 1000);
});
$("#pol3").on('tap', function() {
$('#f1_container').css({"visibility":"visible", "z-index":10});
$(this).css({"visibility":"hidden"});
$('#f1_card').css({"-webkit-transform": "rotateY(180deg)", "-webkit-box-shadow" : "-5px 5px 5px #aaa;"});
$('#f1_card').css({"-moz-transform": "rotateY(180deg)", "-moz-box-shadow" : "-5px 5px 5px #aaa;"});
$('#f1_card').css({"-o-transform": "rotateY(180deg)"});
$('#f1_card').css({"transform": "rotateY(180deg)", "box-shadow" : "-5px 5px 5px #aaa;"});
});
$("#pol2").on('tap', function() {
startodysseyaudiobg();
pauseagbg();
$.mobile.changePage("sub-ac-greece-odyssey.html");
});
$("#pol1").on('tap', function() {
startiliadaudiobg();
pauseagbg();
$.mobile.changePage("sub-ac-greece-iliad.html");
});
/* ******************** */
$("#storytellingaudioplbtn").on('tap', function() {
storytellingaudio.play();
agsoundbg.pause(); agsoundbg.currentTime = 0;
$(".audiopanel").css({"backgroundPosition":"-197px 0px"});
});
$("#storytellingaudiofbtn").on('tap', function() {
var ctime = storytellingaudio.currentTime;
storytellingaudio.currentTime = ctime + 10;
});
$("#storytellingaudiobbtn").on('tap', function() {
var ctime = storytellingaudio.currentTime;
storytellingaudio.currentTime = ctime - 10;
});
$("#storytellingaudiopsbtn").on('tap', function() {
storytellingaudio.pause();
$(".audiopanel").css({"backgroundPosition":"0px 0px"});
});
</script>
<script src="js/threecardLogic.js"></script>
</div>