-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
92 lines (84 loc) · 3.83 KB
/
popup.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
<!--
Some notes:
This is the HTML for the popup window of the Chrome extension.
-->
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="css/bootstrap.min.css">
<script src="js/bootstrap.min.js"></script>
<head>
<title>Grey-box Web Scraper</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/styles.css">
</head>
<body class="py-2 px-3 bg-light">
<h1 class="text-center">Grey-Box<br> Web Downloader</h1>
<form id="form" class="row row-cols-lg-auto g-3 align-items-center">
<div class="col-12 input-group-sm">
<label for="urlFormInput">Starting URL </label>
<div class="tooltip2">🛈
<span class="tooltiptext2">Enter the URL/Link to the website here</span>
</div>
<input type="url" required name="url" disabled class="form-control" id="urlFormInput" placeholder="Enter URL">
</div>
<div class="col-12 input-group-sm">
<label class="d-inline-block" for="depthFormInput">Depth</label>
<div class="tooltip2">🛈
<span class="tooltiptext2">Each time a new page is visited it is one level deeper than the last page</span>
</div>
<input class="d-inline-block" type="number" name="depth" min="0" max="10" class="form-control" id="depthFormInput" placeholder="0-10" value="1">
</div>
<div class="col-12 input-group-sm" id="max_links_div" hidden>
<label class="d-inline-block" for="depthFormInput">Max Links</label>
<input class="d-inline-block" type="number" name="depth" min="1" max="1000" class="form-control" id="max-links" placeholder="1-100" value="1">
</div>
<div class="progress">
<div id="progress-bar" class="progress-bar progress-bar-animated" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<p id="currentProgress"></p>
<form id="option-form" class="row row-cols-lg-auto g-3 align-items-center" action="#">
<div class="col-12">
<div class="form-check">
<label class="form-check-label" for="aszip">
<input class="form-check-input" name="aszip" type="checkbox" id="aszip">
Download as ZIP file
</label>
</div>
<div class="col-12">
<div class="form-check">
<label class="form-check-label" for="max_links_op">
<input class="form-check-input" name="max_links_op" type="checkbox" id="max_links_op">
Set Max # of links
</label>
<div class="tooltip2">🛈
<span class="tooltiptext2">Select this if you think the page has a lot of links</span>
</div>
</div>
</div>
<div class="col-12">
<div class="form-check">
<label class="form-check-label" for="omit_imgs">
<input class="form-check-input" name="omit_imgs" type="checkbox" id="omit_imgs">
Omit Images
</label>
<div class="tooltip2">🛈
<span class="tooltiptext2">Select this if you wish to download webpages without images.</span>
</div>
</div>
</div>
</div>
<div class="alert alert-danger" role="alert" id="link_alert" style="font-size:12px" hidden>
This page has a lot of links, we highly reccomend setting a low depth or a max link limit.
</div>
</form>
<div class="col-12 mb-2">
<button id="submitBtn" type="submit" class="btn btn-secondary btn-sm">Download</button>
</div>
</form>
<script src="js/jszip.js"></script>
<script src="js/jszip-utils.js"></script>
<script src="js/jquery-3.6.0.min.js"></script>
<script src="js/popup.js"></script>
</body>
</html>