-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathindex.html
100 lines (79 loc) · 3.34 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>
<head>
<title>SongSeeker</title>
<script type="module">
import QrScanner from "https://unpkg.com/qr-scanner/qr-scanner.min.js";
</script>
<link rel="stylesheet" href="style.css">
<meta name=viewport content="width=device-width, initial-scale=1">
<!-- Allow web app to be run in full-screen mode -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<!-- iOS icons -->
<link rel="apple-touch-icon" sizes="180x180" href="icon-180x180.png">
<!-- Android icons -->
<link rel="icon" type="image/png" sizes="192x192" href="icon-192x192.png">
<link rel="icon" type="image/png" sizes="96x96" href="icon-96x96.png">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="shortcut icon" sizes="192x192" href="icon-192x192.png">
<link rel="manifest" href="manifest.json">
</head>
<body>
<h2>SongSeeker</h2>
<div id="qr-reader">
<button id="cancelScanButton" class="button">Cancel Scan</button>
<video id="qr-video"></video>
</div>
<button id="startScanButton" class="button_startscan">Start Scan</button>
<br />
<button id="startstop-video" class="button_startstop">Play</button>
<div id="videoid">Video ID: <span id="video-id"></span></div>
<div id="videotitle">Video Title: <span id="video-title"></span></div>
<div id="videoduration">Video Duration: <span id="video-duration"></span></div>
<div id="videostart">Start Time: <span id="video-start"></span></div>
<hr />
<br/>
<div>
<a href="https://github.com/andygruber/songseeker/" target="_blank">View the SongSeeker project on GitHub</a>
</div>
<br/>
<!-- <p id="list"></p> -->
<input type="checkbox" id="cb_settings" name="cb_settings" />
<label for="cb_settings">Show / Hide settings</label>
<div class="settings_div" id="settings_div">
<div class="text-block">
<div class="heading">Autoplay</div>
<div>
<input type="checkbox" id="autoplay" name="autoplay" />
<label for="autoplay">Autoplay</label>
</div>
</div>
<div class="text-block">
<div class="heading">Random Playback</div>
<div>
<input type="checkbox" id="randomplayback" name="randomplayback" />
<label for="randomplayback">Random Playback</label>
<br />
<label for="playback-duration">Playback Duration (seconds): </label>
<input type="number" id="playback-duration" value="30">
</div>
</div>
<div class="text-block">
<div class="heading">Debug</div>
<div>
<input type="checkbox" id="songinfo" name="songinfo" />
<label for="songinfo">Show song info</label>
<br/>
<input type="checkbox" id="cookies" name="cookies" />
<label for="cookies">Show cookies</label>
<span id="cookielist"></span>
<br/>
<button id="debugButton" class="button">Debug Scan</button>
</div>
</div>
</div>
<div id="player"></div> <!-- Load YouTube Player -->
<script type="module" src="app.js?version=20250202v5"></script>
</body>
</html>