-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
284 lines (219 loc) · 7.39 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
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Intro to web development</title>
<link rel="stylesheet" href="reveal.js/css/reveal.min.css">
<!--<link rel="stylesheet" href="reveal.js/css/print/pdf.min.css"> -->
<link rel="stylesheet" href="reveal.js/css/theme/sky.css" id="theme">
<link rel="stylesheet" href="external/little-console.css" id="theme">
<link rel="stylesheet" href="custom.css" id="theme">
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<span data-markdown>
<script type="text/template">
# Intro to web development
[@greenify](https://github.com/greenify)
</script>
</span>
<span id="antimail"></span>
<script type="text/javascript">
function antimail(name,domain,tld,subject){
var a = document.createElement("a");
var mail = name + "@" + domain + "." + tld;
a.href = "mailto:" + mail;
a.textContent = mail;
return a;
}
document.getElementById("antimail").appendChild(antimail("seb","wilzba", "ch"));
</script>
</section>
<section data-markdown><script type="text/template">
## Tools
* [Chrome DevTools](https://developer.chrome.com/devtools) or Firebug
* Editor: Sublime / Vim
* [JSHint](http://www.jshint.com/)
* tons of browsers extensions
* ...
</script></section>
<section data-markdown><script type="text/template">
## HTML
= HyperText Markup Language
* `<h1></h1>`
* [tags][tags]: `id`, `class` (➙ e.g. `<img id=foo>`)
* paired elements `div`, `span`, `h1`, `code`, ...
* unpaired elements like `img`, `br`, `hr`, ...
* head `<!DOCTYPE html>`
* comments `<!-- -->`
* DOM
* [W3C](http://www.w3.org/html/)
[tags]: http://www.w3schools.com/tags/default.asp
</script></section>
<section>
<div data-markdown>
<script type="text/template">
## Hello world
</script>
</div>
<a class="jsbin-embed" href="http://jsbin.com/kijesi/1/embed?html,output&height=500px">JS Bin</a>
</section>
<section data-markdown><script type="text/template">
## CSS
= Cascading Style Sheets
* selectors
- native HTML tags
- classes ➙ `.`
- ids ➙ `#`
* Pseudo-classes `:hover,:last-child, ...`
* combine selectors
- `#foo h1`
- `#foo .bar`
- `#foo:nth-child(even)`
* [W3C](http://www.w3.org/Style/CSS/Overview.en.html)
</script></section>
<section>
<div data-markdown>
<script type="text/template">
## Hello CSS
</script>
</div>
<a class="jsbin-embed" href="http://jsbin.com/duray/1/embed?html,css,output&height=500px">JS Bin</a>
</section>
<section>
<div data-markdown>
<script type="text/template">
## CSS is powerful
</script>
</div>
<a class="jsbin-embed" href="http://jsbin.com/bazewo/1/embed?css,output&height=500px">JS Bin</a>
</section>
<section data-markdown><script type="text/template">
## SVG
= Scalable Vector Groups
* a special DOM element `svg`
* `<svg></svg>`
* [W3C](http://www.w3.org/Graphics/SVG/)
</script></section>
<section>
<div data-markdown>
<script type="text/template">
## SVG in action
</script>
</div>
<a class="jsbin-embed" href="http://jsbin.com/zaviyo/1/embed?html,output&height=500px">JS Bin</a>
</section>
<section data-markdown><script type="text/template">
## Github
<img class="no-shadow vert-align" height="400px" src=img/octocat.png />
<img class="no-shadow vert-align" height="200px" src=img/social_coding.png />
</script></section>
<section data-markdown><script type="text/template">
## Codecademy
<img class="no-shadow vert-align" height="400px" src=img/codecademy.svg />
</script></section>
<!--
<section>
<script type=code-example-alongside>
<div>
<h2>Hello</h2>
</div>
</script>
<div class=little-console></div>
<script type=cheat>
d3.selectAll("#familiar a").attr("href","http://google.com");
</script>
</section>
-->
</div>
</div>
<script src=external/code-example.js></script>
<script>
var revealCodeSamples = codeExamples.revealAlongside.bind(null,"script[type=code-example-alongside]");
</script>
<script src=external/little-console.js></script>
<script>
// little console from @timruffles
function showConsoles() {
// show all consoles, and register 'cheats'
var cheats = [];
;[].forEach.call(document.querySelectorAll(".little-console"),function(el) {
var cmds = new LittleConsole.Commands;
var console = new LittleConsole({el: el,commands: cmds});
var slide = el.parentElement;
var cheat = slide.querySelector("[type=cheat]");
if(!cheat) return;
cheats.push({
console: console,
slide: slide,
src: cheat.innerHTML,
});
});
// listen for 'cheat code' - ALT + C, and fill input
var C = 67;
document.body.addEventListener("keyup",function(evt) {
if(evt.keyCode !== C || !evt.altKey) return;
var slide = Reveal.getCurrentSlide();
cheats.forEach(function(setup) {
if(setup.slide !== slide) return;
setup.console.setCommand(setup.src);
});
});
}
</script>
<script src="reveal.js/lib/js/head.min.js"></script>
<script src="reveal.js/js/reveal.min.js"></script>
<script>
Reveal.initialize({
// Display controls in the bottom right corner
controls: false,
// Display a presentation progress bar
progress: true,
// Push each slide change to the browser history
history: true,
// Enable keyboard shortcuts for navigation
keyboard: true,
// Enable the slide overview mode
overview: true,
// Vertical centering of slides
center: false,
// Loop the presentation
loop: false,
// Change the presentation direction to be RTL
rtl: false,
// Number of milliseconds between automatically proceeding to the
// next slide, disabled when set to 0, this value can be overwritten
// by using a data-autoslide attribute on your slides
autoSlide: 0,
// Enable slide navigation via mouse wheel
mouseWheel: false,
// Apply a 3D roll to links on hover
rollingLinks: false,
// Transition style
transition: 'fade', // default/cube/page/concave/zoom/linear/fade/none
dependencies: [
// Cross-browser shim that fully implements classList - https://github.com/eligrey/classList.js/
{ src: 'reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } },
// Interreveal.js/pret Markdown in <section> elements
{ src: 'reveal.js/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal.js/plugin/markdown/markdown.js',
condition: function() { return !!document.querySelector( '[data-markdown]' ); },
callback: function() {
revealCodeSamples();
showConsoles();
} },
// Syntareveal.js/x highlight for <code> elements
{ src: 'reveal.js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
// Zoom reveal.js/in and out with Alt+click
{ src: 'reveal.js/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
// Speakreveal.js/er notes
//{ src: 'reveal.js/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } },
// Remotreveal.js/e control your reveal.js presentation using a touch device
// { src: 'reveal.js/plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
</script>
<script src="http://static.jsbin.com/js/embed.js"></script>
</body>