-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
99 lines (93 loc) · 3.32 KB
/
Copy pathindex.php
File metadata and controls
99 lines (93 loc) · 3.32 KB
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
<html>
<head>
<link rel="icon" href="res/img/kane.network.ico"> <!-- Link to .ico file -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex, nofollow">
<meta name="viewport" content="width=device-width, initial-scale=0.9">
<script type="text/javascript" src="res/js/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="res/js/handlebars.min-v4.7.7.js"></script>
<link rel="stylesheet" type="text/css" href="res/css/style.css">
<link rel="stylesheet" type="text/css" href="res/css/base.css">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-wed-app-status-bar-style" content="black" />
<meta name="viewport" content="width=device-width">
<title>Song Request</title>
</head>
<body>
<div class="container">
<div id="success-alert" class="alert alert-success" style="display:none;">
</div>
<div id="danger-alert" class="alert alert-danger" style="display:none;">
</div>
<div style="display: block; margin: auto;">
<h2 style="color: black; padding-top: 30px;">Song Request</h2>
</div>
<div style="text-align:center" id="login-button-container">
<button class="btn btn-primary" id="btn-login">Login</button>
</div>
<div id="controls">
<div id="logged-in-content-container">
<p style="color: black;">Type a song or artist name and hit "Search".</p>
<form id="search-form" name="search">
<input type="text" id="query" value="" class="form-control" placeholder="Song / Artist Name" style="text-align:center" />
<input type="submit" id="search" name="search" class="btn btn-success btn-lg" value="Search" />
</form>
</div>
</div>
<div style="padding-top: 30px" id="results"></div>
</div>
<div class="footer">
<table style="width:100%; padding-bottom:10px;">
<tr style="text-align:center; margin-bottom:10px;">
<td style="width:50%">Currently Playing
<table style="width:100%;">
<tr>
<td style="padding: 0;" id="currently-playing-artwork"></td>
<td id="currently-playing-track"></td>
</tr>
</table>
</td>
<td style="width:50%">Up Next
<table style="width:100%;">
<tr>
<td id="next-playing-artwork"></td>
<td id="next-playing-track"></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<script id="results-template" type="text/x-handlebars-template">
<table class="table">
<thead>
<tr>
<th scope="col">Artwork</th>
<th scope="col">Name</th>
<th scope="col">Artist</th>
<th scope="col">Album</th>
<th scope="col"></th>
</tr>
</thead>
{{#each tracks.items}}
<tr>
<div class="row">
<td><img src="{{ album.images.2.url }}"></td>
<td>{{ name }}</td>
<td>{{ artists.0.name }}</td>
<td>{{ album.name }}</td>
<td><button class="btn btn-success btm-sm" style=" white-space:nowrap;
overflow:hidden;" onclick="addToQueue(`{{ uri }}`,`{{ name }}`,`{{ artists.0.name }}`)" >Add to Queue</button></td>
</div>
</tr>
{{/each}}
</script>
<script id="no-results-template" type="text/x-handlebars-template">
nothing found!
</script>
<script type="text/javascript" src="res/js/auth.js?0.213"></script>
<script type="text/javascript" src="res/js/base.js?0.213"></script>
<!-- Scripts -->
</body>
</html>