-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·421 lines (337 loc) · 13.1 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
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Getting Started with deck.js</title>
<meta name="description" content="A jQuery library for modern HTML presentations">
<meta name="author" content="Caleb Troughton">
<meta name="viewport" content="width=1024, user-scalable=no">
<!-- Core and extension CSS files -->
<link rel="stylesheet" href="core/deck.core.css">
<link rel="stylesheet" href="extensions/goto/deck.goto.css">
<link rel="stylesheet" href="extensions/menu/deck.menu.css">
<link rel="stylesheet" href="extensions/navigation/deck.navigation.css">
<link rel="stylesheet" href="extensions/status/deck.status.css">
<link rel="stylesheet" href="extensions/hash/deck.hash.css">
<link rel="stylesheet" href="extensions/codemirror/deck.codemirror.css">
<link rel="stylesheet" href="extensions/codemirror/themes/default.css">
<!-- Theme CSS files (menu swaps these out) -->
<!-- <link rel="stylesheet" id="style-theme-link" href="themes/style/web-2.0.css"> -->
<!-- <link rel="stylesheet" id="transition-theme-link" href="themes/transition/horizontal-slide.css"> -->
<!-- Custom CSS just for this page -->
<link rel="stylesheet" href="index.css">
<script src="modernizr.custom.js"></script>
</head>
<body class="deck-container">
<!-- <div class="theme-menu">
<h2>Themes</h2>
<label for="style-themes">Style:</label>
<select id="style-themes">
<option selected value="../themes/style/web-2.0.css">Web 2.0</option>
<option value="../themes/style/swiss.css">Swiss</option>
<option value="../themes/style/neon.css">Neon</option>
<option value="">None</option>
</select>
<label for="transition-themes">Transition:</label>
<select id="transition-themes">
<option selected value="../themes/transition/horizontal-slide.css">Horizontal Slide</option>
<option value="../themes/transition/vertical-slide.css">Vertical Slide</option>
<option value="../themes/transition/fade.css">Fade</option>
<option value="">None</option>
</select>
</div> -->
<section class="slide" id="title-slide">
<h1>Intro to jQuery</h1>
</section>
<section class="slide" id="what-is-jquery">
<h2>What is jQuery?</h2>
<blockquote cite="http://jquery.com">
<p>jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. <strong>jQuery is designed to change the way that you write JavaScript.</strong></p>
<p><cite>jQuery.com</cite></p>
</blockquote>
</section>
<section class="slide" id="why-use-jquery">
<h2>Why use jQuery?</h2>
<ol>
<li class="slide" id="why-document-traversing">
<h3>Document Traversing</h3>
<p>jQuery streamlines the selection of DOM elements and attribute editing</p>
</li>
<li class="slide" id="why-event-handling">
<h3>Event Handling</h3>
<p>jQuery allows you to bind code to specific user actions</p>
</li>
<li class="slide" id="why-animating">
<h3>Animating</h3>
<p>jQuery takes the pain out of coding simple or complex animations</p>
</li>
<li class="slide" id="why-ajax">
<h3>Ajax</h3>
<p>jQuery wraps communication with the server and handles parsing of response data</p>
</li>
</ol>
</section>
<section class="slide" id="selectors-css">
<h2> Selectors - CSS </h2>
<!-- <div class="slide" id="selectors-css-html"> -->
<div>
<h3>HTML</h3>
<textarea class="code" mode="htmlmixed">
<div id="blue-box"></div>
<div class="announcement" title="Just Saying Hi!">Hello!</div></textarea></div>
<br>
<div class="slide" id="selectors-css-css">
<h3>CSS</h3>
<textarea class="code" mode="css">
#blue-box {
width: 50px;
height: 50px;
background-color: blue;
top: 25px;
left: 25px;
}
div.announcement {
font-size: 2em;
}</textarea></div>
</section>
<section class="slide" id="selectors-jquery">
<h2> Selectors - jQuery </h2>
<h3>General Form</h3>
<p>$( "Selector" )</p>
<br>
<div class="slide" id="selectors-jquery-html">
<!-- <div> -->
<h3>HTML</h3>
<textarea class="code" mode="htmlmixed">
<div id="blue-box"></div>
<div class="announcement" title="Just Saying Hi!">Hello!</div></textarea></div>
<br>
<div class="slide" id="selectors-jquery-jquery">
<h3>JS</h3>
<textarea class="code" mode="javascript">
$('#blue-box')
$('div.annoucement')</textarea></div>
</section>
<section class="slide" id="attributes-getting">
<h2> Getting Attributes </h2>
<!-- <div class="slide" id="selectors-jquery-html"> -->
<div>
<textarea class="code" mode="htmlmixed">
<div id="blue-box"></div>
<div class="announcement" title="Just Saying Hi!">Hello!</div></textarea></div>
<br>
<div class="slide" id="attributes-getting-html-prompt"><p>Get contents of announcement div</p>
</div>
<div class="slide" id="attributes-getting-html"><textarea class="code" mode="javascript">
var divContent = $('div.annoucement').html();</textarea>
<br></div>
<div class="slide" id="attributes-getting-html-return"><p>returns Hello!</p>
</div>
<br>
<div class="slide" id="attributes-getting-title-prompt"><p>Get title of announcement div</p>
</div>
<div class="slide" id="attributes-getting-title"><textarea class="code" mode="javascript">
var divTitle = $('div.annoucement').attr('title');</textarea>
<br>
</div>
<div class="slide" id="attributes-getting-title-return">
<p>returns Just Saying Hi!</p>
</div>
<br>
<!-- <div class="slide" id="attributes-getting-color"><textarea class="code" mode="javascript">
var divColor = $('#blue-box').css('background-color');</textarea>
<br>
</div>
<div class="slide" id="attributes-getting-color-return">
<p>returns blue</p>
</div> -->
</section>
<section class="slide" id="attributes-setting">
<h2> Setting Attributes </h2>
<!-- <div class="slide" id="selectors-jquery-html"> -->
<div>
<h3>Original HTML</h3>
<textarea class="code" mode="htmlmixed">
<div id="blue-box"></div>
<div class="announcement" title="Just Saying Hi!">Hello!</div></textarea></div>
<br>
<div class="slide" id="attributes-setting-html-prompt"><p>Set content of announcement div to Goodbye!</p>
</div>
<div class="slide" id="attributes-setting-html"><textarea class="code" mode="javascript">
$('div.annoucement').html('Goodbye!');</textarea>
<br>
</div>
<div class="slide" id="attributes-setting-title-prompt"><p>Set title of announcement div to So Long!</p>
</div>
<div class="slide" id="attributes-setting-title"><textarea class="code" mode="javascript">
$('div.annoucement').attr('title', 'So Long!');</textarea>
<br><br>
</div>
<div class="slide" id="attributes-setting-modified">
<!-- <div> -->
<h3>Result</h3>
<textarea class="code" mode="htmlmixed">
<div id="blue-box"></div>
<div class="announcement" title="So Long!">Goodbye!</div></textarea></div>
</section>
<section class="slide" id="events1">
<h2> Click Event in jQuery </h2>
<div class="blue-box"></div>
<br>
<button>Change Color</button>
</section>
<section class="slide" id="events2">
<h2> Click Event in jQuery </h2>
<div class="red-box"></div>
<br>
<button>Change Color</button>
</section>
<section class="slide" id="click-setup">
<h2> Binding to Click Event - Setup </h2>
<div class="slide" id="click-setup-css">
<h3>CSS</h3>
<textarea class="code" mode="css">
#blue-box {
width: 50px;
height: 50px;
background-color: blue;
top: 25px;
left: 25px;
}</textarea><br><br></div>
<div class="slide" id="click-setup-html">
<h3>HTML</h3>
<textarea class="code" mode="htmlmixed">
<div id="blue-box"></div>
<button id="change-color">Change Color</button></textarea></div>
</section>
<section class="slide" id="click-jquery">
<h2> Binding to Click Event - jQuery </h2>
<div class="slide" id="click-jquery-function-prompt">
<h3>Create a function to change color</h3>
</div>
<div class="slide" id="click-jquery-function">
<textarea class="code" mode="javascript">
var clickFunction = function() {
$('#blue-box').css('background-color','red');
};</textarea><br><br></div>
<div class="slide" id="click-jquery-binding-prompt">
<h3>Bind that function to Change Color button</h3>
</div>
<div class="slide" id="click-jquery-binding">
<textarea class="code" mode="javascript">
$('#change-color').bind('click', clickFunction);</textarea><br><br></div>
<div class="slide" id="click-jquery-pretty">
<h3>Simplify</h3>
<textarea class="code" mode="javascript">
$('#change-color').bind('click', function() {
$('#blue-box').css('background-color','red');
});</textarea></div>
</section>
<section class="slide" id="click-result">
<h2> Binding to Click Event - All Code </h2>
<!-- <div class="slide" id="click-result-css"> -->
<div>
<h3>CSS</h3>
<textarea class="code" mode="css">
#blue-box {
width: 50px;
height: 50px;
background-color: blue;
top: 25px;
left: 25px;
}</textarea><br></div>
<!-- <div class="slide" id="click-result-html"> -->
<div>
<h3>HTML</h3>
<textarea class="code" mode="htmlmixed">
<div id="blue-box"></div>
<button id="change-color">Change Color</button></textarea><br></div>
<!-- <div class="slide" id="click-jquery-pretty"> -->
<div>
<h3>JS</h3>
<textarea class="code" mode="javascript">
$('#change-color').bind('click', function() {
$('#blue-box').css('background-color','red');
});</textarea></div>
</section>
<!--
<section class="slide" id="textarea-code">
<h2> This Code is in a Text Area! </h2>
<div><textarea id="code" name="code" class="code" mode="javascript" style="display: none;" runnable="true">// codemirror demo party!
var greeter = function(name) {
return "Why hello there " + name;
}
console.log(greeter("Joe"));</textarea></div>
<br />
<h3> You can edit it and run it again! Try it! </h3>
</section>
<section class="slide" id="elements-images">
<h2>Other Elements: Images</h2>
<img src="http://placekitten.com/600/375" alt="Kitties">
<pre><code><img src="http://placekitten.com/600/375" alt="Kitties"></code></pre>
</section>
<section class="slide" id="elements-blockquotes">
<h2>Other Elements: Blockquotes</h2>
<blockquote cite="http://example.org">
<p>Food is an important part of a balanced diet.</p>
<p><cite>Fran Lebowitz</cite></p>
</blockquote>
<pre><code><blockquote cite="http://example.org">
<p>Food is an important part of a balanced diet.</p>
<p><cite>Fran Lebowitz</cite></p>
</blockquote></code></pre>
</section>
<section class="slide" id="elements-videos">
<h2>Other Elements: Video Embeds</h2>
<p>Embed videos from your favorite online video service or with an HTML5 video element.</p>
<iframe src="http://player.vimeo.com/video/1063136?title=0&byline=0&portrait=0" width="400" height="225" frameborder="0"></iframe>
<pre><code><iframe src="http://player.vimeo.com/video/1063136?title=0&amp;byline=0&amp;portrait=0" width="400" height="225" frameborder="0"></iframe></code></pre>
</section>
<section class="slide" id="digging-deeper">
<h2>Digging Deeper</h2>
<p>If you want to learn about making your own themes, extending deck.js, and more, check out the <a href="docs/">documentation</a>.</p>
</section>
-->
<a href="#" class="deck-prev-link" title="Previous">←</a>
<a href="#" class="deck-next-link" title="Next">→</a>
<p class="deck-status">
<span class="deck-status-current"></span>
/
<span class="deck-status-total"></span>
</p>
<form action="." method="get" class="goto-form">
<label for="goto-slide">Go to slide:</label>
<input type="text" name="slidenum" id="goto-slide" list="goto-datalist">
<datalist id="goto-datalist"></datalist>
<input type="submit" value="Go">
</form>
<a href="." title="Permalink to this slide" class="deck-permalink">#</a>
<!-- Grab CDN jQuery, with a protocol relative URL; fall back to local if offline -->
<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js"></script>
<script>window.jQuery || document.write('<script src="jquery-1.7.min.js"><\/script>')</script>
<!-- Deck Core and extensions -->
<script src="core/deck.core.js"></script>
<script src="extensions/hash/deck.hash.js"></script>
<script src="extensions/menu/deck.menu.js"></script>
<script src="extensions/goto/deck.goto.js"></script>
<script src="extensions/status/deck.status.js"></script>
<script src="extensions/navigation/deck.navigation.js"></script>
<!-- Base codemiror code -->
<script src="extensions/codemirror/codemirror.js"></script>
<!-- Syntax highlighting Modes -->
<!-- javascript -->
<script src="extensions/codemirror/mode/javascript/javascript.js"></script>
<!-- html mode (note html mode requires xml, css and javascript) -->
<script src="extensions/codemirror/mode/xml/xml.js"></script>
<script src="extensions/codemirror/mode/css/css.js"></script>
<script src="extensions/codemirror/mode/htmlmixed/htmlmixed.js"></script>
<!-- Plugin code -->
<script src="extensions/codemirror/deck.codemirror.js"></script>
<!-- Specific to this page -->
<script src="index.js"></script>
</body>
</html>