-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
80 lines (70 loc) · 1.74 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
<!DOCTYPE html>
<html>
<head>
<style>
*,
*::before,
*::after {
box-sizing: inherit;
}
html {
width: 300px;
box-sizing: border-box;
}
body {
width: 100%;
padding: 0 10px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0.5em 0;
}
.generators {
display: flex;
flex-direction: column;
width: 200px;
margin: auto;
}
.generator:not(:last-child) {
margin-bottom: 5px;
}
.last-copied-value__container {
margin-bottom: 20px;
}
</style>
</head>
<body>
<h1>Clipboard data generator</h1>
<p>
Click a button below and a generated value value will be copied to your
clipboard.
</p>
<div class="last-copied-value__container">
<h3>Last copied value</h3>
<span id="last-copied-value">Nothing has been copied yet</span>
</div>
<div class="generators">
<button class="generator" id="generate-ipv4">Random IPv4</button>
<button class="generator" id="generate-ipv6">Random IPv6</button>
<button class="generator" id="generate-cidr-ipv4">
Random CIDR IPv4
</button>
<button class="generator" id="generate-cidr-ipv6">
Random CIDR IPv6
</button>
<button class="generator" id="generate-mac">Random MAC</button>
<button class="generator" id="generate-timestamp">
Current timestamp
</button>
<button class="generator" id="generate-date">Current date</button>
<button class="generator" id="generate-time-and-date">
Current time and date
</button>
</div>
<script src="popup.js" type="module"></script>
</body>
</html>