-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
77 lines (73 loc) · 3.87 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv='expires' content='0'>
<meta http-equiv='pragma' content='no-cache'>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="description" content="Listen to news & music">
<link rel="manifest" href="./manifest.webmanifest">
<link rel="stylesheet" href="./css/style.css">
<link rel="stylesheet" href="./css/resp.css">
<link rel="shortcut icon" href="./img/favicon.ico" type="image/x-icon">
<title>Radio</title>
<script defer src="https://unpkg.com/localbase@0.7.5/dist/localbase.min.js"></script>
<script defer src="./js/script.js"></script>
<script defer src="./js/radio.js"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js')
.then(reg => console.log("Service worker registered"))
.catch(err => console.error(`Service Worker Error: ${err}`));
});
} else console.warn(`serviceWorker is not supported by the browser`);
</script>
</head>
<body onload="innerWidth >= 600 ? changeindicator() : changeindicatormobile();" onhashchange="innerWidth >= 600 ? changeindicator() : changeindicatormobile();">
<div class="nav-list">
<ul style="display: flex; align-items: center; list-style-type: none; height: 8vh;">
<li><span style="font-weight: bolder; border-right: 2px solid #fff;">Radio Global</span></li>
<li><a id="brwbtn" href="#all">Browse</a></li>
<li><a id="favbtn" href="#fav">Favorites</a></li>
</ul>
<img src="./svg/search.svg" id="schBtn" ondragstart="return false;" style="height: 4vh; cursor: pointer; z-index: 101;">
<input type="text" id="stn-search-query" placeholder="Search a Radio Station..." onkeyup="searchStation(this.value)" style="position: fixed; padding: 0 5vw; background-color: #000; outline: none; border: none; border-left: 10px solid #fff; width: 100vw; height: 8vh; z-index: 100; left: 100vw; transition: 750ms;"/>
</div>
<div id="interact">
<section id="all">
<div class="box">
<ul id="allbox"><center>Browse 🎵</center></ul>
</div>
</section>
<section id="fav">
<div class="box">
<ul id="favbox"><center>No Favorites 😢</center></ul>
</div>
</section>
<section id="sch">
<div class="box">
<ul id="searchbox"><center>Type Your Query in Search Text Box 🔍</center></ul>
</div>
</section>
</div>
<div id="player">
<audio id="aud" title=""></audio>
<div id="nowplaying">
<span id="nowplaying-country" style="width: 20%;">- - - - - - -</span>
<span id="nowplaying-region" style="width: 20%;">- - - - - - -</span>
<span id="nowplaying-title" style="width: 50%;">- - - - - - - - -</span>
</div>
<div class="btns">
<!-- <img src="./svg/notfav.svg" onclick="fav()" ondragstart="return false;"> -->
<img id="fav-btn" data-fav="notfav" src="./svg/notfav.svg" onclick="toggleFavs()" ondragstart="return false;">
<img src="./svg/pre.svg" onclick="pre()" ondragstart="return false;">
<img id="ppc-btn" data-ppc="paused" src="./svg/play.svg" onclick="audele.paused ? play() : pause()" ondragstart="return false;">
<img src="./svg/next.svg" onclick="next()" ondragstart="return false;">
<img id="vol-btn" data-mute="unmuted" src="./svg/unmuted.svg" onclick="toggleMute()" ondragstart="return false;">
</div>
</div>
</body>
</html>