-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
280 lines (249 loc) · 11.2 KB
/
index.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
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<!DOCTYPE html>
<html lang="en">
<head>
<script>
var start = new Date();
</script>
<meta charset="utf-8">
<title>OpenLeap · Open-source Leap programs</title>
<meta name="google-site-verification" content="ThATUpL5JNSpB7zmy6Y0W5BdSOLSw0T-ib9Y8em-3H4" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-38523799-1']);
_gaq.push(['_setDomainName', 'openleap.org']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript">
var analytics=analytics||[];analytics.load=function(e){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=("https:"===document.location.protocol?"https://":"http://")+"d2dq2ahtl5zl1z.cloudfront.net/analytics.js/v1/"+e+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);var r=function(e){return function(){analytics.push([e].concat(Array.prototype.slice.call(arguments,0)))}},i=["identify","track","trackLink","trackForm","trackClick","trackSubmit","pageview","ab","alias","ready"];for(var s=0;s<i.length;s++)analytics[i[s]]=r(i[s])};
analytics.load("s4fkhngwx9");
</script>
<!-- Le styles: Min Framework v. 1.0 -->
<style type="text/css">
body{font-family:Helvetica,sans-serif;text-align:center;margin:0;font-size:16px}hr{margin:2.5em auto}hr.mediumwidth{margin:2.5em auto}a{text-decoration:none}.mediumwidth{font-size:16px;width:40%;margin-left:30%;margin-top:.3em;margin-bottom:.3em}@media(max-width:870px){.mediumwidth{width:70%;margin-left:15%}}@media(max-width:520px){.mediumwidth{width:100%;margin-left:0}hr.mediumwidth{width:auto}}.thin{font-weight:100}h1{font-size:4em;margin:0}h1.title{font-size:7em}h2{font-size:2em}button{background:#afafaf;font-family:Lucida Sans Unicode,Lucida Grande,sans-serif;box-shadow:0 1px 0 rgba(255,255,255,0.5) inset;color:#f3f3f3 !important;display:inline-block;font-size:2.5em;padding:15px 40px 16px;text-align:center;text-decoration:none;margin:.3em .7em .3em .7em;border:1px solid #000;cursor:pointer}button.smooth{transition:background-color .15s ease-in-out}button.btn-a{background:#345eb3;border:1px solid #1d3464}button.btn-a:hover{background:#29498b}button.btn-a:active{background:#1d3464}button.btn-b{background:#51a351;border:1px solid #2f5f2f}button.btn-b:hover{background:#408140}button.btn-b:active{background:#2f5f2f}button.btn-c{background:#da2727;border:1px solid #841717}button.btn-c:hover{background:#b01e1e}button.btn-c:active{background:#841717}button.btn-small{padding:7px 19px 10px;font-size:16px}.navbar{width:100%;background:black;color:white;text-align:left;height:1.5em;padding:1em 0 .6em}.pagename{color:white;padding:0 1em 0 2em;font-weight:bold}.navbar-link{padding:.5em;color:#aaa}.navbar-link:hover{color:white}@media(max-width:500px){.navbar a{text-align:center;display:block}.navbar{height:7.5em}}.ie .mediumwidth{width:70%;margin-left:0}.ie .mediumwidth hr{margin:100px auto;padding-left:200px}.row{display:block;line-height:2em;margin-top:2%;height:2em}.ie column{margin:auto .7%}column{display:inline-block;float:left;margin:auto 1%}.c10{width:98%}.c9{width:88%}.c8{width:78%}.c7{width:68%}.c6{width:58%}.c5{width:48%}.c4{width:38%}.c3{width:28%}.c2{width:18%}.c1{width:8%}@media(max-width:720px){row [class*='c']{width:100%;display:block;margin:1% auto}row:last-child column{margin-bottom:2.5em}}
h4 {
margin: 0;
}
p {
margin-bottom: 2.5em;
}
.largewidth {
width: 60%;
margin-left: 20%;
}
</style>
</head>
<body>
<div class="mediumwidth largewidth" style="margin-top: 0;">
<div class="navbar">
<a class="pagename" href="#">OpenLeap</a>
<a class="navbar-link" href="mailto:contact@openleap.org">Email</a>
<a class="navbar-link" href="http://leapmotion.com">Leap</a>
<a class="navbar-link" href="https://developer.leapmotion.com/forums/">Forums</a>
</div>
</div>
<div>
<div class="mediumwidth largewidth" style="margin-top: 25px">
<h1>OpenLeap</h1>
<h2 style="font-size: 49px; color: rgb(126, 126, 126);margin:0.3em;">Open-source Leap software</h2>
<p class="lead" style="color: black; font-size:1.3em; margin-bottom: 0.8em;">
The <a href="http://leapmotion.com">Leap</a> is an incredible new motion-tracking device from Leap Motion. It tracks movements up to 10 µm (!) in 8 cubic feet of 3D space. OpenLeap is a community of open-source enthusiasts making software for this wonderful device.
</p>
<a onclick="var elapsedfour = new Date() - start; elapsedfour=Math.round(elapsedfour/100)/10; analytics.track('githuborg', {'timeonpage':elapsedfour});" class="btn btn-large btn-success" href="http://github.com/openleap">
<button class="smooth btn-b">OpenLeap at GitHub</button>
</a>
</div>
<hr class="largewidth">
<div class="mediumwidth largewidth" style="text-align: left;">
<row>
<column class="c5">
<h4>Who?</h4>
<p>Started by Owen Versteeg as an open-source initiative for the Leap. Currently at 118 members and counting.</p>
</column>
<column class="c5">
<h4>Why?</h4>
<p>Many Leap developers asked for a good community site where they could share projects and see examples - so here one is!</p>
</column>
</row>
<row>
<column class="c5">
<h4>What?</h4>
<p>A bunch of open-source applications that use the Leap. One example is <a onclick="var elapsedthree = new Date() - start; elapsedthree=Math.round(elapsedthree/100)/10; analytics.track('drawpad', {'timeonpage':elapsedthree});" href="http://openleap.github.com/drawpad">DrawPad</a>.</p>
</column>
<column class="c5">
<h4>How do I add a repo?</h4>
<p>Just use GitHub's "transfer ownership" function; transfer the repo to OpenLeap.</p>
</column>
</row>
<row>
<column class="c5">
<h4>Ooh! I have an idea for an app!</h4>
<p>Awesome! Create a repo if you can code, or <a onclick="var elapsedfive = new Date() - start; elapsedfive=Math.round(elapsedfive/100)/10; analytics.track('email', {'timeonpage':elapsedfive, 'typeofclick': 'idea'});" href="mailto:contact@openleap.org">contact</a> OpenLeap if you can't.</p>
</column>
<column class="c5">
<h4>I don't have a Leap!</h4>
<p>You can pick one up at your local Best Buy, buy online <a onclick="var elapsedtwo = new Date() - start; elapsedtwo=Math.round(elapsedtwo/100)/10; analytics.track('apply_dev', {'timeonpage':elapsedtwo});" href="http://store.leapmotion.com">here</a> at the official online Leap Motion store, or you can get one on Amazon.</p>
</column>
</row>
</div>
<hr class="largewidth">
<div class="footer mediumwidth largewidth">
<p style="text-align:left;">MIT licensed.<a onclick="var elapsed = new Date() - start; elapsed=Math.round(elapsed/100)/10; analytics.track('mp_logo_click', {'timeonpage':elapsed});" href="https://analytics.com/f/partner" style="
float: right;
margin-top: -8px;
"><img src="http://cdn.mxpnl.com/site_media/images/partner/badge_blue.png" alt="Mobile Analytics"></a> </p>
</div>
</div> <!-- /container -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script>
var BrowserDetect = {
init: function () {
this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
this.version = this.searchVersion(navigator.userAgent)
|| this.searchVersion(navigator.appVersion)
|| "an unknown version";
this.OS = this.searchString(this.dataOS) || "an unknown OS";
},
searchString: function (data) {
for (var i=0;i<data.length;i++) {
var dataString = data[i].string;
var dataProp = data[i].prop;
this.versionSearchString = data[i].versionSearch || data[i].identity;
if (dataString) {
if (dataString.indexOf(data[i].subString) != -1)
return data[i].identity;
}
else if (dataProp)
return data[i].identity;
}
},
searchVersion: function (dataString) {
var index = dataString.indexOf(this.versionSearchString);
if (index == -1) return;
return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
},
dataBrowser: [
{
string: navigator.userAgent,
subString: "Chrome",
identity: "Chrome"
},
{ string: navigator.userAgent,
subString: "OmniWeb",
versionSearch: "OmniWeb/",
identity: "OmniWeb"
},
{
string: navigator.vendor,
subString: "Apple",
identity: "Safari",
versionSearch: "Version"
},
{
prop: window.opera,
identity: "Opera",
versionSearch: "Version"
},
{
string: navigator.vendor,
subString: "iCab",
identity: "iCab"
},
{
string: navigator.vendor,
subString: "KDE",
identity: "Konqueror"
},
{
string: navigator.userAgent,
subString: "Firefox",
identity: "Firefox"
},
{
string: navigator.vendor,
subString: "Camino",
identity: "Camino"
},
{ // for newer Netscapes (6+)
string: navigator.userAgent,
subString: "Netscape",
identity: "Netscape"
},
{
string: navigator.userAgent,
subString: "MSIE",
identity: "Explorer",
versionSearch: "MSIE"
},
{
string: navigator.userAgent,
subString: "Gecko",
identity: "Mozilla",
versionSearch: "rv"
},
{ // for older Netscapes (4-)
string: navigator.userAgent,
subString: "Mozilla",
identity: "Netscape",
versionSearch: "Mozilla"
}
],
dataOS : [
{
string: navigator.platform,
subString: "Win",
identity: "Windows"
},
{
string: navigator.platform,
subString: "Mac",
identity: "Mac"
},
{
string: navigator.userAgent,
subString: "iPhone",
identity: "iPhone/iPod"
},
{
string: navigator.platform,
subString: "Linux",
identity: "Linux"
}
]
};
BrowserDetect.init();
function gLIP() {
$.getJSON("http://www.bigrectangle.com/scripts/getip.php",
function(data){ ip=data.ip.toString();
console.log(ip);
analytics.track("pageload", {"ipaddr": ip.toString(), "screenheight":screen.height, "screenwidth":screen.width, "useragent": navigator.userAgent, "windowheight": $(window).height(), "windowwidth": $(window).width(), "browser": BrowserDetect.browser, "browsernum": BrowserDetect.version, "os": BrowserDetect.OS});
analytics.people.set({
"$last_login": new Date(),
"$last_ua": navigator.userAgent,
"$last_ip": ip.toString(),
"$last_browser": BrowserDetect.browser,
"$last_browser_num": BrowserDetect.version,
"$last_screen_height":screen.height,
"$last_screen_width":screen.width,
"$last_window_height": $(window).height(),
"$last_window_width": $(window).width(),
"$last_os": BrowserDetect.OS,
"$referrer": document.referrer
});
});
}
gLIP();
</script>
</body>
</html>