-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
183 lines (160 loc) · 5.82 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1" />
<meta name="theme-color" content="#2b3a42" />
<meta property="og:title" content="Listen to Doing What Matters in Times of Stress by WHO" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://wom.fm/110/" />
<meta property="og:image" content="https://wom.fm/resources/OG_WOM.png" />
<meta name="twitter:card" content="summary_large_image" />
<script type="text/javascript" src="./resources/wom.js"></script>
<link rel="stylesheet" type="text/css" href="./resources/wom.css" />
</head>
<body>
<main class="mainPage">
<header class="header">
<div class="headerImg">
<a href="./index.html"><img src="./images/mems-logo.svg" alt="" /></a>
</div>
<div class="ourStoryWrapper">
<select name="language" id="select-language">
<option value="english">English</option>
<option value="yoruba">Yoruba</option>
<option value="igbo">Igbo</option>
</select>
<a href="./our-story.html">Our Story</a>
</div>
</header>
<!-- Slideshow container -->
<div class="slideshow-container">
<!-- Full-width images with number and caption text -->
<section class="sliderWrapper">
<div class="sliderTitle">
<h1 class="text"><span amplitude-song-info="name" id="song-name" amplitude-main-song-info="true"></span></h1>
<img src="./images/icon.svg" alt="" class="titleImg" />
</div>
<div class="mySlides fade">
<img src="./images/mother-speaking-to-her-child.jpg" />
</div>
<div class="mySlides fade">
<img src="./images/father-speaking-to-his-son.jpeg" />
</div>
<div class="mySlides fade">
<img src="./images/father-yelling-at-his-kid.jpeg" />
</div>
<!-- The dots/circles -->
<div style="text-align: center">
<span class="dot" onclick="currentSlide(1)"></span>
<span class="dot" onclick="currentSlide(2)"></span>
<span class="dot" onclick="currentSlide(3)"></span>
</div>
</section>
</div>
<hr class="divider" />
<!--end of slide show-->
<footer class="homePageFooter">
<div id="amplitude-player">
<div id="amplitude-left">
<div id="player-left-bottom">
<div id="control-container">
<div id="central-control-container">
<div id="central-controls">
<div id="prev-container">
<div class="amplitude-prev" id="previous"></div>
</div>
<div id="play-pause-container">
<div class="amplitude-play-pause" amplitude-main-play-pause="true" id="play-pause"></div>
</div>
<div id="next-container">
<div class="amplitude-next" id="next"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="time-container" dir="ltr">
<span class="current-time"> <span class="amplitude-current-time" amplitude-main-current-time="true"></span>
</span>/
<span class="duration">
<span class="amplitude-duration-time" amplitude-main-duration-time="true"></span>
</span>
<progress class="amplitude-song-played-progress" id="song-played-progress"
amplitude-main-song-played-progress="true"></progress>
</div>
<div class="volume">
<div id="menu-container">
<div id="share" onclick="openShare()"></div>
</div>
<div id="volume-container">
<div class="amplitude-mute"></div>
</div>
<input type="range" name="" class="amplitude-volume-slider" />
</div>
</div>
<div id="source">
Source:
<a id="link2source" href="" title="Source for this audio"><span class="source" amplitude-song-info="source"
amplitude-main-song-info="true"></span></a>
<script>
document.getElementById("link2source").onclick = function () {
var sourcelink = Amplitude.getActiveSongMetadata().source_url;
window.open(sourcelink);
};
</script>
</div>
</footer>
</main>
</body>
<script id="rendered-js" type="text/javascript" src="./audio.js"></script>
<script>
function download(file) {
window.location = file;
}
</script>
<script language="JavaScript">
window.onkeydown = function (e) {
return !(e.keyCode == 32);
};
/*
Handles a click on the song played progress bar.
*/
document.getElementById("song-played-progress").addEventListener("click", function (e) {
var offset = this.getBoundingClientRect();
var x = e.pageX - offset.left;
Amplitude.setSongPlayedPercentage((parseFloat(x) / parseFloat(this.offsetWidth)) * 100);
});
</script>
<script language="JavaScript">
var audiotitle = Amplitude.getActiveSongMetadata().name;
var audiourl = window.location.href;
openShare = async () => {
if (navigator.share) {
navigator
.share({
title: audiotitle,
url: audiourl,
})
.then(() => console.log("Successful share"))
.catch((error) => console.log("Error sharing", error));
}
};
</script>
<script language="JavaScript">
const selectLanguage = document.getElementById("select-language");
Amplitude.init(englishList);
selectLanguage.addEventListener("change", (event) => {
const lang = event.target.value;
Amplitude.pause();
if (lang === 'english') {
Amplitude.init(englishList);
} else if (lang === 'yoruba') {
Amplitude.init(yorubaList);
} else {
Amplitude.init(igboList);
}
});
</script>
</html>