-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
104 lines (100 loc) · 3.29 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
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Domain Block</title>
<link rel="stylesheet" href="./assets/css/popup.css" />
</head>
<body class="body" data-route="block-list">
<main class="block-list">
<section style="margin-bottom: 25px">
<a href="#" id="analyze_link" class="nav-link"
>Analyze current Page</a
>
<div style="display: flex; width: 100%">
<div style="padding: 5px 5px 5px 0; min-width: 180px; width: 50%">
<label>
<small>Website Address</small>
</label>
<input type="text" id="site-url" />
<span id="siteUrlError"></span>
</div>
<div style="padding: 5px 0 5px 5px" id="domain-entry-wrapper">
<small>Request Domain to block</small>
<div class="domain-entry-group" id="group-1">
<input type="text" class="domain-to-block" />
<span class="domain-input-error"></span>
<!-- <button class="remove-domain" data-close-nope="group-1" >x</button> -->
</div>
</div>
</div>
<div id="btns-container" data-edit="none">
<button id="add-domain">Add Domain</button>
<button
id="save-entry"
style="margin-left: 15px"
class="add-mode-btn"
>
Save & Block
</button>
<button id="remove-entry" class="edit-mode-btn">Remove Entry</button>
<button
id="edit-entry"
style="margin-left: 15px"
class="edit-mode-btn"
>
Save & Block</button
><!-- same func as add -->
</div>
</section>
<section id="entries-section">
<h3 style="text-align: center">Block List</h3>
<table style="table-layout: fixed">
<thead>
<tr>
<th style="width: 40%">Site</th>
<th style="width: 60%">Domains</th>
<th style="width: 20%"></th>
</tr>
</thead>
<tbody id="block-list-entries"></tbody>
</table>
</section>
</main>
<main class="analyze-page">
<a href="#" id="block_list_link" class="nav-link"
><span style="font-size: 20px; text-decoration: none !important">
←</span
>
Back</a
>
<section>
<div style="display: flex;align-items: center;justify-content: center;">
<img src="" id="favicon"/>
<h2 id="domainName"></h2>
</div>
<p id="pageUrl"></p>
<!-- <table id="page-requests">
<thead>
<tr>
<th>Domain</th>
<th>Url</th>
</tr>
</thead>
<tbody>
</tbody>
</table> -->
<div id="page-requests">
</div>
<div style="display: flex;justify-content: space-between;margin-top:25px;">
<button id="reloadPage">Reload to show requests</button>
<button id="block-page-domains">Block Request Domains</button>
</div>
</section>
</main>
<script async="false" src="./assets/js/common_funcs.js"></script>
<script async="false" src="./assets/js/models/blockEntry.js"></script>
<script src="./assets/js/popup.js"></script>
</body>
</html>