-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpopup.html
124 lines (106 loc) · 2.41 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
<!doctype html>
<html>
<head>
<title>CentralReach</title>
<script src="js/libs/forge0.7.1.js"></script>
<script src="js/libs/jquery3.2.1.js"></script>
<script src="js/libs/ss-utils.js"></script>
<script src="js/crapi.js"></script>
<script src="js/popup.js"></script>
</head>
<style type="text/css">
body {
margin: 0;
min-width: 200px;
padding: 15px;
font-family: Arial, Helvetica, sans-serif;
}
.section {
margin: 8px 0px 15px 0px;
}
body .section:first-child {
margin-top: 0px;
}
body .section:last-child {
margin-bottom: 0px;
}
.section .title {
font-weight: 600;
color: #666;
}
.sub-section {
font-size: 0.85em;
margin-top: 8px;
}
select option {
-webkit-appearance: none;
padding: 5px;
}
#cancelCredsUpdate {
margin-left: 8px;
display: none;
}
#credentialsSaved {
display: none;
}
#settings {
cursor: pointer;
position: absolute;
top: 3px;
right: 9px;
}
#status {
border-top: solid .5px lightgray;
margin-top: 15px;
margin-bottom: -22px;
margin-left: -15px;
margin-right: -15px;
padding: 9px 8px 6px 8px;
font-size: 0.9em;
min-height: 14px;
color: #666;
}
</style>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<body>
<div id="settings">
<i id="crsettings" class="fa fa-cog" title="Extension Settings"></i>
</div>
<div id="eventActions" class="section">
<div class="sub-section">
<a id="crenableevents" href="#">Enable/Re-enable All Events</a>
</div>
<div class="sub-section">
<a id="crstopevents" href="#">Stop All Events</a>
</div>
<div class="sub-section">
<a id="crgetevents" href="#">Get Schedule/Appointments</a>
</div>
</div>
<div id="credentialsInputForm" class="section">
<div>
<label>
CentralReach UserName
<input type="password" id="crapiuser">
</label>
</div>
<div>
<label>
CentralReach Password
<input type="password" id="crapipw">
</label>
</div>
<div>
<button id="crauthsettings">Submit Credentials</button>
<a id="cancelCredsUpdate" href="#">Cancel</a>
</div>
</div>
<div id="credentialsSaved" class="section">
<div>Your credentials are on file.</div>
<div>
<a id="updateCredsLink" href="#">Update Credentials</a>
</div>
</div>
<div id="status"></div>
</body>
</html>