-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
164 lines (146 loc) · 4.11 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Subvertise - Ruin it for them</title>
<link rel="stylesheet" href="css/material-icons.css">
<link rel="stylesheet" href="css/mdl.css">
<style>
#wrapper {
padding-left: 10px;
padding-right: 10px;
}
#controlbar {
position: fixed;
left: 0px;
top: 0px;
padding: 10px;
z-index: 100;
}
#info-bar {
position: fixed;
bottom: 0; left: 0; right: 0;
height: 26px;
padding: 3px;
overflow: hidden;
background-color: #ccc;
}
#info-bar .material-icons {
vertical-align: middle !important;
}
#info-bar p {
display: inline;
max-width: 50px;
overflow: hidden;
}
#url-text {
width: 100%;
height: calc(100vh - 160px);
resize: none;
}
/* Have to be careful with displaying absolute items inside an MDL tab */
#url-frame {
position: absolute;
top: 50px;
width: 100%;
height: calc(100% - 80px);
z-index: -2;
}
.form-box {
margin-bottom: 10px;
}
.form-box p {
margin: 0; padding: 3px;
}
.text-field {
border: 1px solid #ddd;
border-bottom: 1px solid #ccc;
width: calc(100% - 3px - 3px);
height: 30px;
padding: 3px;
line-height: 30px;
}
.frame-hide {
position: fixed;
background: #fff;
top: 0; left: 0; right: 0;
bottom: 0;
padding: 0; margin: 0;
z-index: -1;
}
.info-span {
font-weight: bold;
}
</style>
</head>
<body>
<webview id="url-frame" autosize="on"></webview>
<div id="wrapper">
<div class="frame-hide"></div>
<div class="mdl-tabs mdl-js-tabs mdl-js-ripple-effect">
<div class="mdl-tabs__tab-bar">
<a href="#links" class="mdl-tabs__tab is-active">
<i class="material-icons">list</i>
</a>
<a id="browser-link" href="#browser" class="mdl-tabs__tab">
<i class="material-icons">public</i>
</a>
<a href="#options" class="mdl-tabs__tab">
<i class="material-icons">settings</i>
</a>
</div>
<div class="mdl-tabs__panel is-active" id="links">
<p>
Enter urls below, each url on its own line.
URLs starting with <code>https://</code> offer the <i>best</i> possible
level of subversion.
</p>
<div id="url-text-wrap">
<textarea type="text" onchange="saveUrlText()" id="url-text"></textarea>
</div>
</div>
<div class="mdl-tabs__panel" id="browser">
<!-- <iframe id="url-frame" class="" sandbox="allow-forms allow-scripts allow-same-origin"></iframe> -->
</div>
<div class="mdl-tabs__panel" id="options">
<div class="form-box">
<p>Minimum wait time in seconds. Minimum of <i>1</i></p>
<input class="text-field" type="number" id="min-wait-time-text" onchange="saveMinWaitTime()">
</div>
<div class="form-box">
<p>Max wait time in seconds. Maximum of <i>300</i></p>
<input class="text-field" type="number" id="max-wait-time-text" onchange="saveMaxWaitTime()">
</div>
<b>Advanced</b>
<div class="form-box">
<p>Proxy string. Same format as Chromium <code>proxy-server</code> option.</p>
<input class="text-field" type="text" id="proxy-text" onchange="saveProxyText()"><br>
<small>This setting requires restarting Subvertise to take effect</small>
</div>
</div>
</div>
<div id="controlbar">
<div class="float-left">
<button
id="control-button"
class="mdl-button mdl-js-button mdl-button--colored mdl-button--fab mdl-button--mini-fab mdl-js-ripple-effect"
onclick="toggle()">
<i class="material-icons">play_arrow</i>
</button>
</div>
</div>
<div id="info-bar">
<p>
<i class="material-icons">link</i>
<span id="currentUrl"></span>
</p>
<p>
<i class="material-icons">timer</i>
<span id="nextHitTime"></span>
</p>
</div>
</div>
<script src="js/subvertise.js"></script>
<script src="js/material.min.js"></script>
</body>
</html>