-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
209 lines (183 loc) · 7.25 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
<!DOCTYPE html>
<!--[if IEMobile 7]><html class="no-js ie iem7"><![endif]-->
<!--[if lt IE 7]><html class="no-js ie ie6 oldie" lang="en"><![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js ie ie7" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js ie ie8" lang="en"><![endif]-->
<!--[if (gte IE 9)|(gt IEMobile 7)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8" />
<title>ajk’s template</title>
<meta name="description" content="This is ajk’s template" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--Microsoft. Delete if not required -->
<meta http-equiv="cleartype" content="on">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="author" href="humans.txt" />
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<!-- Print needs to be in a separate file for them to work in IE7/8 -->
<link rel="stylesheet" media="print" href="css/print.css">
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Google Web Fonts - Open Sans -->
<script type="text/javascript">
WebFontConfig = {
google: { families: [ 'Open+Sans:400italic,600italic,700italic,400,700,600,300:latin', 'Open+Sans+Condensed:700:latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})(); </script>
</head>
<body class="no-grid">
<header>
<div class="wrapper">
<h1>This is ajk’s template</h1>
<p>Support: IE7/8+, Chrome, FF, Opera</p>
<ul class="nav main-nav">
<li class="act"><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
<ol class="nav breadcrumb">
<li><a href="#">Home</a></li>
<li><a href="#">Page</a></li>
<li><a href="#">Sub-page</a></li>
</ol>
</div>
</header>
<div class="main" role="main">
<div class="wrapper">
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
<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>
<div class="row">
<div>
<h3>Here we have a simple grid system</h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed posuere interdum sem. Quisque ligula eros ullamcorper quis, lacinia quis facilisis sed sapien. Mauris varius diam vitae arcu. Sed arcu lectus auctor vitae, consectetuer et venenatis eget velit. Sed augue <a href="#">orci</a>, lacinia eu tincidunt et eleifend nec lacus. Donec ultricies nisl ut felis, suspendisse potenti.</p>
</div>
<div>
<h3>I'm on the right!</h3>
<p>Being on the right is nice:
<ul>
<li>I'm not on the left</li>
<li>Right side is simply <em>right</em></li>
</ul>
<p>There. <strong>I said it</strong>. Right wing for the win! Left is latin, left is filler, left has no originality.</p>
</div>
</div>
<table>
<thead>
<tr>
<th>First</th>
<th>Second</th>
<th>Third</th>
</tr>
</thead>
<tbody>
<tr>
<td>Lorem ipsum</td>
<td>dolor sit</td>
<td>amet</td>
</tr>
<tr>
<td>consectetuer</td>
<td>adipiscing</td>
<td>elit</td>
</tr>
</tbody>
</table>
<form>
<fieldset>
<legend>Form fields here</legend>
<label>Text field</label>
<div>
<input type="text" placeholder="Enter text" />
</div>
<label>Password field</label>
<div>
<input type="password" placeholder="Enter password" />
</div>
<div>
<textarea name="textarea" id="" cols="30" rows="10">Textarea here</textarea>
</div>
<div>
<select>
<option>Dropdown here</option>
<option>Extra option</option>
</select>
</div>
<div>
<label for="checkbox1">
<input type="checkbox" id="checkbox1" /> Checkbox 1
</label>
<label for="checkbox1">
<input type="checkbox" id="checkbox1" /> Checkbox 1
</label>
<label for="checkbox1">
<input type="checkbox" id="checkbox1" /> Checkbox 1
</label>
</div>
<div>
</div>
<div>
<input type="submit" value="Submit button" />
</div>
</fieldset>
</form>
</div>
</div>
<footer>
<div class="wrapper">
<p>Nice calm footer.</p>
<p>This template was lovingly created by <a href="http://ajk.im/">ajk</a>.</p>
</div>
</footer>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<!-- Toggle baseline grid -->
<script>
var root = document.body,
grid = 0;
window.addEventListener('keydown', function(e) {
if(e.keyCode == 71) {
if(grid==0) {
removeClass(root, "no-grid");
addClass(root, "grid");
grid = 1;
} else {
removeClass(root, "grid");
addClass(root, "no-grid");
grid = 0;
}
}
});
function hasClass(el, name) {
return new RegExp('(\\s|^)'+name+'(\\s|$)').test(el.className);
}
function removeClass(el, name)
{
if (hasClass(el, name)) {
el.className=el.className.replace(new RegExp('(\\s|^)'+name+'(\\s|$)'),' ').replace(/^\s+|\s+$/g, '');
}
}
function addClass(el, name)
{
if (!hasClass(el, name)) { el.className += (el.className ? ' ' : '') +name; }
}
</script>
</body>
</html>