-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgallery.html
More file actions
executable file
·95 lines (94 loc) · 3.05 KB
/
gallery.html
File metadata and controls
executable file
·95 lines (94 loc) · 3.05 KB
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
<html>
<head>
<title>
Class Reunion - CSS Viewer
</title>
</head>
<body>
<h1>
<a href="/class-reunion/">
Class Reunion
</a>
</h1>
<p>
Enter the URL of your CSS file and you can browse the classes it contains.
</p>
<p>
<form action="#" method="post" name="css-url">
<input type="text" name="url" id="url" />
<input type="submit" name="submit" value="Show me!" />
</form>
</p>
<?PHP
echo $divs;
?>
<script type="text/javascript">
var index;
var target;
var current;
var list;
var gallery;
window.onload = function() {
index = 1;
target = document.getElementById('current');
gallery = document.getElementById('gallery');
list = document.getElementById('all_list');
view('class_1_outer');
}
function view(name) {
tmp = name.split('_');
index = tmp[1];
current = document.getElementById(name);
target.innerHTML = current.innerHTML;
}
function viewPrevious() {
if (index == 1) {
return;
}
view('class_'+(--index)+'_outer');
}
function viewNext() {
if (!document.getElementById('class_'+parseInt((parseInt(index)+1))+'_outer')) {
return;
}
view('class_'+(++index)+'_outer');
}
function viewAsList() {
gallery.style.display = 'none';
list.style.display = 'block';
}
function viewGallery() {
list.style.display = 'none';
gallery.style.display = 'block';
}
</script>
<div id="gallery" name="gallery">
<a href="javascript:viewAsList();" style="float:left;">
View all
</a> or pick a class :
<?PHP
echo $style_list;
?>
<br/><br/>
<table style="width:100%;">
<tr>
<td style="vertical-align:top; width:10%;">
<a id="view_previous" href="javascript:viewPrevious();" style="float:left;">
<<
</a>
</td>
<td>
<div id="current" name="current" style="width:100%;">
</div>
</td>
<td style="vertical-align:top; width:10%; text-align:right;">
<a id="view_next" href="javascript:viewNext();" style="float:right;">
>>
</a><br/><br/>
</td>
</tr>
</table>
</div>
</body>
</html>