-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.html
227 lines (182 loc) · 5.37 KB
/
setup.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
<!doctype html>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script>
<link href='http://fonts.googleapis.com/css?family=Terminal+Dosis+Light' rel='stylesheet' type='text/css'>
<link href='wizard.css' rel='stylesheet' type='text/css'>
<script>
var pageFuncs = [];
var pageUnload = [];
function selectPage(n){
var f = pageUnload[page]
if (f) f()
page = n;
$('.opened').removeClass('opened')
$('#p'+n).addClass('opened')
var f = pageFuncs[n]
if (f) f()
}
var page = 0;
function nextPage(){
selectPage(page+1);
}
$(document.body).ready(function(){
selectPage(1)
})
</script>
<article>
<section id='p1'>
<h1>Browser Check</h1>
<style>
#getbrowser{
color: black;
display: block;
text-decoration: none;
background: url('http://www.google.com/images/icons/product/chrome-128.png') no-repeat;
min-height: 64px;
padding: 32px 0 32px 140px;
width: 60%;
margin: 0 auto;
font-size: 85%;
font-color: #444;
line-height: 2em;
}
#getbrowser:hover{
background-color: #ffffcc;
}
#getbrowser p{
display: none;
}
</style>
<script>
pageFuncs[1] = function(){
if (navigator.userAgent.indexOf('Chrom') != -1){
$("#getbrowser .ischrome").show()
$("#browsernext").text("Continue").removeClass('secondary').addClass('primary')
setTimeout(nextPage, 700)
}else if (navigator.userAgent.indexOf('Firefox') != -1){
$("#getbrowser .isfirefox").show()
$("#getbrowser .download").show()
}else{
$("#getbrowser .unsupported").show()
$("#getbrowser .download").show()
}
}
</script>
<a href='https://www.google.com/chrome' id='getbrowser'>
<p class='ischrome'>Google Chrome is supported!</p>
<p class='isfirefox'>Pixelpulse, the CEE user interface, works better in Google Chrome. You can proceed with Firefox, but may encounter problems. Firefox support is coming soon.</p>
<p class='unsupported'>Pixelpulse, the CEE user interface, requires Google Chrome.</p>
<p class='download'>Click to download, then come back to this page in Google Chrome.</p>
</a>
<nav><button class='btn secondary' id='browsernext' onclick='nextPage()'>Continue Anyway</button></nav>
</section>
<section id='p2'>
<h1>Install software</h1>
<script>
if (window.MozWebSocket) window.WebSocket = window.MozWebSocket;
pageFuncs[2] = function(){
if (navigator.userAgent.indexOf('Linux') != -1){
$('#install-linux').addClass('highlight')
}else if (navigator.userAgent.indexOf('Windows') != -1){
$('#install-win').addClass('highlight')
}else if (navigator.userAgent.indexOf('Mac') != -1){
$('#install-mac').addClass('highlight')
}
tryConnect();
}
function tryConnect(){
if (console) console.log("Trying connect")
ws = new WebSocket('ws://localhost:9003/ws/v0')
ws.onopen = function(){
if (console) console.log("Connected")
$('#install').hide()
$('#install-success').fadeIn()
setTimeout(nextPage, 1000)
}
ws.onclose = function(e){
if (console) console.log(e)
setTimeout(tryConnect, 500);
}
}
</script>
<style>
#install-options{
vertical-align: top;
text-align: center;
margin: 20px 0;
}
#install-options a{
text-decoration: none;
color: inherit;
width: 128px;
display: inline-block;
min-height: 48px;
padding-top: 128px;
margin: 10px;
}
#install-options a small{
display: block;
font-size: 12px;
color: #888;
}
#install-options .highlight{
background-color: #ffffcc;
font-weight: bold;
}
#install-note{
margin: 0 -20px;
margin-top: -20px;
vertical-align: top;
line-height: 1.1em;
}
#install-note div{
width: 43%;
display: inline-block;
margin: 20px;
font-size: 12px;
color: #888;
}
#install-mac{background: url('img/os-mac.png') no-repeat;}
#install-win{background: url('img/os-win.png') no-repeat;}
#install-linux{background: url('img/os-linux.png') no-repeat;}
#install-success{
display: none;
}
</style>
<div id='install'>
<p><strong>Nonolith Connect</strong> is a small server that allows applications in your web browser to acccess a CEE connected to your USB port. <a href='http://github.com/nonolith/connect' target='github'>Technical Details »</a></p>
<div id='install-options'>
<a id='install-win' href='https://s3.amazonaws.com/apps.nonolithlabs.com/download/nonolith-connect_1.3.exe'>
Windows <small>XP, 7</small>
</a>
<a id='install-mac' href='https://s3.amazonaws.com/apps.nonolithlabs.com/download/nonolith-connect_1.3.dmg'>
Mac OS X <small>10.7</small>
</a>
<a id='install-linux' href='http://wiki.nonolithlabs.com/cee/Nonolith_Connect_on_Linux' target='_nlwiki'>
Linux <small>Ubuntu, Debian, Mint, Gentoo</small>
</a>
</div>
<div id='install-note'>
<div>
<h2>Nonolith Connect was not found on this computer. Installation will progress to the next page when detected.</h2>
</div>
<div>
<h2>Already installed Nonolith Connect?</h2>
<p>Make sure it is running & check your firewall settings to make sure it was allowed to listen on localhost, port 9003.</p>
</div>
</div>
</div>
<div id='install-success'>
<p>Nonolith Connect is installed and running.</p>
</div>
</section>
<section id='p3'>
<h1>Get started!</h1>
<div>
<p style='margin-top: -20px;'>The diagram below shows how to use your CEE's two channels.</p>
<img src='img/pin_guide.jpeg' style='display: block; margin: 5px auto;'>
<p>You can now plug your CEE into the computer's USB port. </p>
</div>
<nav><button class='btn primary' onclick='location.href="http://apps.nonolithlabs.com/pixelpulse#tour"'>Get Started with Pixelpulse</button></nav>
</section>
</article>
<div id='logo'></div>