-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
478 lines (425 loc) · 14.4 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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
<!DOCTYPE html>
<html manifest="main.cache">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="viewport" content="width=device-width">
<title>Present.js</title>
<link href="stylesheets/present.css" rel="stylesheet">
</head>
<body>
<section class="presentation" id="present.js">
<article>
<style>
.key {
margin: 0 0.5em;
color: black;
display: inline-block;
padding: 0.1em 0.6em 0.1em 0.6em;
font-size: 0.75em!important;
line-height: 2.5em;
min-width: 1.7em;
text-align: center;
text-shadow: none;
letter-spacing: 0;
-moz-border-radius: 0.5em;
-khtml-border-radius:0.5em;
-webkit-border-radius: 0.5em;
border-radius: 0.5em;
background: white;
box-shadow: rgba(0, 0, 0, 0.1) 0 2px 5px;
-webkit-box-shadow: rgba(0, 0, 0, 0.1) 0 2px 5px;
-moz-box-shadow: rgba(0, 0, 0, 0.1) 0 2px 5px;
-o-box-shadow: rgba(0, 0, 0, 0.1) 0 2px 5px;
}
</style>
<h3>Slides controls</h3>
<ul class="blank">
<li><span class="key">←</span> and <span class="key">→</span> or scroll to move around.</li>
<li><span class="key">↑</span> and <span class="key">↓</span> to zoom in and out.</li>
<li><span class="key">Space</span> to toggle autoplay.</li>
<li><span class="key">F11</span> to toggle full screen.</li>
<li><span class="key">T</span> to toggle theme.</li>
<li><span class="key">R</span> to toggle slides transition.</li>
</ul>
</article>
<article>
<h3>TOC</h3>
<ul>
<li>
<a href="#installation">Installation</a>
<li>
<a href="#usage">Usage</a>
<li>
<a href="#customization">Customization</a>
<li>
<a href="#demo">Demo</a>
</ul>
</article>
<article class=" smaller" id="installation">
<h3>Installation</h3>
<h4>Download</h4>
<p>You can download this project in a <a href="https://github.com/vindm/Present/archive/v1.0.zip">zip</a> format.</p>
<p><i>Via Terminal</i></p>
<pre>
$ wget https://github.com/vindm/Present/archive/v1.0.zip
$ unzip v1.0.zip
</pre>
<p><i>Via Git</i></p>
<pre>
$ git clone git://github.com/vindm/Present.git
</pre>
<h4>Load</h4>
<p>Link the component and a stylesheet from your page.</p>
<pre>
<link href="stylesheets/present.css" rel="stylesheet"/>
<script src="javascripts/jquery.min.js" ></script>
<script src="javascripts/present.min.js" ></script>
</pre>
</article>
<article class=" smaller" id="usage">
<h3>Usage</h3>
<h4>HTML</h4>
<pre>
<section class="presentation">
<!-- First slide -->
<article>
<!-- Slide content -->
...
</article>
<!-- Second slide -->
<article>
<!-- Slide content -->
...
</article>
<!-- More slides -->
...
</section>
</pre>
<h4>JS</h4>
<pre>
$(function() {
$('.presentation').present( [ options ] );
});
</pre>
</article>
<article class=" smaller" id="customization">
<h3>Customization</h3>
<p>You can override Present's default options by passing your own custom options and callbacks as the first argument to the .present() plugin.</p>
<p>Here's a quick snippet with all defaults declared so you can copy and paste into your project:</p>
<pre>
$('#presentation').present({
initialScale : 85, // percentage value to scale on init
initialTheme : 'Dark', // choose between Dark or Light
slideTimer : 4500, // how long (in milliseconds) slides should be shown in play mode
stepTimer : 1500, // how long (in milliseconds) steps should be shown in play mode
playOnInit : false, // whether or not to automatically begin playing the slides
bindToHistory: true, // whether on not to modify browser's history
controlPanel : true, // whether or not to add a control panel
loopPlay : false, // whether or not to loop playing the slides
scaleOnResize: true, // whether or not to scale the slides on window resize
transition : true, // whether or not to use slide transitions
userEvents : true, // whether or not to bind user events to slides controls
onReady : $.noop, // gets called when present is setup and ready to go
onPlay : $.noop, // gets called when the play() method is called
onStop : $.noop, // gets called when the stop() method is called
onPause : $.noop, // gets called when the pause() method is called
onRestart : $.noop, // gets called when the restart() method is called
});
</pre>
</article>
<article id="demo">
<h1>
Title Goes Here Up
<br>
To Two Lines
</h1>
<p>
Vinokurov Dmitriy
<br>
Jan 29, 2013
</p>
</article>
<article>
<p>
This is a slide with just text. This is a slide with just text.
This is a slide with just text. This is a slide with just text.
This is a slide with just text. This is a slide with just text.
</p>
<p>
There is more text just underneath.
</p>
</article>
<article>
<h3>
Simple slide with header and text
</h3>
<p>
This is a slide with just text. This is a slide with just text.
This is a slide with just text. This is a slide with just text.
This is a slide with just text. This is a slide with just text.
</p>
<p>
There is more text just underneath with a <code>code sample: 5px</code>.
</p>
</article>
<article class="smaller">
<h3>
Simple slide with header and text (small font)
</h3>
<p>
This is a slide with just text. This is a slide with just text.
This is a slide with just text. This is a slide with just text.
This is a slide with just text. This is a slide with just text.
</p>
<p>
There is more text just underneath with a <code>code sample: 5px</code>.
</p>
</article>
<article>
<h3>
Slide with bullet points and a longer title, just because we
can make it longer
</h3>
<ul>
<li>
Use this template to create your presentation
</li>
<li>
Use the provided color palette, box and arrow graphics, and
chart styles
</li>
<li>
Instructions are provided to assist you in using this
presentation template effectively
</li>
<li>
At all times strive to maintain Google's corporate look and feel
</li>
</ul>
</article>
<article>
<h3>
Slide with bullet points that builds
</h3>
<ul class="steps">
<li>
This is an example of a list
</li>
<li>
The list items fade in
</li>
<li>
Last one!
</li>
</ul>
<div class="steps">
<p>Any element with child nodes can build.</p>
<p>It doesn't have to be a list.</p>
</div>
</article>
<article class="smaller">
<h3>
Slide with bullet points (small font)
</h3>
<ul>
<li>
Use this template to create your presentation
<li>
Use the provided color palette, box and arrow graphics, and
chart styles
<li>
Instructions are provided to assist you in using this
presentation template effectively
</ul>
</article>
<article>
<h3>
Slide with a table
</h3>
<table>
<tr>
<th>
Name
<th>
Occupation
<tr>
<td>
Luke Mahé
<td>
V.P. of Keepin’ It Real
<tr>
<td>
Marcin Wichary
<td>
The Michael Bay of Doodles
</table>
</article>
<article class="smaller">
<h3>
Slide with a table (smaller text)
</h3>
<table>
<tr>
<th>
Name
<th>
Occupation
<tr>
<td>
Luke Mahé
<td>
V.P. of Keepin’ It Real
<tr>
<td>
Marcin Wichary
<td>
The Michael Bay of Doodles
</table>
</article>
<article>
<h3>
Styles
</h3>
<ul>
<li>
<span class='red'>class="red"</span>
<li>
<span class='blue'>class="blue"</span>
<li>
<span class='green'>class="green"</span>
<li>
<span class='yellow'>class="yellow"</span>
<li>
<span class='black'>class="black"</span>
<li>
<span class='white'>class="white"</span>
<li>
<b>bold</b> and <i>italic</i>
</ul>
</article>
<article>
<h3>
Slide with an image
</h3>
<p>
<img style='height: 20em' src='images/example-graph.png'>
</p>
<div class='source'>
Source: Sergey Brin
</div>
</article>
<article>
<h3>
Slide with an image (centered)
</h3>
<p>
<img class='centered' style='height: 20em' src='images/example-graph.png'>
</p>
<div class='source'>
Source: Larry Page
</div>
</article>
<article class="fill">
<h3>
Image filling the slide (with optional header)
</h3>
<img src='images/example-cat.jpg'>
<div class='source white'>
Source: Eric Schmidt
</div>
</article>
<article>
<h3>
This slide has some code
</h3>
<section>
<pre>
<script type='text/javascript'>
// Say hello world until the user starts questioning
// the meaningfulness of their existence.
function helloWorld(world) {
for (var i = 42; --i >= 0;) {
alert('Hello ' + String(world));
}
}
</script>
<style>
p { color: pink }
b { color: blue }
u { color: 'umber' }
</style>
</pre>
</section>
</article>
<article class="smaller">
<h3>
This slide has some code (small font)
</h3>
<section>
<pre>
<script type='text/javascript'>
// Say hello world until the user starts questioning
// the meaningfulness of their existence.
function helloWorld(world) {
for (var i = 42; --i >= 0;) {
alert('Hello ' + String(world));
}
}
</script>
<style>
p { color: pink }
b { color: blue }
u { color: 'umber' }
</style>
</pre>
</section>
</article>
<article>
<q>
The best way to predict the future is to invent it.
</q>
<div class='author'>
Alan Kay
</div>
</article>
<article class="smaller">
<q>
A distributed system is one in which the failure of a computer
you didn’t even know existed can render your own computer unusable.
</q>
<div class='author'>
Leslie Lamport
</div>
</article>
<article>
<h3>
Thank you!
</h3>
<ul>
<li>
<a href='http://www.google.com'>google.com</a>
</ul>
</article>
</section>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="javascripts/present.min.js"></script>
<!--[if lt IE 9]>
<script src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
<script>CFInstall.check({ mode: "overlay" });</script>
<![endif]-->
<script>
// Check if new appcache is available, load it, and reload page.
if (window.applicationCache) {
window.applicationCache.addEventListener('updateready', function(e) {
if (window.applicationCache.status == window.applicationCache.UPDATEREADY) {
window.applicationCache.swapCache();
if (confirm('A new version of this site is available. Load it?')) {
window.location.reload();
}
}
}, false);
}
</script>
</body>
</html>