-
Notifications
You must be signed in to change notification settings - Fork 73
/
popup.html
134 lines (119 loc) · 3.03 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
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
<!doctype html>
<html>
<head>
<title>Hashpass</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<style type="text/css">
html {
margin: 0;
padding: 0;
}
body {
margin: 0;
padding: 0;
width: 332px;
font-family: sans-serif;
font-size: 0.9em;
color: #333;
}
input {
display: block;
box-sizing: border-box;
width: 300px;
height: 40px;
border: 2px solid #ddd;
border-radius: 2px;
padding: 8px 12px;
margin: 16px;
outline-style: none;
line-height: 20px;
font-size: 1.2em;
color: inherit;
}
input:focus {
border-color: #f872ae;
}
input, p {
margin: 16px;
}
.small-top-margin {
margin-top: 4px;
}
.small-bottom-margin {
margin-bottom: 4px;
}
.error {
color: #c00;
}
.hidden {
display: none;
}
button {
height: 40px;
line-height: 24px;
display: inline-block;
vertical-align: middle;
font-weight: 400;
font-size: 0.9em;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
-ms-border-radius: 2px;
-o-border-radius: 2px;
border-radius: 2px;
border-style: none;
padding: 8px 16px;
cursor: pointer;
background-color: #bc2f64;
border-bottom: 3px solid #862052;
color: #ffe8f3;
}
button:hover {
background-color: #ce346e;
border-bottom: 3px solid #862052;
color: #ffe8f3;
}
button:focus {
background-color: #ce346e;
border-bottom: 3px solid #862052;
color: #ffe8f3;
outline-style: none;
}
button:active {
background-color: #862052;
border-bottom: 3px solid #862052;
color: #dac6d0;
}
button:disabled {
cursor: default;
background-color: #794e66;
border-bottom: 3px solid #59424d;
color: #b7acb6;
}
button.selected {
cursor: default;
background-color: #862052;
border-bottom: 3px solid #862052;
color: #f1dbe6;
}
#spinner {
margin-left: 32px;
}
</style>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="popup.js"></script>
</head>
<body>
<div class="no-error">
<p class="small-bottom-margin">Session ID:</p>
<input id="session-id" class="small-top-margin" type="text" />
<p>
<button id="join-session" type="button" disabled="true">Join session</button>
<button id="new-session" type="button">New session</button>
<i id="spinner" class="fa fa-circle-o-notch fa-spin hidden"></i>
</p>
</div>
<div class="some-error hidden">
<p id="error-msg" class="error"></p>
</div>
</body>
</html>