-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
97 lines (76 loc) · 3.09 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Study.Fm</title>
<link rel="stylesheet" href="styles.css">
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.2/css/all.min.css"
/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Aldrich&display=swap" rel="stylesheet">
<link rel="shortcut icon" href="/images/favicon.png" type="image/x-icon">
<!--Google analytics-->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-8CW21CCQC7"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-8CW21CCQC7');
</script>
</head>
<header>
<h1 class="studyfm_text">Study. Fm</h1>
</header>
<body>
<div id="music-container" class="music-container">
<div class="img-container">
<img src="images/spinning_record.png" id="cover">
</div>
<!-- Make sure ?enablejsapi=1 is in URL -->
<iframe id="video" width="0" height="0" data-video="5qap5aO4i9A" data-autoplay="0" data-loop="1" src="https://www.youtube.com/embed/5qap5aO4i9A?enablejsapi=1&html5=1"
title="YouTube video player" frameborder="0" allow="accelerometer; autoplay;
clipboard-write; encrypted-media; gyroscope; frameborder="0" allowfullscreen="1" picture-in-picture"></iframe>
<div class="buttons">
<button id="play-button" class="action-btn action-btn-big button">
<i class="fas fa-play"></i>
</button>
</div>
</div>
<script src="script.js"></script>
<script>
var player;
// this function gets called when API is ready to use
function onYouTubePlayerAPIReady() {
// create the global player from the specific iframe (#video)
player = new YT.Player('video', {
events: {
// call this function when player is ready to use
'onReady': onPlayerReady
}
});
}
function onPlayerReady(event) {
}
// Inject YouTube API script
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/player_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
</script></script>
<script type="text/javascript">
if (screen.width <= 700) {
document.location = "mobile.html";
}
</script>
</body>
<footer>
<a class="notion_doc" href="">Should you listen to music while studying?</a>
<a class="vishnudhanda" target=”_blank” href="https://www.instagram.com/pandavishnu/">@vishnudhanda</a>
</footer>
</html>