forked from xombiemp/rutorrentMobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mobile.html
191 lines (181 loc) · 8.85 KB
/
mobile.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
<div id="mainContainer">
<nav id="mainNavbar" class="navbar navbar-inverse">
<div class="container">
<ul class="nav navbar-inverse">
<li>
<a id="navBack" href="javascript://void();" onclick="window.history.go(-1);"><i class="glyphicon glyphicon-arrow-left icon-white"></i></a>
</li>
<li>
<a id="navSettings" href="javascript://void();" onclick="mobile.showSettings();"><i class="glyphicon glyphicon-cog icon-white"></i></a>
</li>
<li>
<a id="navAdd" href="javascript://void();" onclick="mobile.addTorrent();"><i class="glyphicon glyphicon-plus icon-white"></i></a>
</li>
<li class="torrentControl divider-vertical"></li>
<li class="torrentControl">
<a id="torrentStart" href="javascript://void();" onclick="mobile.start();"><i class="glyphicon glyphicon-play icon-white"></i></a>
</li>
<li class="torrentControl">
<a id="torrentStop" href="javascript://void();" onclick="mobile.stop();"><i class="glyphicon glyphicon-stop icon-white"></i></a>
</li>
<li class="torrentControl">
<a id="torrentPause" href="javascript://void();" onclick="mobile.pause();"><i class="glyphicon glyphicon-pause icon-white"></i></a>
</li>
<li class='torrentControl'>
<a id="torrentDelete" href="javascript://void();" onclick="mobile.delete();"><i class="glyphicon glyphicon-trash icon-white"></i></a>
</li>
<li>
<div>
<i class="glyphicon glyphicon-upload icon-white"></i><span id="upspeed"></span>
</div>
<div>
<i class="glyphicon glyphicon-download icon-white"></i><span id="downspeed"></span>
</div>
</li>
</ul>
</div>
</nav>
<div class="mainContainer" id="torrentsList">
<ul class="nav nav-tabs">
<li id="torrentsStatus" class="dropdown">
<a href="javascript://void();" class="dropdown-toggle" data-toggle="dropdown"><span></span><b class="caret"></b></a>
<ul class="dropdown-menu pull-left">
<li id="torrentsAll">
<a href="javascript://void();" onclick="mobile.filter(mobile.statusFilter.all, this);"></a>
</li>
<li id="torrentsDownloading">
<a href="javascript://void();" onclick="mobile.filter(mobile.statusFilter.downloading, this);"></a>
</li>
<li id="torrentsCompleted">
<a href="javascript://void();" onclick="mobile.filter(mobile.statusFilter.completed, this);"></a>
</li>
<li id="torrentsActive">
<a href="javascript://void();" onclick="mobile.filter(mobile.statusFilter.active, this);"></a>
</li>
<li id="torrentsInactive">
<a href="javascript://void();" onclick="mobile.filter(mobile.statusFilter.inactive, this);"></a>
</li>
<li id="torrentsError">
<a href="javascript://void();" onclick="mobile.filter(mobile.statusFilter.error, this);"></a>
</li>
</ul>
</li>
<li id="torrentsLabels" class="dropdown">
<a href="javascript://void();" class="dropdown-toggle" data-toggle="dropdown"><span></span><b class="caret"></b></a>
<ul class="dropdown-menu pull-left"></ul>
</li>
<li id="torrentsTrackers" class="dropdown">
<a href="javascript://void();" class="dropdown-toggle" data-toggle="dropdown"><span></span><b class="caret"></b></a>
<ul class="dropdown-menu pull-right"></ul>
</li>
<li id="sort">
<a id="sortIcon" href="javascript://void();" onclick="mobile.showSort();"><i class="glyphicon glyphicon-sort icon-black"></i></a>
</li>
</ul>
<div id="list"></div>
</div>
<div class="mainContainer" id="torrentDetails" style="display:none;">
<div id="torrentDetailsHeader">
<h5 id="torrentName"></h5>
<div class="progress" id="torrentProgress">
<div class="progress-bar progress-bar-striped"></div>
</div>
</div>
<ul class="nav nav-tabs" id="detailsNav">
<li class="active" id="detailsDetailsTab">
<a href="javascript://void();" onclick="mobile.showDetailsInDetails();"></a>
</li>
<li id="detailsTrackers">
<a href="javascript://void();" onclick="mobile.showTrackersInDetails();"></a>
</li>
<li id="detailsFiles">
<a href="javascript://void();" onclick="mobile.showFilesInDetails();"></a>
</li>
</ul>
<table class="table table-striped detailsPage" id="detailsDetailsPage">
<tbody>
<tr id="status"><td></td><td></td></tr>
<tr id="priority"><td></td><td><select id="torrentPriority"></select></td></tr>
<tr id="label"><td></td><td></td></tr>
<tr id="done"><td></td><td></td></tr>
<tr id="downloaded"><td></td><td></td></tr>
<tr id="size"><td></td><td></td></tr>
<tr id="remaining"><td></td><td></td></tr>
<tr id="eta"><td></td><td></td></tr>
<tr id="uploaded"><td></td><td></td></tr>
<tr id="ratio"><td></td><td></td></tr>
<tr id="downloadSpeed"><td></td><td></td></tr>
<tr id="uploadSpeed"><td></td><td></td></tr>
<tr id="timeElapsed"><td></td><td></td></tr>
<tr id="wasted"><td></td><td></td></tr>
<tr id="seeds"><td></td><td></td></tr>
<tr id="peers"><td></td><td></td></tr>
<tr id="trackerStatus"><td></td><td></td></tr>
</tbody>
</table>
<div class="detailsPage" id="detailsTrackersPage"></div>
<div class="detailsPage" id="detailsFilesPage"></div>
</div>
<div class="mainContainer container" id="torrentSort" style="display:none;">
<div class="form-group">
<label class="select" for="sortOption"><h5></h5></label>
<select id="sortOption" class="form-control"></select>
<div class="radio">
<label id="sortAsc" class="radio-inline"><input type="radio" name="inlineRadioOptions" id="sort_asc" value=""><i class="glyphicon glyphicon-sort-by-attributes icon-black"></i></label>
<label id="sortDesc" class="radio-inline"><input type="radio" name="inlineRadioOptions" id="sort_desc" value="-"><i class="glyphicon glyphicon-sort-by-attributes-alt icon-black"></i></label>
</div>
</div>
<button id="sortOk" onclick="mobile.setSort();" class="btn btn-primary"></button>
<button id="sortCancel" onclick="history.go(-1);" class="btn btn-default"></button>
</div>
<div class="mainContainer container" id="globalSettings" style="display:none;">
<div class="form-group">
<label class="select" for="dlLimit"><h5></h5></label>
<select id="dlLimit" class="form-control"></select>
</div>
<div class="form-group">
<label class="select" for="ulLimit"><h5></h5></label>
<select id="ulLimit" class="form-control"></select>
</div>
</div>
<div class="mainContainer container" id="addTorrent" style="display:none;">
<form action="php/addtorrent.php?" id="addTorrentFile" method="post" enctype="multipart/form-data" target="uploadFrame">
<div class="input-append" id="dirEditBlock">
<input type="text" id="dir_edit" name="dir_edit" class="form-control pull-left" placeholder="Directory">
</div>
<div class="checkbox">
<label id='notAddPath'><input type="checkbox" name="not_add_path" id="not_add_path"></label>
</div>
<div class="checkbox">
<label id='startStopped'><input type="checkbox" name="torrents_start_stopped" id="torrents_start_stopped"></label>
</div>
<div class="checkbox">
<label id='fastResume'><input type="checkbox" name="fast_resume" id="fast_resume"></label>
</div>
<div class="checkbox">
<label id='randomizeHash'><input type="checkbox" name="randomize_hash" id="randomize_hash"></label>
</div>
<input class="form-control" type="text" id="tadd_label" name="tadd_label" placeholder="Label">
<hr>
<div class="form-group">
<label class="control-label" for="torrent_file" id="torrentFile"></label>
<input type="file" name="torrent_file" id="torrent_file">
</div>
<button type="submit" class="btn btn-primary" id='torrentFileSend'></button>
</form>
<hr>
<form action="php/addtorrent.php?" id="addTorrentUrl" method="post" target="uploadFrame">
<div class="form-group">
<input type="url" id="url" name="url" class="form-control" placeholder="Torrent URL">
</div>
<button type="submit" id="addUrl" class="btn btn-primary"></button>
</form>
</div>
<div class="mainContainer" id="getDirList" style="display:none;"></div>
<div class="mainContainer container text-center" id="confimTorrentDelete" style="display:none;">
<h5></h5>
<button id="deleteOk" onclick="mobile.deleteConfimed();" class="btn btn-primary"></button>
<button id="deleteCancel" onclick="history.go(-1);" class="btn btn-default"></button>
</div>
<div id="alert_placeholder"></div>
</div>