-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoptions.html
41 lines (34 loc) · 1.02 KB
/
options.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
<html>
<head><title>Kanbanery Options</title></head>
<link id="base_stylesheet" rel="stylesheet" type="text/css" href="css/options.css" />
<script type="text/javascript" src="lib/3rdparty/jquery.js"></script>
<script type="text/javascript">
// Saves options to localStorage.
function save_options() {
localStorage["userToken"] = $('#user-token').val();
// Update status to let user know options were saved.
var status = $("#status");
status.html("Options Saved.");
setTimeout(function() {
status.html("");
}, 750);
}
// Restores select box state to saved value from localStorage.
function restore_options() {
$('#user-token').val(localStorage["userToken"]);
}
</script>
<body onload="restore_options()">
<div id="container">
<h4>Kanbanery Options</h4>
<div id="status"></div>
<p>
<label>User Token</label>
<input id="user-token" name="user_token"/>
</p>
<p>
<button onclick="save_options()">Save</button>
</p>
</div>
</body>
</html>