-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
145 lines (125 loc) · 3.46 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta name="description" content="moo">
<meta name="keywords" content="stuff"><title>foo</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="css/page.css" />
<link rel="stylesheet" type="text/css" href="css/grid.css" />
<script type="text/javascript" src="js/mootools.js"></script>
<script type="text/javascript" src="js/util.js"></script>
<script type="text/javascript" src="js/backbutton.js"></script>
<script type="text/javascript" src="js/grid.js"></script>
<script type='text/javascript'>
//<![CDATA[
window.addEvent('domready', createGrid);
var manager;
function createGrid(){
if(manager)return;
manager = new GridManager();
// horizontal grid...
// xxxxxx
manager.add({name:'HORIZONTAL', columns:100, spacing:10, pages:[
{url:'data/page1.xml', name:'HOME1'},
{url:'data/page11.xml', name:'HOME2'},
{url:'data/page111.xml', name:'HOME3'},
{url:'data/page1111.xml', name:'HOME4'},
{url:'data/page11.xml', name:'HOME5'},
{url:'data/page111.xml', name:'HOME6'}
]});
// vertical
/*
x
x
x
x
*/
manager.add({name:'VERTICAL', columns:1, spacing:10, pages:[
{url:'data/page2.xml', name:'LINK PAGE X'},
{url:'data/page22.xml', name:'LINK PAGE X'},
{url:'data/page222.xml', name:'LINK PAGE X'},
{url:'data/page2222.xml', name:'LINK PAGE X'},
{url:'data/page22.xml', name:'LINK PAGE X'}
]});
// checker
/*
x 0 x
0 x 0
x 0 x
*/
manager.add({name:'CHECKER', columns:3, spacing:10, pages:[
{url:'data/page3.xml', name:'HOME'},
null,
{url:'data/page33.xml', name:'HOME'},
null,
{url:'data/page333.xml', name:'HOME'},
null,
{url:'data/page3333.xml', name:'HOME'},
null,
{url:'data/page3.xml', name:'HOME'}
]});
// cross
/*
0 x 0
x x x
0 x 0
*/
manager.add({name:'CROSS', columns:3, spacing:10, pages:[
null,
{url:'data/page4.xml', name:'HOME'},
null,
{url:'data/page44.xml', name:'HOME'},
{url:'data/page444.xml', name:'HOME'},
{url:'data/page4444.xml', name:'HOME'},
null,
{url:'data/page4.xml', name:'HOME'},
null
]});
// cross
/*
x x x
x x x
x x x
*/
manager.add({name:'BLOCK', columns:3, spacing:10, pages:[
{url:'data/page1.xml', name:'HOME'},
{url:'data/page2.xml', name:'HOME'},
{url:'data/page3.xml', name:'HOME'},
{url:'data/page4.xml', name:'HOME'},
{url:'data/page11.xml', name:'HOME'},
{url:'data/page22.xml', name:'HOME'},
{url:'data/page33.xml', name:'HOME'},
{url:'data/page44.xml', name:'HOME'},
{url:'data/page444.xml', name:'HOME'}
]});
var a = $$('#navigation a');
a.each(function(i){
i.addEvent('click', manager.activate.bind(manager, [i.innerHTML]));
});
if(!manager.active){
if((hash = location.hash.substring(1)))
{
if(manager.hash(hash)){return;}
}
manager.activate('HORIZONTAL');
}
}
//]]>
</script>
</head>
<body>
<div id="navigation">
<ul>
<li><a href="javascript://click to activate HORIZONTAL grid">HORIZONTAL</a></li>
<li><a href="javascript://click to activate VERTICAL grid">VERTICAL</a></li>
<li><a href="javascript://click to activate CHECKER grid">CHECKER</a></li>
<li><a href="javascript://click to activate CROSS grid">CROSS</a></li>
<li><a href="javascript://click to activate BLOCK grid">BLOCK</a></li>
</ul>
</div>
<div id="footer">
©2007 m.j.milicevic
</div>
</body>
</html>