-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (74 loc) · 3.6 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Adblock Control</title>
<!-- FOUC Fix -->
<style>html{visibility: hidden;opacity:0;}</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.0/css/bulma.min.css" integrity="sha256-aPeK/N8IHpHsvPBCf49iVKMdusfobKo2oxF8lRruWJg=" crossorigin="anonymous" />
<meta name="theme-color" content="#8ce4f2">
<meta name="description" content="A simple UI for temporarily disabling a Pi-Hole adblocker.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="Adblock Control">
<meta property="og:type" content="website">
<meta property="og:url" content="adblock.earley.ml">
<meta property="og:image" content="/assets/icon.png">
<link rel="apple-touch-icon" href="/assets/icon.png">
<link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png">
<link rel="manifest" href="/assets/site.webmanifest">
<link rel="mask-icon" href="/assets/safari-pinned-tab.svg" color="#1e88e5">
<link rel="shortcut icon" href="/assets/favicon.ico">
<meta name="msapplication-TileColor" content="#b91d47">
<meta name="msapplication-config" content="/assets/browserconfig.xml">
</head>
<body>
<!-- Add your site or application content here -->
<section class="hero is-dark is-bold is-fullheight">
<div class="hero-body">
<div class="container has-text-centered">
<figure class="image container is-128x128">
<img src="/assets/icon.png">
</figure>
{{ if . }}
<h1 class="title">
Adblock is now {{.Status}} for {{.Duration}} minutes.
</h1>
<h2 class="subtitle">
You can now close this page.
</h2>
{{ else }}
<h1 class="title">
Disable Adblock
</h1>
<h2 class="subtitle">
Because the 'net is weird.
</h2>
<form action="/disable" method="GET">
<div class="field">
<div class="control">
<button id="button" class="button is-primary is-large">
Disable Adblock
</button>
</div>
</div>
<div class="field">
<p class="control">
<span class="select">
<select id="duration" name="duration">
<option value="600">10 Minutes</option>
<option value="1800" selected>30 Minutes</option>
<option value="3600">60 Minutes</option>
</select>
</span>
</p>
</div>
</form>
{{ end }}
</div>
</div>
</section>
<link rel="stylesheet" href="/assets/main.css">
</body>
</html>