forked from gdi-curriculum-review/gdi-featured-js-intro-OLD
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathwarmup.html
101 lines (75 loc) · 4.02 KB
/
warmup.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Warmup Exercises for Class 2 ~ Intro to JavaScript</title>
<meta name="description" content="Introduction to JavaScript programming course materials.">
<meta name="author" content="Philly Tech Sistas">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="stylesheet" href="reveal/css/reveal.css">
<link rel="stylesheet" href="reveal/css/theme/sunny.css" id="theme">
<link rel="stylesheet" href="css/custom.css">
<!-- For syntax highlighting -->
<!-- light editor--><link rel="stylesheet" href="reveal/lib/css/light.css">
<!-- dark editor<link rel="stylesheet" href="reveal/lib/css/dark.css">-->
<!-- If use the PDF print sheet so students can print slides-->
<link rel="stylesheet" href="reveal/css/print/pdf.css" type="text/css" media="print">
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<!-- Opening slide -->
<section>
<h3>Warm up exercise #1</h3>
<h4>Goal: Understanding functions</h4>
<p class="left-align">Create a function that takes at least one argument. For example, you could make an "announce" function that alerts "Important announcement:" followed by the argument.</p>
<p class="left-align">Call your function with an argument of your choice. For example, you could announce "Kittens are cute".</p>
<p class="left-align">Make your announcement visible on your <code>practice.html</code> page.</p>
</section>
<section>
<h3>Warm up exercise #2</h3>
<h4>Goal: Understanding return statements</h4>
<p class="left-align">Make your announce function return the text of your argument.</p>
<p class="left-align">Call your function with an argument of your choice, and save the function's value as a variable. For example:</p>
<pre><code>var myAnnouncement = announce('Kittens are cute!');
</code></pre>
<p class="left-align">Output this variable to your HTML. Try putting the message on multiple parts of your page.</p>
</section>
</div><!-- Close .slides -->
<footer>
<div class="copyright">
Intro to JavaScript
<a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/deed.en_US"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc/3.0/80x15.png" /></a>
</div><!-- Close .copyright -->
</footer>
</div><!-- Close .reveal -->
<script src="reveal/lib/js/head.min.js"></script>
<script src="reveal/js/reveal.min.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
touch: true,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'linear', // default/cube/page/concave/zoom/linear/none
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'reveal/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'reveal/plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'reveal/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
</script>
</body>
</html>