forked from vitrinekast/WAFS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (44 loc) · 1.59 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
<!DOCTYPE html>
<html>
<head>
<title>Web App From Scratch</title>
<meta charset="utf-8">
<meta name="author" content="Emiel the ruler">
<meta name="description" content="I am your leader">
<link href='https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900' rel='stylesheet' type='text/css'>
<link href="static/style/style.css" rel="stylesheet">
</head>
<body>
<header>
<h1>SPA</h1>
<nav>
<ul>
<li><a href="#1" class="active">Start</a></li>
<li><a href="#2">Best Practices</a></li>
<li><a href="#3">Other</a></li>
</ul>
</nav>
</header>
<main>
<section id="1" class="active">
<h2>Start</h2>
</section>
<section id="2">
<h2>Best Practices</h2>
<ul>
<li>Don't use global variables/objects</li>
<li>Declare variables at top of scope</li>
<li>Use short clear meaningful names (English)</li>
<li>Work in strict mode</li>
<li>camelCase your code if(code != Constructor || CONSTANTS)</li>
<li>Place external scripts at the bottom of the page</li>
<li>Indent your code</li>
</ul>
</section>
<section id="3">
<h2>Other</h2>
</section>
</main>
<script src="static/script/script.js"></script>
</body>
</html>