-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
135 lines (100 loc) · 5.73 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="css/styles.css">
<title>OhSum Gallery</title>
</head>
<body class="bg-light">
<div class="container mt-5">
<div class="row">
<div class="col-sm-12">
<h1>OhSum Gallery Testing</h1>
<hr>
</div>
<div class="col-sm-12 mt-3 mb-3">
<form class="row">
<div class="col-sm-2">
<div class="form-group">
<label for="">Theme</label>
<select id="theme" class="form-control">
<option value="dark">Dark</option>
<option value="light">Light</option>
</select>
</div>
</div><!--col-->
<div class="col-sm-2">
<div class="form-group">
<label for="">Show Sidebar</label>
<select id="show_sidebar" class="form-control">
<option value="1">Yes</option>
<option value="0">No</option>
</select>
</div>
</div><!--col-->
<div class="col-sm-2">
<div class="form-group">
<label for="">Caption Style</label>
<select id="caption_style" class="form-control">
<option value="sidebar">Sidebar</option>
<option value="bottom">Bottom</option>
</select>
</div>
</div><!--col-->
</form>
</div>
<div class="col-sm-6 mb-3">
<div class="row">
<div class="col-6 ">
<a class="ohsum-gallery" href="images/2.jpg" data-caption="<p><strong>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</strong></p><p>- <a href='#'>Lipsum.org</a></p>" data-ohsum="gallery 1" ><img src="thumbnails/2.jpg" class="img-fluid" ></a>
</div>
<div class="col-6">
<a class="ohsum-gallery" href="images/4.jpg" data-caption="<p><strong>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</strong></p><p>- <a href='#'>Lipsum.org</a></p>" data-ohsum="gallery 1" ><img src="thumbnails/4.jpg" class="img-fluid" ></a>
</div>
</div>
</div>
<div class="col-sm-6 mb-3">
<div class="row">
<div class="col-6">
<a class="ohsum-gallery" href="images/1.jpg" data-caption="<p><strong>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</strong></p><p>- <a href='#'>Lipsum.org</a></p>" data-ohsum="gallery 1" ><img src="thumbnails/1.jpg" class="img-fluid" ></a>
</div>
<div class="col-6">
<a class="ohsum-gallery" href="images/3.jpg" data-ohsum="gallery 1" ><img src="thumbnails/3.jpg" class="img-fluid" ></a>
</div>
<div class="col-sm-12">
<div class="mb-3"></div>
</div>
<div class="col-6">
<a class="ohsum-gallery" href="images/6.jpg" data-ohsum="gallery 1" ><img src="thumbnails/6.jpg" class="img-fluid" ></a>
</div>
<div class="col-6">
<a class="ohsum-gallery" href="images/5.jpg" data-caption="<p><strong>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</strong></p><p>- <a href='#'>Lipsum.org</a></p>" data-ohsum="gallery 1" ><img src="thumbnails/5.jpg" class="img-fluid" ></a>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery-1.12.4.min.js" ></script>
<script src="js/scripts.js" ></script>
<script>
jQuery(document).ready(function($){
load_plugin();
// $('a[data-ohsum="gallery 1"]').ohsumGallery();
$('select.form-control').change(function(){
load_plugin();
})
function load_plugin(){
$('a[data-ohsum="gallery 1"]').ohsumGallery({
theme: $('#theme').val(),
show_sidebar: $('#show_sidebar').val(),
caption_style: $('#caption_style').val()
});
}
})
</script>
</body>
</html>