-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
146 lines (128 loc) · 4.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mcan Radio App v2.0.0</title>
<script src="js/rplayer.js"></script>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
</head>
<style>
/* Light mode */
@media (prefers-color-scheme: light) {
:root {
--body-bg: #FFFFFF;
--body-color: #111111;
--box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -1px rgb(0 0 0 / 6%);
--stop: #f5f5f5;
}
}
/* Dark mode */
@media (prefers-color-scheme: dark) {
:root {
--body-bg: #202020;
--body-color: #d1d1d1;
--box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--stop: #272727;
--li-color:#181818;
}
}
body {
background: var(--body-bg);
color: var(--body-color);
}
ul{
list-style-type: none;
margin: 0;
padding: 0;
margin-left: auto;
margin-right: auto;
position: relative;
width: 300px;
}
li{
position: relative;
float: left;
width: 130px;
height: 100px;
text-align: center;
line-height: 100px;
font-family: Arial, Helvetica, sans-serif;
font-weight: 600;
font-size: 14px;
border-radius: 10px;
background-color: var(--li-color);
box-shadow: var(--box-shadow);
margin: 10px;
cursor: pointer;
user-select: none;
}
li:hover{
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
li:last-child{
background: var(--stop);
}
#live{
position: relative;
top: -30px;
font-size: 10px;
color: #fff;
background: rgb(219, 54, 54);
height: 20px;
width: 40px;
margin-left: auto;
margin-right: auto;
line-height: 20px;
border-radius: 10px;
}
input[type=range][orient=vertical]
{
writing-mode: bt-lr; /* IE */
appearance: slider-vertical; /* WebKit */
top: 10px;
width: 8px;
height: 80px;
position: relative;
cursor: pointer;
}
</style>
<body>
<ul>
<li id="1" onclick="play('https://live.radyofenomen.com/fenomen/abr/fenomen/256/chunks.m3u8',1)">Radyo Fenomen </li>
<li id="2" onclick="play('https://moondigitaledge.radyotvonline.net/palstation/playlist.m3u8',2)">Pal Station</li>
<li id="3" onclick="play('https://27993.live.streamtheworld.com/METRO_FM128AAC.aac',3)">Metro FM</li>
<li id="4" onclick="play('https://listen.powerapp.com.tr/powerfm/abr/powerfm/256/chunks.m3u8',4)">Power FM</li>
<li id="5" onclick="play('https://22593.live.streamtheworld.com/JOY_FM_ITUNES.mp3',5)">Joy FM</li>
<li id="6" onclick="play('https://22193.live.streamtheworld.com/SC028_SO1_SC?/;stream.mp3',6)">Joy Hits</li>
<li id="7" onclick="play('https://playerservices.streamtheworld.com/api/livestream-redirect/VIRGIN_RADIO_SC?/;stream.mp3',7)">Virgin Radio</li>
<li id="8" onclick="play('https://n10101m.mediatriple.net/numberone',8)">Numberone FM</li>
<li id="9" onclick="play('https://27793.live.streamtheworld.com/SC010_SO1_SC',9)">Radio Mydonose</li>
<li id="10" onclick="play('https://trkvz-radyolar.ercdn.net/radyoenergy/chunklist.m3u8',10)">Radio Energy</li>
<li>
<input type="range" orient="vertical" step="1" value="1" onchange="vol(this.value)" />
</li>
<li id="1" onclick="stop()">Durdur</li>
</ul>
</body>
<script>
const audio = new rPlayer();
audio.volume = 0.01;
function play(song,id) {
if(document.getElementById("live"))
document.getElementById("live").remove();
var h = document.getElementById(id);
h.insertAdjacentHTML("beforeend", "<div id='live'>On Air</div>");
audio.playSrc(song);
}
function stop() {
audio.pause();
if(document.getElementById("live"))
document.getElementById("live").remove();
}
function vol(vol){
audio.volume = vol/100;
}
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/hls.js/0.5.14/hls.js"></script>
</html>