-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
260 lines (197 loc) · 8.56 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
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<title>Google Cloud Print for Northeastern</title>
<!-- Bootstrap core CSS -->
<link href="https://v4-alpha.getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="https://v4-alpha.getbootstrap.com/examples/carousel/carousel.css" rel="stylesheet">
<script type="text/javascript">
function onClick () {
var input = document.getElementById('emailEntry');
if (!input) {
alert('Error occurred, refresh the page :(')
return;
}
var value = input.value;
if (input.value.length === 0) {
return;
}
var removeFromEnd = '@husky.neu.edu'
if (value.endsWith(removeFromEnd)) {
console.log("removing @husky.neu.edu from end");
value = value.slice(0, value.length - removeFromEnd.length)
}
if (value.indexOf('@') > -1) {
alert('Error parsing email, it must end in @husky.neu.edu and it must only have one @ sign in it.');
return;
}
var oReq = new XMLHttpRequest();
oReq.onreadystatechange = function () {
if (oReq.readyState != XMLHttpRequest.DONE) {
return;
}
if (oReq.status != 200) {
alert('Error sending http request :(. refresh the page and try again.')
}
else {
alert('Success!')
}
};
oReq.open("POST", "https://www.coursepro.io/sharePrinter");
oReq.setRequestHeader("Content-type", "application/json");
oReq.send(JSON.stringify({
email:value
}))
}
window.onload = function(e){
document.getElementById('emailEntry').onkeydown = function(e){
if(e.keyCode == 13){
onClick();
}
};
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-85376897-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div style="height: 447px;background: #2d86fb;margin-bottom: 32px;text-align: center;">
<div class="span12">
<h1 style="font-size: 105px;margin-bottom: 20px;color: white;padding-top: 99px;font-family: sans-serif;">Google Cloud Print</h1>
<h2 style="font-size: 55px;color: white;">For Northeastern</h2>
</div>
</div>
<div class="container marketing">
<!-- Three columns of text below the carousel -->
<div class="row">
<div class="col-lg-4">
<h2>Works anywhere Google Chrome runs</h2>
<p>Print from Linux, Mac OS X, Windows, ChromeOS, tablets, phones, and more</p>
</div>
<!-- /.col-lg-4 -->
<div class="col-lg-4">
<h2>No additional software needed</h2>
<p>All the functionallity to use the Cloud Print printer is built into Google Chrome!</p>
</div>
<!-- /.col-lg-4 -->
<div class="col-lg-4">
<h2>100% free and open source</h2>
<p>Documents are never saved</p>
<p>
<a class="btn btn-secondary" href="https://github.com/ryanhugh/NEU-Google-cloudprint" role="button">View on Github »</a>
</p>
</div>
<!-- /.col-lg-4 -->
</div>
<!-- /.row -->
<style type="text/css">
@media (min-width: 768px) {
.textBoxThing {
display: -webkit-box;
-webkit-box-pack: center;
-webkit-box-align: center;
height: 400px;
}
}
</style>
<!-- START THE FEATURETTES -->
<hr class="featurette-divider" style="margin:0">
<div class="row featurette">
<!-- <div class="col-md-7 push-md-5"> -->
<h2 class="featurette-heading">So how does it work?</h2>
<p class="lead">In addition to printing to a local printer connected to your computer, Google Chrome can also print to Google Cloud Print. When you print to Cloud Print, Chrome sends a PDF of your document to Google's servers. Then, the PDF is downloaded by a custom python script and sent to Northeastern's print queue. You will receive an email in 2-10 minutes when the document is ready to print. Documents are added to the same Northeastern print queue when printed with the Pharos driver from MyNEU or sent to
<a href="http://www.northeastern.edu/its/new-email-to-print-feature-and-plotter-printers/">[email protected]</a>. Once they are in this queue, you can go to any printer on Northeastern's campus, swipe your husky card, and print away!
</p>
</div>
<hr class="featurette-divider">
<div class="row featurette">
<div class="col-md-7">
<h2 class="featurette-heading">Enter your @husky.neu.edu email to get started!</h2>
<p class="lead">This will share the Google Cloud Print Printer with you. Read the intstructions below to start using it!</p>
</div>
<div class="col-md-5 textBoxThing" style="vertical-align: middle;padding: 13px;">
<div class="form-inline" style="vertical-align: middle;text-align: right;">
<div class="form-group">
<div class="input-group">
<input type="text" class="form-control" id="emailEntry">
<div class="input-group-addon">@husky.neu.edu</div>
</div>
</div>
<button class="btn btn-primary" style="margin: 10px;" onclick="onClick()">Submit</button>
</div>
</div>
</div>
<hr class="featurette-divider">
<div class="row featurette">
<div class="col-md-5">
<h2 class="featurette-heading">Step 1</h2>
<p class="lead">Accept the printer invitation</p>
</div>
<div class="col-md-7">
<div style="max-width: 100%;overflow: hidden;">
<img src="img/one.PNG">
</div>
</div>
</div>
<hr class="featurette-divider">
<div class="row featurette">
<div class="col-md-5">
<h2 class="featurette-heading">Step 2</h2>
<p class="lead">Accept the printer invitation again o_O</p>
</div>
<div class="col-md-7">
<div style="max-width: 100%;overflow: hidden;">
<img src="img/two.PNG">
</div>
</div>
</div>
<hr class="featurette-divider">
<div class="row featurette">
<div class="col-md-5">
<h2 class="featurette-heading">Step 3</h2>
<p class="lead">Click CTRL-P in Google Chrome and click "Change..." on the left</p>
</div>
<div class="col-md-7">
<div style="max-width: 100%;overflow: hidden;max-height: 300px;">
<img src="img/three.PNG">
</div>
</div>
</div>
<hr class="featurette-divider">
<div class="row featurette">
<div class="col-md-5">
<h2 class="featurette-heading">Step 4</h2>
<p class="lead">Select your @husky.neu.edu email from the dropdown and then select the printer in the Google Cloud Print section!</p>
</div>
<div class="col-md-7">
<div style="max-width: 100%;overflow: hidden;">
<img src="img/four.PNG" style="margin-left: -304px;">
</div>
</div>
</div>
<hr class="featurette-divider" style="margin:0">
<div class="row featurette">
<div class="col-md-7 push-md-5">
<h2 class="featurette-heading">So what should I print?</h2>
<p class="lead">Ben Lerner Posters</p>
</div>
<div class="col-md-5 pull-md-7">
<img src="img/ben.png" style="max-height: 400px;">
</div>
</div>
</div>
<!-- /.container -->
</body>
</html>