-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
167 lines (148 loc) · 4.25 KB
/
popup.html
File metadata and controls
167 lines (148 loc) · 4.25 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Auto Scroller</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
width: 300px;
height: 400px;
display: flex;
flex-direction: column;
background: #f5f5f5;
color: #333;
}
.container {
padding: 10px;
display: flex;
flex-direction: column;
height: 100%;
}
h1 {
font-size: 18px;
margin: 0;
padding-bottom: 10px;
border-bottom: 2px solid #007BFF;
}
p.description {
font-size: 14px;
margin: 10px 0;
color: #666;
}
.form-group, .url-list {
margin: 10px 0;
}
input[type="text"] {
width: calc(100% - 22px);
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
margin-right: 10px;
}
button {
padding: 10px;
border: none;
margin-top: 10px;
border-radius: 4px;
background-color: #007BFF;
color: white;
cursor: pointer;
font-size: 14px;
}
button:hover {
background-color: #0056b3;
}
.disabled {
background-color: #cccccc;
cursor: not-allowed;
}
.url-list {
list-style-type: none;
padding: 0;
}
.url-group {
margin-bottom: 10px;
}
.url-item {
display: flex;
justify-content: space-between;
align-items: center;
background: white;
margin-bottom: 5px;
padding: 8px;
border-radius: 4px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.url-item span {
flex: 1;
}
.url-item input[type="checkbox"] {
margin-right: 10px;
}
.url-item button {
background-color: #dc3545;
border: none;
padding: 5px;
border-radius: 4px;
cursor: pointer;
}
.url-item button:hover {
background-color: #c82333;
}
.message {
font-size: 14px;
color: green;
margin-top: 10px;
}
.hidden {
display: none;
}
.pagination {
display: flex;
justify-content: space-between;
margin: 10px 0;
}
.pagination button {
background-color: #007BFF;
color: white;
border: none;
padding: 5px 10px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
}
.pagination button:disabled {
background-color: #cccccc;
cursor: not-allowed;
}
</style>
</head>
<body>
<div class="container">
<h1>Auto Scroller</h1>
<p class="description">Control page scrolling speed with a draggable widget. Add URLs to automatically scroll pages.</p>
<button id="add-site-button" class="hidden">Add this website to Auto Scroller</button>
<div class="form-group">
<input type="text" id="url-input" placeholder="Add URL to Auto Scroller">
<button id="add-url" class="disabled" disabled>Add URL</button>
</div>
<div class="url-group">
<ul id="url-list" class="url-list">
<!-- URL items will be added here -->
</ul>
<div class="pagination">
<button id="prev-page" disabled>« Prev</button>
<button id="next-page" disabled>Next »</button>
</div>
<div class="form-group" style="margin: 0 0 10px 0;">
<button id="remove-button" style="margin-top: 0;" class="hidden">Remove</button>
</div>
</div>
<div id="message" class="message hidden"></div>
</div>
<script src="popup.js"></script>
</body>
</html>