This repository has been archived by the owner on Feb 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
example.html
76 lines (75 loc) · 3.12 KB
/
example.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
<html>
<head>
<title>SplitPic Example</title>
<link rel="stylesheet" type="text/css" href="splitpic.css" />
<style>
.container {
width: 600px;
margin: 0 auto;
}
</style>
</head>
<body>
<div class="container">
<h1>Please Enjoy This Humorous Example Page</h1>
<div class="splitpic splitpic-horizontal" data-orientation="horizontal">
<h3>Oh, no! Daddy keeps disappearing.</h3>
<div class="splitpic-images" data-start-percent="0">
<div class="splitpic-image splitpic-right-image">
<div>
<img src="http://chimg.onionstatic.com/5747/original/600.jpg">
</div>
</div>
<div class="splitpic-image splitpic-left-image">
<div>
<img src="http://chimg.onionstatic.com/5746/original/600.jpg">
</div>
</div>
<div class="splitpic-bar"></div>
<div class="splitpic-info">
<span class="fa fa-arrow-left"></span> Slide
<span class="fa fa-arrow-right"></span>
</div>
</div>
<p class="figcaption">
He's back! Yay!
</p>
</div>
<div class="splitpic splitpic-vertical" data-orientation="vertical">
<h3>Oh, no! Daddy keeps disappearing.</h3>
<div class="splitpic-images" data-start-percent="0">
<div class="splitpic-image splitpic-right-image">
<div>
<img src="http://chimg.onionstatic.com/5745/original/600.jpg">
</div>
</div>
<div class="splitpic-image splitpic-left-image">
<div>
<img src="http://chimg.onionstatic.com/5744/original/600.jpg">
</div>
</div>
<div class="splitpic-bar"></div>
<div class="splitpic-info">
<span class="fa fa-arrow-up"></span> Slide
<span class="fa fa-arrow-down"></span>
</div>
</div>
<p class="figcaption">
He's back! Yay!
</p>
</div>
</div>
<script type="text/javascript" src="splitpic.js" ></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
$('.splitpic-horizontal .splitpic-images').each(function (i, v) {
var sp = new SplitPic(v);
});
$('.splitpic-vertical .splitpic-images').each(function (i, v) {
var sp = new SplitPicVertical(v);
});
});
</script>
</body>
</html>