-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
81 lines (76 loc) · 1.98 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
<html>
<head>
<style>
body {
font-family: sans-serif;
}
li {
margin-bottom: 12px;
}
form {
display: inline;
}
input[type=text] {
width: 400px;
font-size: 18px;
}
.coll {
font-size: 18px;
font-weight: bold;
margin-right: 4px;
}
</style>
<script>
function load_url(form)
{
if (!form || !form.firstElementChild) {
return false;
}
var textbox = form.firstElementChild;
if (textbox.value) {
window.location.href = "/" + textbox.id + "/" + textbox.value;
}
return false;
}
</script>
</head>
<body>
<h1>pywb Wayback Web Recorder Demo</h1>
<ul>
<li>
<span class="coll">/live/</span>
<form onsubmit="return load_url(this)">
<input id="live" name="live" type="text" placeholder="url" />
<input type="submit" value="Go"/>
</form>
<div class="info">Fetch a live version of <i>url</i></div>
</li>
<li>
<span class="coll">/record/</span>
<form onsubmit="return load_url(this)">
<input id="record" name="record" type="text" placeholder="url" />
<input type="submit" value="Go"/>
</form>
<div class="info">Fetch a live version of <i>url</i> but through warcprox recording proxy, recording all traffic.</div>
</li>
<li>
<span class="coll">/replay/</span>
<form onsubmit="return load_url(this)">
<input id="replay" name="replay" type="text" placeholder="url" />
<input type="submit" value="Go"/>
</form>
<div class="info">Replay an archived version of <i>url</i>. If not found, show missing url error.</div>
</li>
<li>
<span class="coll">/replay-record/</span>
<form onsubmit="return load_url(this)">
<input id="replay-record" name="replay-record" type="text" placeholder="url" />
<input type="submit" value="Go"/>
</form>
<div class="info">Replay an archived version of <i>url</i>, If not found, internally call the <b>/record/</b> handler to fetch and record a copy.</div>
</li>
</ul>
<br/>
<i>See <a href="https://github.com/ikreymer/pywb-webrecorder">https://github.com/ikreymer/pywb-webrecorder</a> for more info and latest updates.</i>
</body>
</html>