-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaincore.js
54 lines (43 loc) · 1.08 KB
/
maincore.js
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
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)) {
}
window.onload = function() {
top.document.title = "Beats1 - â–¶";
music.load();
music.play();
if (music.paused) {
PlayButton.className = "";
PlayButton.className = "play";
top.document.title = "Beats1 - ▌▌";
}
}
music.onsuspend=function(){
if (PlayButton.className == "pause") {
top.document.title = " Beats1 - â–¶";
//music.load();
//music.play();
location.reload();
} else {
music.load();
music.pause();
PlayButton.className == "play"
top.document.title = " Beats1 - ▌▌";
};
}
//Play and Pause
function play() {
// start music
if (music.paused) {
music.load();
music.play();
// remove play, add pause
PlayButton.className = "";
PlayButton.className = "pause";
top.document.title = "Beats1 - ?";
} else { // pause music
music.pause();
// remove pause, add play
PlayButton.className = "";
PlayButton.className = "play";
top.document.title = "Beats1 - ¦¦";
}
}