-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (57 loc) · 1.58 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
<!doctype html>
<html>
<head>
<title>Show Pages</title>
<style>
input.url { width: 400px; }
</style>
</head>
<body>
<header>
<h1>Show pages from the web</h1>
</header>
<main>
<p>Enter urls to show below:</p>
<div class="form">
<ul>
<li>Url: <input class="url"</li>
<li>Url: <input class="url"</li>
<li>Url: <input class="url"</li>
<li>Url: <input class="url"</li>
<li>Url: <input class="url"</li>
<li>Url: <input class="url"</li>
<li>Url: <input class="url"</li>
<li>Url: <input class="url"</li>
<li>Url: <input class="url"</li>
<li>Url: <input class="url"</li>
</ul>
<input type="button" class="btn btn-submit" value="Run">
</div>
</main>
<!-- jQuery siteshow dependency -->
<script src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<!-- siteshow -->
<script src="src/showpages.js"></script>
<script>
$(function ($) {
// Bind the submit button.
$('.btn-submit').on('click', function (ev) {
// Find associated url inputs.
var $inputs = $(this).closest('.form').find('input.url');
var urls = [];
$inputs.each(function () {
if (this.value != '') {
urls.push(this.value);
}
});
// Create and run the show..
new ShowPages(urls).run();
// Avoid a form sumbission.
return false;
})
}(jQuery));
</script>
</body>
</html>