-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanel.html
193 lines (176 loc) · 6.69 KB
/
panel.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE HTML>
<html>
<head>
<style>
.progress {
position: relative;
}
.progress span {
position: absolute;
display: block;
width: 100%;
color: black;
}
//~ #spinner {
//~ position: fixed;
//~ width: 100%;
//~ height: 100%;
//~ background: rgba(0,0,0,.15);
//~ top: 70;
//~ bottom: 0;
//~ z-index: 1000;
//~ }
#spinner
{
position: absolute;
height: 90%;
width: 100%;
margin: 0px;
padding: 0px;
//background: rgba(0,0,0,.05);
z-index: 1002;
}
.cssload-zenith {
z-index: 1001;
width: 49px;
height: 49px;
margin: 100px auto;
border-radius: 50%;
border-top-color: transparent;
border-left-color: transparent;
border-right-color: transparent;
box-shadow: 3px 3px 1px rgb(0,0,0);
animation: cssload-spin 690ms infinite linear;
-o-animation: cssload-spin 690ms infinite linear;
-ms-animation: cssload-spin 690ms infinite linear;
-webkit-animation: cssload-spin 690ms infinite linear;
-moz-animation: cssload-spin 690ms infinite linear;
}
@keyframes cssload-spin {
100%{ transform: rotate(360deg); transform: rotate(360deg); }
}
@-o-keyframes cssload-spin {
100%{ -o-transform: rotate(360deg); transform: rotate(360deg); }
}
@-ms-keyframes cssload-spin {
100%{ -ms-transform: rotate(360deg); transform: rotate(360deg); }
}
@-webkit-keyframes cssload-spin {
100%{ -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@-moz-keyframes cssload-spin {
100%{ -moz-transform: rotate(360deg); transform: rotate(360deg); }
}
</style>
</head>
<body>
<div id="outerWrapper">
<div id="addKodiHost" class="container" style="display: none; z-index: 1005;">
<div class="row">
<div class="col-md-12">
<h3>Add a new kodi server</h3>
<div id="invalidPort" style="display: none;"><font color="red">The entered port is not valid ...</font></div>
<div id="invalidHost" style="display: none;"><font color="red">The entered host address is not valid ...</font></div>
Host:<input type="text" id="newKodiHost"/><br/>
Port:<input type="text" id="newKodiPort"/><br/>
<button id="submitNewKodiHost" type='button'>Add</button><button id="cancelNewKodiHost" type='button'>Cancel</button>
</div>
</div>
</div>
<div id="deleteKodiHost" class="container" style="display: none; z-index: 1005;">
<div class="row">
<div class="col-md-12">
<h3>Delete kodi server?</h3>
<button id="submitDeleteKodiHost" type='button'>Yes</button><button id="cancelDeleteKodiHost" type='button'>Cancel</button>
</div>
</div>
</div>
<div id="noneAddKodiHost" style=" z-index: 1005;">
<div id="currentKodiHostWrapper" class="container">
Kodi host: <select id="selectKodiHost"></select><a id="addKodiHostBtn" href="#"><img src="./plus-button.png"/></a><a id="delKodiHostBtn" href="#"><img src="./minus-button.png"/></a>
</div>
<div id="spinner">
<div class="cssload-zenith"></div>
</div>
<div id="innerWrapper" class="container">
<div id="ifKodiOnline" style="display: none;">
<div id="ifKodiAuthenticated" style="display: none;">
<div class="row">
<div class="col-xs-12">
<h3>Send a video URL to Kodi</h3>
<form>
<div class="form-group">
<label for="sendUrlToKodiInput">Video URL</label>
<input id="sendUrlToKodiInput" onkeypress="return runScript(event)"/>
</div>
<p>
<div id="historyWrapper" style="display: none;">
<a id="toggleHistoryLink" href="#"><img style="display: inline-block;" id="openHistoryImg" src="./open.png"/><img id="closeHistoryImg" style="display: none;" src="./close.png"/></a> Most Recently Sent URLs
<ol id="history" style="display: none;">
</ol>
</div>
</p>
<button id="sendUrlToKodiSubmit" class="btn btn-default" type="button" >Play On Kodi</button>
<button id="sendUrlToKodiQueueSubmit" class="btn btn-default" type="button" >Queue On Kodi</button>
</form>
<div id="playlistWrapper" style="display: none;">
<h3>Current Playlist:</h3>
<ol id="playlist">
</ol>
<div id="progress" class="progress">
<div id="progressBar" class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%; color: #000;">
<span id="progressBarSpan"></span>
</div>
</div>
<div id="controlWrapper">
<h3>Remote Control</h3>
<div class="container">
<div class="row">
<div class="col-xs-1"><a id="lastLink" href="#"><img src="./last.png"/></a></div>
<div class="col-xs-1"><a id="rewindLink" href="#"><img src="./rewind.png"/></a></div>
<div class="col-xs-1"><a id="stopLink" href="#"><img src="./stop.png"/></a></div>
<div class="col-xs-1"><a id="playLink" href="#"><img style="display: inline-block;" id="playImg" src="./play.png"/><img id="pauseImg" style="display: none;" src="./pause.png"/></a></div>
<div class="col-xs-1"><a id="forwardLink" href="#"><img src="./forward.png"/></a></div>
<div class="col-xs-1"><a id="nextLink" href="#"><img src="./next.png"/></a></div>
<div class="col-xs-1">
<a id="muteLink" href="#"><img style="display: inline-block;" id="soundImg" src="./speaker-volume.png"/><img id="muteImg" style="display: none;" src="./mute.png"/></a>
</div>
<div class="col-xs-3">
<div id="volume" class="progress">
<div id="volumeBar" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 100%; color: #000;">
<span id="volumeBarSpan"></span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="ifKodiNeedsAuthentication" style="display: block;">
<div class="row">
<div class="col-md-12">
<h3>Kodi requires you to authenticate:</h3>
<div id="invalidLogin"><font color="red">Wrong login! Please try again ...</font></div>
Username:<input type="text" id="kodiUsername"/><br/>
Password:<input type="password" id="kodiPassword"/><br/>
<button id="kodiLoginButton" type='button'>Login</button>
</div>
</div>
</div>
</div>
<div id="ifKodiOffline" style="display: block;">
<div class="row">
<div class="col-md-12">
<h3>We could not connect to Kodi</h3>
Please verify your kodi configuration in the add-on settings.
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>