-
Notifications
You must be signed in to change notification settings - Fork 6
/
popup.html
168 lines (149 loc) · 6.1 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/remote.css" rel="stylesheet">
<link href="css/jquery-ui.css" rel="stylesheet">
<style>
body {
min-width:300px;
}
</style>
</head>
<body>
<div class="container">
<h3 class="align-center">Cast Rocket for Plex</h3>
<div role="tabpanel">
<p class="hide">
<button id="progress-00" data-toggle="progressbar" data-target="#myProgressbar" data-value="0" class="btn btn-default">0%</button>
<button id="progress-33" data-toggle="progressbar" data-target="#myProgressbar" data-value="33" class="btn btn-default">33%</button>
<button id="progress-66" data-toggle="progressbar" data-target="#myProgressbar" data-value="66" class="btn btn-default">66%</button>
<button id="progress-100" data-toggle="progressbar" data-target="#myProgressbar" data-value="100" class="btn btn-default">100%</button>
</p>
<div class="alert alert-danger alert-dismissible hide" role="alert" id="serveralert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
Plex server isn't responding.
</div>
<div class="alert alert-warning alert-dismissible hide" role="alert" id="clientalert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
No Plex client found.
</div>
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Home</a></li>
<li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">Settings</a></li>
<li role="presentation"><a href="https://www.changetip.com/tipme/ledge74" target="_blank">Donate</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="home">
<br>
<div class="container-fluid">
<div class="row">
<div class="col-xs-8">
<span style="font-size:11px">Connected to : </span><strong><p id="savedClient"></p></strong>
</div>
<div class="col-xs-4">
<button type="button" id="cast" data-loading-text="Cast" class="btn btn-custom" data-toggle="collapse" href="#collapseExample" aria-expanded="false" aria-controls="collapseExample">Cast</button>
</div>
</div>
</div>
<div class="container-fluid">
<div class="collapse" id="collapseExample">
<div class="row">
<div class="col-xs-12">
<h5 id="progresstext">Please wait...</h5>
<div id="myProgressbar" class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;">
<span class="sr-only">0% Complete</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-xs-2">
<span id="current" class="timevol">0:00:00</span>
</div>
<div class="col-xs-7" style="align:center">
<div id="timeseeker"></div>
</div>
<div class="col-xs-2">
<span id="duration" class="timevol" style="align:left">0:00:00</span>
</div>
</div>
<div class="row">
<div class="col-xs-4" style="text-align:right">
<br>
<span class="glyphicon glyphicon-stop" style="font-size:20px;padding-right:15px;" id="stopico"></span>
<span class="glyphicon glyphicon-play" style="font-size:20px;margin-right:-5px" id="playpauseico"></span>
</div>
<div class="col-xs-8">
<br>
<span id="volumeico" class="glyphicon glyphicon-volume-up" style="float:left; font-size: 20px;margin-right: 10px; "></span>
<div id="volumeseeker"></div>
</div>
</div>
<div class="row">
</div>
</div>
<hr><p><strong>Choose Plex Client</strong></p>
<P><select id="plexClient" name="plexClient" class="form-control" style="">
</select></P>
<button type="button" id="save" class="btn btn-custom" data-loading-text="Saved!">Use Client</button>
<button type="button" id="update" data-loading-text="Updating..." class="btn btn-default">Update List</button>
<p> </p>
<p class="text-info" style="font-size:8px">TIPS: use your keyboard arrows, esc, space and return keys to navigate</p>
</div>
<div role="tabpanel" class="tab-pane" id="settings">
<br>
<p><strong>Plex Server</strong></p>
<div id="serverformip">
<div class="input-group">
<input type="text" class="form-control" placeholder="ex 127.0.0.1" id="plexServer">
<span class="input-group-btn">
<button class="btn btn-custom" type="button" data-loading-text="Save!" id="SaveServer">Save!</button>
</span>
</div>
<br>
<span id="serverok" class="text-success hide">Server connected :)</span><span id="serverrerror" class="text-danger hide">Server timeout</span> <br>
<p><strong>HTML5 Video Settings</strong></p>
<div class="checkbox">
<label style="font-size:11px">
<input type="checkbox" id="pausevideosetting"> Pause video in web browser when Casting
</label>
</div>
<div class="checkbox">
<label style="font-size:11px">
<input type="checkbox" id="offsetvideosetting"> Continue playback at current time when Casting
</label>
</div>
</div>
<div id="serverformlogin" class="hide">
<h3>MyPlex Login</h3>
<p class="help-block">Your Plex Server requires authentication.</p>
<div class="form-group">
<label for="username">Username</label>
<input type="text" name="username" id="username" class="form-control"/>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" name="password" id="password" class="form-control"/>
</div>
<div class="form-group">
<button type="submit" name="sub" id ="MyPlexLogin" class="btn btn-custom" data-loading-text="Submit">Submit</button> <span id="loginerror" class="text-danger hide">Error: wrong login?</span>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="popup.js"></script>
</body>
</html>