-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
107 lines (97 loc) · 2.44 KB
/
popup.html
File metadata and controls
107 lines (97 loc) · 2.44 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Allnested Wishlist Saver</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
:root {
--accent: #07a;
--accent-dark: #005fa3;
}
html, body {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
/* increase width — Firefox will honor up to a browser limit */
width: 380px; /* try 380px, increase if needed */
min-width: 320px;
}
.wrap {
padding: 12px;
}
h3 {
margin: 0 0 10px 0;
font-size: 16px;
color: var(--accent);
}
button.primary {
background: var(--accent);
color: #fff;
border: none;
padding: 8px;
width: 100%;
cursor: pointer;
border-radius: 4px;
font-size: 14px;
}
button.primary:hover { background: var(--accent-dark); }
.links {
margin-top: 8px;
display:flex;
gap:8px;
}
.links a {
flex:1;
text-align:center;
text-decoration:none;
color:var(--accent);
padding:6px 8px;
background:#f4f8ff;
border-radius:4px;
font-size:13px;
}
/* notification area */
.notif {
display:none;
margin-top:10px;
padding:8px;
background:#2b2f33;
color:#fff;
border-radius:8px;
font-size:13px;
line-height:1.3;
word-break: break-word; /* wrap long titles */
max-height: 160px;
overflow: auto;
}
.notif .close {
display:inline-block;
margin-top:8px;
background:#0b6;
color:#fff;
border:none;
padding:5px 8px;
border-radius:4px;
cursor:pointer;
float:right;
}
</style>
</head>
<body>
<div class="wrap">
<h3>Allnested Wishlist Saver</h3>
<button id="saveBtn" class="primary">Save Current Page</button>
<div class="links">
<a id="viewWishlist" href="wishlist.html" target="_blank">View Saved Wishlist</a>
<a id="visitAllnested" href="https://allnested.com" target="_blank">Allnested.com</a>
</div>
<div id="notif" class="notif" role="status" aria-live="polite">
<div id="notifText"></div>
<button id="closeNotif" class="close">OK</button>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>