forked from peterbe/mincss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.html
More file actions
28 lines (26 loc) · 668 Bytes
/
page.html
File metadata and controls
28 lines (26 loc) · 668 Bytes
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
<!doctype html>
<html>
<head>
<title>Example page</title>
<link rel="stylesheet" href="page.css">
<style type="text/css">
.foo, .othercrap { color: blue; }
.bar { color: green; /* no mincss */}
</style>
</head>
<body>
<div id="content">
<p class="foo">Expect this to be blue</p>
</div>
<script>
onload = function() {
var parent = document.getElementById('content');
var bar = document.createElement('p');
bar.className = 'bar';
var text = document.createTextNode('Expect this to be green');
bar.appendChild(text);
parent.appendChild(bar);
};
</script>
</body>
</html>