This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathexample_typical.html
122 lines (114 loc) · 8.1 KB
/
example_typical.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
<?xml version="1.0" encoding="UTF-8" ?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Typical usage</title>
</head>
<body>
<link rel="stylesheet" href="css/kGallery.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="css/kGallery_ie6.css"/>
<![endif]-->
<style>
#gallery-wrapper{
height: 400px; width: 400px; text-align: center;
}
.kSlideshowWrapper, .kSlideshowItemDiv{
width: 400px;
height: 267px;
}
.kThumbnailsInnerWrapper{
height: 80px;
width: 324px;
}
.kThumbnailsWrapper{
width: 324px;
height: 80px;
margin: 10px auto 0 auto;
}
.kThumbnailsPage{
width: 324px;
text-align: left;
}
.kThumbnailsPage img{
padding: 1px;
border: 1px solid black;
margin: 2px;
}
.kThumbnailsPage .selectedThumbnail{
border-color: #aaaaff;
}
.kSlideshowItemDiv img{
z-index: 400;
}
</style>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="js/kGallery-full.min.js"></script>
<!--script type="text/javascript" src="js/kSlideshow.js"></script>
<script type="text/javascript" src="js/kThumbnailPicker.js"></script>
<script type="text/javascript" src="js/kGallery.js"></script-->
<script type="text/javascript">
$(document).ready(function() {
gallery = kGallery({
wrapper: '#gallery-wrapper',
dataSource: 'files/gallery.json',
startItem: 0
});
});
</script>
<a href="https://github.com/andruhon/kGallery">https://github.com/andruhon/kGallery</a>
<h2>Typical usage of kGallery</h2>
<div id="gallery-wrapper">
</div>
<h2>
JavaScript
</h2>
<div class="javascript"><ol><li class="li1"><div class="de1">$<span class="br0">(</span>document<span class="br0">)</span>.<span class="me1">ready</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span></div></li>
<li class="li1"><div class="de1"> gallery <span class="sy0">=</span> kGallery<span class="br0">(</span><span class="br0">{</span></div></li>
<li class="li1"><div class="de1"> wrapper<span class="sy0">:</span> <span class="st0">'#gallery-wrapper'</span><span class="sy0">,</span></div></li>
<li class="li1"><div class="de1"> url<span class="sy0">:</span> <span class="st0">'files/gallery.json'</span><span class="sy0">,</span></div></li>
<li class="li1"><div class="de1"> startItem<span class="sy0">:</span> <span class="nu0">0</span></div></li>
<li class="li1"><div class="de1"> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span></div></li>
</ol></div>
<h2>HTML</h2>
<div class="html4strict"><ol><li class="li1"><div class="de1"><span class="sc2"><<span class="kw2">div</span> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">"gallery-wrapper"</span>></span></div></li>
<li class="li1"><div class="de1"> </div></li>
<li class="li1"><div class="de1"><span class="sc2"><<span class="sy0">/</span><span class="kw2">div</span>></span></div></li>
</ol></div>
<h2>CSS</h2>
<div class="css"><ol><li class="li1"><div class="de1"><span class="re0">#gallery-wrapper</span><span class="br0">{</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">height</span><span class="sy0">:</span> <span class="re3">400px</span><span class="sy0">;</span> <span class="kw1">width</span><span class="sy0">:</span> <span class="re3">400px</span><span class="sy0">;</span> <span class="kw1">text-align</span><span class="sy0">:</span> <span class="kw2">center</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"><span class="br0">}</span></div></li>
<li class="li1"><div class="de1"><span class="re1">.kSlideshowWrapper</span><span class="sy0">,</span> .kSlideshowItemDiv<span class="br0">{</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">width</span><span class="sy0">:</span> <span class="re3">400px</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">height</span><span class="sy0">:</span> <span class="re3">267px</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"><span class="br0">}</span></div></li>
<li class="li1"><div class="de1">.kThumbnailsInnerWrapper<span class="br0">{</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">height</span><span class="sy0">:</span> <span class="re3">80px</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">width</span><span class="sy0">:</span> <span class="re3">324px</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"><span class="br0">}</span></div></li>
<li class="li1"><div class="de1">.kThumbnailsWrapper<span class="br0">{</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">width</span><span class="sy0">:</span> <span class="re3">324px</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">height</span><span class="sy0">:</span> <span class="re3">80px</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">margin</span><span class="sy0">:</span> <span class="re3">10px</span> <span class="kw2">auto</span> <span class="nu0">0</span> <span class="kw2">auto</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"><span class="br0">}</span></div></li>
<li class="li1"><div class="de1">.kThumbnailsPage<span class="br0">{</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">width</span><span class="sy0">:</span> <span class="re3">324px</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">text-align</span><span class="sy0">:</span> <span class="kw1">left</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"><span class="br0">}</span></div></li>
<li class="li1"><div class="de1"><span class="re1">.kThumbnailsPage</span> img<span class="br0">{</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">padding</span><span class="sy0">:</span> <span class="re3">1px</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">border</span><span class="sy0">:</span> <span class="re3">1px</span> <span class="kw2">solid</span> <span class="kw1">black</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">margin</span><span class="sy0">:</span> <span class="re3">2px</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"><span class="br0">}</span></div></li>
<li class="li1"><div class="de1"><span class="re1">.kThumbnailsPage</span> .selectedThumbnail<span class="br0">{</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">border-color</span><span class="sy0">:</span> <span class="re0">#aaaaff</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"><span class="br0">}</span></div></li>
<li class="li1"><div class="de1"><span class="re1">.kSlideshowItemDiv</span> img<span class="br0">{</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">z-index</span><span class="sy0">:</span> <span class="nu0">400</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"><span class="br0">}</span></div></li>
</ol></div>
</body>
</html>