-
Notifications
You must be signed in to change notification settings - Fork 1
/
l2-data-attributes.html
117 lines (85 loc) · 6.46 KB
/
l2-data-attributes.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
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Lesson 1 - Grabbing Elements</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Noto+Serif:400,700,400italic,700italic|Open+Sans:700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="stylesheets/style.css?ver=1.0">
<!--[if lte IE 8]><link rel="stylesheet" href="stylesheets/ie.css?ver=1.0"><![endif]-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="javascripts/jquery-1.9.1.min.js"><\/script>')</script>
<script src="javascripts/functionality.js"></script>
<script src="javascripts/modernizr.js"></script>
</head>
<body class="l2-data-attributes">
<header class="header content-block clearfix" role="banner"><div class="wrapper">
<h1 class="logo"><a href="index.html" rel="home"><span>JS Quizes</span></a></h1>
<a id="show-nav" class="button icon-menu show-nav" href="#"><span>Menu</span></a>
<nav id="nav" class="nav" role="navigation">
<h1 class="visuallyhidden">Main Navigation</h1>
<ul class="list-primary-nav clearfix">
<li><a href="index.html">Home</a></li>
<li><a href="https://github.com/PeteSchuster/js-quizzes">GitHub</a></li>
<li><a href="https://github.com/PeteSchuster/js-quizzes/archive/master.zip">Download</a></li>
</ul>
</nav><!--/end nav-->
</div></header><!--/end .header-->
<main class="content clearfix" role="main">
<div class="content-block"><div class="wrapper">
<h1>Data Attributes</h1>
<p>Data attributes are a good way to store information that can be used later.</p>
<h5>Goals:</h5>
<ol>
<li>Console log all data-name attributes</li>
<li>Update the character with an error in his name to use string of text inside the data-name attribute</li>
</ol>
<div id="stage">
<article class="character" data-name="Megaman" data-image="http://placehold.it/250x250">
<h1>Megaman</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</article><!--/end .character-->
<article class="character" data-name="Dr Wilie" data-image="http://placehold.it/250x250">
<h1>Error</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</article><!--/end .character-->
<article class="character" data-name="Dr X" data-image="http://placehold.it/250x250">
<h1>Dr X</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</article><!--/end .character-->
<article class="character" data-name="Dust Man" data-image="http://placehold.it/250x250">
<h1>Dust Man</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</article><!--/end .character-->
<article class="character" data-name="Pharoh Man" data-image="http://placehold.it/250x250">
<h1>Pharoh Man</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</article><!--/end .character-->
<article class="character" data-name="Proto Man" data-image="http://placehold.it/250x250">
<h1>Proto Man</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</article><!--/end .character-->
</div>
<script>
jQuery(document).ready( function () {
//ADD SCRIPTS HERE!
} );
</script>
</div></div><!--/end .content-block-->
</main><!--/end .content-->
<footer class="footer content-block" role="contentinfo"><div class="wrapper">
<nav>
<h1 class="visuallyhidden">Footer Navigation</h1>
<ul class="list-footer-nav clearfix">
<li><a href="index.html">Home</a></li>
<li><a href="https://github.com/PeteSchuster/js-quizzes">GitHub</a></li>
<li><a href="https://github.com/PeteSchuster/js-quizzes/archive/master.zip">Download</a></li>
</ul>
</nav>
<p>Copyright 2013. All rights reserved. <a href="#">Sitemap</a>.</p>
</div></footer><!--/end .footer-->
</body>
</html>