-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
100 lines (91 loc) · 3.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Song Timer</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<script defer src="https://www.youtube.com/iframe_api"></script>
<script defer src="https://cdn.jsdelivr.net/npm/get-video-id/dist/get-video-id.umd.min.js"></script>
<script defer src="index.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
<style>
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.countdown {
border: 0;
color: white;
text-align: center;
width: 1.2em;
background:
linear-gradient(rgb(66, 77, 82), #fff) center bottom 5px /calc(100% - 10px) 2px no-repeat;
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (max-width: 327px) {
.countdown {
font-size: 10vw;
}
}
@media only screen and (min-width: 327px) {
.countdown {
font-size: 50px;
}
.sep {
font-size: 40px;
}
}
@media only screen and (min-width: 400px) {
.countdown {
font-size: 70px;
}
.sep {
font-size: 50px;
}
}
@media only screen and (min-width: 600px) {
.countdown {
font-size: 80px;
}
.sep {
font-size: 60px;
vertical-align:super;
}
}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
.countdown {
font-size: 90px;
}
.sep {
font-size: 4em;
}
}
.countdown:focus{
outline-width: 0;
}
</style>
</head>
<body class="bg-dark">
<div class="container p-5 my-5 text-white text-center">
<h1>Song Timer</h1>
<p>Just paste any youtube link and set the timer running!</p>
<div class="input-group mb-3">
<label for="link" class="input-group-text" id="basic-addon1">Link</label>
<input id="link" type="text" class="form-control" placeholder="Paste your youtube link" aria-label="Link" aria-describedby="basic-addon1" autofocus>
</div>
<input id="h" class="countdown" type="tel" maxlength="2" placeholder="00">
<p1 class="sep">:</p1>
<input id="m" class="countdown" type="tel" maxlength="2" placeholder="00">
<p1 class="sep">:</p1>
<input id="s" class="countdown" type="tel" maxlength="2" placeholder="00">
<br>
<button id="start" type="button" class="btn btn-primary my-5 px-4" disabled>Let's go!</button>
<br>
<div class="ratio ratio-16x9"><div id="playerdiv"></div></div>
</div>
</body>
</html>