-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
66 lines (62 loc) · 2.05 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
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>jQuery Ripple</title>
<meta name="description" content="jQuery Ripple">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="bower_components/normalize.css/normalize.css">
<link rel="stylesheet" href="jquery.ripple.css">
</head>
<style>
.container {
box-sizing: border-box;
margin: 0 auto;
max-width: 960px;
padding: 20px;
width: 100%;
}
.example {
border-bottom: 1px solid #eee;
margin: 10px 0;
padding: 10px 0;
}
.example-1, .example-2 {
border: none;
outline: none;
padding: 25px 75px;
}
.example-2 {
background-color: #fff;
border: 1px solid #eee;
}
</style>
<body>
<section class="container">
<h3>jQuery Ripple</h3>
<div class="example">
<h4>Simple Button</h4>
<button class="example-1" data-ripple>Run Effect</button>
<h5>Code:</h5>
<code>
$('.example-1[data-ripple]').ripple();
</code>
</div>
<div class="example">
<h4>Alternate Colors</h4>
<button class="example-2" data-ripple>Run Effect</button>
<h5>Code:</h5>
<code>
$('.example-2[data-ripple]').ripple({ color: 'rgba(14,98,221,0.7)' });
</code>
</div>
</section>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="jquery.ripple.js"></script>
<script>
$('.example-1[data-ripple]').ripple();
$('.example-2[data-ripple]').ripple({ color: 'rgba(14,98,221,0.7)' });
</script>
</body>
</html>