forked from peterpay/leap-motion-chrome-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
205 lines (191 loc) · 4.55 KB
/
Copy pathoptions.html
File metadata and controls
205 lines (191 loc) · 4.55 KB
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!doctype html>
<html>
<head>
<title>Leap Motion Controller</title>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Open+Sans:400,700,600,300,800" />
<style>
body {
min-width: 357px;
overflow-x: hidden;
font-family: 'Open Sans', sans-serif;
padding: 20px;
margin: 0;
}
h1 {
background: url('img/icon_38.png') center left no-repeat;
height: 38px;
line-height: 38px;
text-indent: 50px;
font-size: 24px;
color: #666;
margin: 0;
margin-bottom: 20px;
padding: 0;
font-weight: normal;
}
p {
margin: 0;
padding: 0;
line-height: 30px;
}
p span {
color: #CCC;
font-size: 24px;
line-height: 30px;
}
a {
text-decoration: none;
color: #9ac847;
outline: none;
}
a:hover {
text-decoration: underline;
}
button {
background-color: #9ac847;
color: #fff;
border: none;
padding: 10px 20px;
cursor: pointer;
font-size: 16px;
margin: 0;
margin-top: 30px;
}
button:hover {
background-color: #8cb641;
}
#status
{
background-color: #9ac847;
color: #fff;
padding: 5px 0;
text-align: center;
width: 150px;
position: absolute;
top: 20px;
right: 20px;
display: none;
}
.header {
border-bottom: 1px dotted #DDD;
}
.footer {
margin-top: 50px;
text-align: center;
border-top: 1px dotted #DDD;
padding-top: 20px;
color: #EEE;
}
.footer a {
font-size: 12px;
color: #BBB;
white-space: nowrap;
}
.footer a:hover {
text-decoration: none;
color: #9ac847;
}
.options_label
{
text-transform: uppercase;
font-size: 20px;
margin-bottom: 20px;
color: #999;
margin-top: 30px;
}
label {
width: 150px;
display: block;
float: left;
}
select {
width: 100px;
margin-right: 25px;
}
.description
{
font-size: 12px;
white-space: nowrap;
}
#reset
{
background-color: #999;
}
#reset:hover
{
background-color: #888;
}
</style>
</head>
<body>
<div class="header">
<h1>Leap Motion Controller</h1>
</div>
<div id="status">Options Saved</div>
<p class="options_label">Fingers:</p>
<p>
<label for="fingers">Show Fingers:</label>
<select id="fingers" name="fingers">
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
<span class="description">Display Finger Locations on Screen</span>
</p>
<p>
<label for="color">Finger Colors:</label>
<select id="color" name="color">
<option value="rainbow">Rainbow</option>
<option value="leap">Leap Green</option>
<option value="dark">Dark</option>
<option value="light">Light</option>
</select>
<span class="description">Colors Used to Indicate Fingers</span>
</p>
<p class="options_label">Behaviors:</p>
<p>
<label for="scrolling">Page Scrolling:</label>
<select id="scrolling" name="scrolling">
<option value="enabled">Enabled</option>
<option value="disabled">Disabled</option>
</select>
<span class="description">Two Fingers to Scroll Page</span>
</p>
<p>
<label for="history">History Swipe:</label>
<select id="history" name="history">
<option value="enabled">Enabled</option>
<option value="disabled">Disabled</option>
</select>
<span class="description">Open Hand Swipe Left to go Back, Right to go Forward</span>
</p>
<p>
<label for="zoom">Page Zoom:</label>
<select id="zoom" name="zoom">
<option value="enabled">Enabled</option>
<option value="disabled">Disabled</option>
</select>
<span class="description">Experimental: Open Hand and Pinch/Zoom with All Fingers</span>
</p>
<p>
<label for="rotation">Page Rotation:</label>
<select id="rotation" name="rotation">
<option value="enabled">Enabled</option>
<option value="disabled">Disabled</option>
</select>
<span class="description">Experimental: Open Hand and Rotate with All Fingers</span>
</p>
<button id="save">Save</button>
<button id="reset">Reset</button>
<div class="footer">
<a href="http://www.leapmotion.com/" target="_blank">Leap Motion Website</a>
|
<a href="https://developer.leapmotion.com/" target="_blank">Leap Motion Developer Portal</a>
|
<a href="https://github.com/manifestinteractive/leap-motion-chrome-extension" target="_blank">Chrome Extension Source</a>
|
<a href="http://peterschmalfeldt.com" target="_blank">About the Author</a>
</div>
<script src="js/jquery-1.9.0.min.js"></script>
<script src="options.js"></script>
</body>
</html>