-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
133 lines (128 loc) · 4.36 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
<!doctype html>
<html lang="en">
<head>
<title>BetterToggle jQuery Plugin</title>
<meta charset="UTF-8" />
<meta property='og:title' content='betterToogle is a jQuery plugin for toggling elements'/>
<meta name='description' content='betterToogle is a jQuery plugin for toggling elements'/>
<meta property='og:description' content='betterToogle is a jQuery plugin for toggling elements'/>
</head>
<link rel="stylesheet" href="bootstrap.css">
<style>
.container-fluid{
margin-bottom: 30px;
}
#footer {
margin-top: 20px;
height: 60px;
background-color: #f5f5f5;
}
.jumbotron {
padding: 100px 0;
text-align: center;
background: url(images/grey_wash_wall.png);
}
.jumbotron h1 {
font-size: 100px;
line-height: 1;
}
.jumbotron .lead {
font-size: 24px;
line-height: 1.25;
}
.jumbotron .btn {
font-size: 21px;
}
.row-fluid{
height: 306px;padding-top:20px
}
</style>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33060097-1']);
_gaq.push(['_trackPageview']);
(function () {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
<body>
<div class="jumbotron masthead">
<div class="container">
<h1>betterToggle</h1>
<p class="lead">Sleek CSS3 toggling of Elements.</p>
<p><a class="btn btn-large btn-inverse" href="https://github.com/kanakiyajay/betterToggle/raw/master/jquery.betterToggle.js">Download</a></p>
<p>
</div>
</div>
<div class="container">
<div class="row-fluid">
<div class="span6">
<h3>Single Element</h3>
<h4>code</h4>
<pre>
$("#click").click(function () {
$("example1").betterToggle();
});
</pre>
<button class="btn btn-large btn-primary" id="click1">Toggle</button>
</div>
<div class="span6">
<img id="example1" src="images/hoi-festival-india.jpg" alt="Holi">
</div>
</div>
<div class="row-fluid">
<div class="span4">
<h3>Multiple Elements</h3>
<h4>Code</h4>
<pre>
$("#click2").click(function () {
$(".example2").betterToggle();
})
</pre>
<button class="btn-primary btn btn-large" id="click2">Toggle All</button>
</div>
<div class="span3">
<img src="images/holi2.jpg" alt="holi" class="example2 pull-left">
</div>
<div class="span3">
<img src="images/holi3.jpg" alt="holi" class="example2 pull-left">
</div>
</div>
<div class="row-fluid">
<div class="span6">
<h3>Inserting Elements</h3>
<pre>
$("#click3").click(function () {
var insert = '<img style="display:none" src="images/holi3.jpg"';
$("#example3").append($(insert).betterToggle());
});
</pre>
<p class="text-error">The inserting html should have display:none</p>
<button class="btn-primary btn btn-large" id="click3">Insert</button>
</div>
<div class="span6" id="example3">
</div>
</div>
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
<script type="text/javascript" src="bootstrap.min.js"></script>
<script type="text/javascript" src="jquery.betterToggle.js"></script>
<script type="text/javascript">
$("#click1").click(function () {
$("#example1").betterToggle();
});
$("#click2").click(function () {
$(".example2").betterToggle();
})
$("#click3").click(function () {
var insert = '<img style="display:none" src="images/holi3.jpg">';
$("#example3").append($(insert).betterToggle());
});
</script>
</body>
</html>