-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathdemo2.html
57 lines (55 loc) · 1.45 KB
/
demo2.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
<!DOCTYPE html>
<html>
<head>
<title>Sophisticated vw, vh & vmin example</title>
<link rel='stylesheet' href='test2.css'/>
</head>
<body>
<div id='header'>
<a href="#">
<h1 id="logo">Resize the Window!</h1>
</a>
<div id='nav'>Navigation</div>
</div>
<div id="content">
<div id="highlights">Highlights</div>
<div id="news">
<div id="item1">News item 1</div>
<div id="item2">News item 2</div>
<div id="item3">News item 3</div>
</div>
<div id="ads">
<div id="ad1">ad 1</div>
<div id="ad2">ad 2</div>
<div id="ad3">ad 3</div>
</div>
</div>
<div id='footer'>Footer</div>
<script type="text/javascript">
if (!Array.prototype.filter)
{
Array.prototype.filter = function(fun /*, thisp*/)
{
var len = this.length;
if (typeof fun != "function")
throw new TypeError();
var res = new Array();
var thisp = arguments[1];
for (var i = 0; i < len; i++)
{
if (i in this)
{
var val = this[i]; // in case fun mutates this
if (fun.call(thisp, val, i, this))
res.push(val);
}
}
return res;
};
}
</script>
<script src="tokenizer.js"></script>
<script src="parser.js"></script>
<script src="vminpoly.js"></script>
</body>
</html>