-
Notifications
You must be signed in to change notification settings - Fork 12
/
popup.html
90 lines (90 loc) · 2.05 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
<html>
<head>
</head>
<body>
<link rel="stylesheet" type="text/css" href="./node_modules/gun/examples/style.css">
<style>
body, form, button, input, textarea {
font-size: 16pt;
}
body {
min-height: 9em;
min-width: 20em;
}
#ask {
display: none;
}
#ask:target {
display: block;
}
button {
width: 100%;
padding: 1em;
color: white;
box-sizing: border-box;
}
.blue {
background: blue;
}
.red {
background: red;
}
#any {
display: none;
}
#any:target {
display: block;
}
#say {
border-bottom: dashed lightblue 0.1em;
min-height: 1em;
padding: 0.5em;
}
[contenteditable=true]:empty:before {
content: attr(placeholder);
display: block;
color: grey;
}
#link {
background: black;
}
#options {
background: black;
width: 100%;
color: white;
}
.half {
width: 49%;
box-sizing: border-box;
cursor: pointer;
}
.center {
text-align: center;
}
</style>
<div id="ask">
<p class="ask">dApp wants to act on your behalf. OK?</p>
<div class="center">
<button id="yes" class="half blue">YES</button>
<button id="no" class="half red">NO</button>
</div>
</div>
<div id="any">
<div><span class="ask">dApp wants to act on your behalf. OK?</span><small><small> press <kbd>ESC</kbd> to skip/exit.</small></small></div>
<div id="say" contenteditable="true" placeholder="Write here..."></div>
<div class="center">
<button id="encrypt" class="half red">🔒 ENCRYPT</button>
<button id="broadcast" class="half blue">📢 BROADCAST</button>
</div>
</div>
<a id="options" href="./options.html" target="_blank" class="center act"><button id="options" class="act">OPTIONS</button></a>
<!-- button id="link">Contact Book</button -->
<script src="node_modules/gun/examples/jquery.js"></script>
<script src="popup.js"></script>
<script async src="node_modules/gun/lib/fun.js"></script>
<script async src="node_modules/gun/lib/normalize.js"></script>
<script async src="node_modules/gun/lib/monotype.js"></script>
<script async src="node_modules/gun/lib/meta.js"></script>
<script async src="reload.js"></script>
</body>
</html>