forked from jbarciauskas/varnish-inspector
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathimoney_varnish_bot.html
102 lines (91 loc) · 3.59 KB
/
imoney_varnish_bot.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>iMoney Varnish Bot Cache Clearer</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="jquery.min.js"></script>
<script src="imoney_varnish_bot.js"></script>
<style>
#ban-status {
height: 250px;
overflow: auto;
}
#add-host {
display: none;
margin-top: 7px;
}
#submit-wrapper {
position: relative;
}
#danger-text {
display: none;
position: absolute;
top: 0;
line-height: 1.3em;
right: -45px;
width: 372px;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<h1>iMoney Varnish Bot Cache Clearer</h1>
<a href="options.html" class="pull-right"><span class="glyphicon glyphicon-cog"></span></a>
<h4>What do you want to clear today?™</h4>
<div class="col-md-6">
<form id="varnish-ban" class="form-horizontal">
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Hosts</label>
<div id="checkbox-wrapper" class="col-sm-10">
<p id="add-host"><a href="options.html">Add hosts</a></p>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">URL</label>
<div class="col-sm-3">
<select class="form-control" id="operator" placeholder="Password">
<option value="==">equals</option>
<option value="~">contains</options>
</select>
</div>
<div class="col-sm-7">
<div class="input-group">
<div class="input-group-addon">/</div>
<input type="text" class="form-control" id="parameter" placeholder="parameter e.g. home-loan">
</div>
</div>
</div>
<div class="form-group">
<div id="submit-wrapper" class="col-sm-offset-2 col-sm-10">
<button id="submit" type="submit" class="btn btn-success">Confirm</button>
<p id="danger-text" class="text-danger">Note: Leaving the parameter blank will clear the whole site.</p>
</div>
</div>
</form>
</div>
</div>
<div class="row">
<div id="ban-status" class="col-sm-offset-1 col-sm-6 well">
<strong style="font-size: 16px">Status</strong><br/><br/>
</div>
</div>
</div>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<!-- Latest compiled and minified JavaScript -->
<script src="bootstrap.min.js"></script>
</body>
</html>