/
options.html
74 lines (71 loc) · 3.17 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
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
<!DOCTYPE html>
<meta charset="utf-8">
<link href='http://fonts.googleapis.com/css?family=Rokkitt' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Cabin' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/options.css" type="text/css">
<script type="text/javascript" src="vendor/jsOAuth-1.1.min.js"></script>
<script type="text/javascript" src="vendor/querystring.js"></script>
<script type="text/javascript" src="vendor/knockout-1.2.0.js"></script>
<script type="text/javascript" src="js/options.js"></script>
<title id="widget-title">Timeline Preferences</title>
<header>
<h1 id="widget-name">Timeline</h1>
</header>
<section>
<fieldset>
<legend>Timeline Type</legend>
<status></status>
<p>
<b>Select the type of timeline you would like to display.</b><br/>
<span style='text-align:left;display:block'>
<input name="type" type="radio" value="personal" data-bind="checked: timelineType" /><b>Personal Timeline</b> - Your personal twitter timeline (requires login)</input><br/>
<input name="type" type="radio" value="user" data-bind="checked: timelineType" /><b>User Timeline</b> - Timeline following a specific user</input><br/>
<input name="type" type="radio" value="list" data-bind="checked: timelineType" /><b>List Timeline</b> - Timeline following a specific list</input><br/>
</span>
</p>
</fieldset>
<fieldset class='toggleable' id='personalFieldset'>
<legend>Twitter Login</legend>
<status data-bind="css: { 'ok': authd() }, text: (authd() ? 'connected' : 'not connected')"></status>
<p>
<div id="login" data-bind="css: { hide: authd() }">
<button id='twitterRequestAccessKey' class='bigButton' title='Request Twitter Access Pin'>
Request Twitter Access Pin
</button>
<div id='inputAccessKey'>
<input id='twitterAccessKey' type='text' />
<button id='twitterSaveAccessKey' title='Save Pin'>Save Pin</button>
</div>
</div>
<div id="logout" data-bind="css: { hide: !authd() }">
<button id='unsaveUser' class='bigButton' title='Disconnect'>
Disconnect
</button>
</div>
</p>
</fieldset>
<fieldset class='toggleable' id='userFieldset'>
<legend>User Timeline Setup</legend>
<status></status>
<p>
<label for='userValue'>Twitter User to Display</label><input type='text' name='userValue' data-bind='value: userValue'/>
</p>
</fieldset>
<fieldset class='toggleable' id='listFieldset'>
<legend>List Timeline Setup</legend>
<status></status>
<p>
<label for='curator'>List Curator</label><input type='text' name='curator' data-bind='value: curator'/><br/>
<label for='listName'>List Name</label><input type='text' name='listName' data-bind='value: listName'/><br/>
</p>
</fieldset>
<fieldset>
<legend>Settings</legend>
<status></status>
<p>
<label for='updateInterval'>Update Every...</label>
<input id='updateInterval' name='updateInterval' type='range' min='15' max='60' data-bind='value: updateInterval'>
<span data-bind="text: updateInterval() + ' seconds'"></span>
</p>
</fieldset>
</section>