-
Notifications
You must be signed in to change notification settings - Fork 0
/
setting.html
121 lines (109 loc) · 3.07 KB
/
setting.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html>
<head>
<title>Settings</title>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 15px;
}
#subtitle {
color: #B22222;
font-family: ‘Trebuchet MS’, Helvetica, sans-serif;
font-size: 20px;
text-align: center;
}
#mainH {
color: #B22222;
font-family: ‘Trebuchet MS’, Helvetica, sans-serif;
text-align: center;
}
label {
font-family: ‘Trebuchet MS’, Helvetica, sans-serif;
color: darkslategrey;
font-size: 10px;
}
#web {
width: 30%;
padding: 4px 10px;
margin: 8px 0;
box-sizing: border-box;
border: 2px solid #B22222;
border-radius: 4px;
}
input[type=time] {
box-sizing: border-box;
border: 2px solid #B22222;
border-radius: 4px;
}
#timer{
display:block;
width:60px;
margin:7px 10px 3px 3px;
}
#add {
background-color: #B22222;
border: 2px solid black;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
margin: 4px 2px;
cursor: pointer;
border-radius: 20px;
}
</style>
<!-- <script src="setting.js"></script>-->
<!--
<script>
document.addEventListener('DOMContentLoaded', function() {
let dis = document.getElementWithId('filters');
});
</script>
-->
</head>
<body style="background-color: powderblue;">
<h1 id="mainH">Settings</h1>
<br/>
<h1>No-Go</h1>
<h2>Website Blocker</h2>
<h3 id="subtitle">Choose the website you want to block. Select days and times.</h3>
<br/>
<input placeholder = "type website" id="web" required>
<br/>
<br/>
<div id = "week">
<label><input type = "checkbox" name="check" id="0">Sunday</label>
<label><input type = "checkbox" name="check" id="1">Monday</label>
<label><input type = "checkbox" name="check" id="2">Tuesday</label>
<label><input type = "checkbox" name="check" id="3">Wednesday</label>
<label><input type = "checkbox" name="check" id="4">Thursday</label>
<label><input type = "checkbox" name="check" id="5">Friday</label>
<label><input type = "checkbox" name="check" id="6">Saturday</label>
</div>
<br/>
<label id="timer">Starting Time<input name="time1" type="time" id="starting"></label>
<label id="timer">End Time<input name="time2" type="time" id="ending"></label>
<br/>
<p id="message"></p>
<div id="but" style="text-align:center;">
<input type="button" onclick="" id="add" value="Add">
</div>
<!--Currently blocked websites-->
<table id = "blocked-list">
<tr>
<th>Website</th>
<th>Times</th>
<th>Delete</th>
</tr>
</table>
<br />
<button id="clear" >Clear all blocked websites</button>
<script src="setting.js"></script>
</body>
</html>