forked from jeffersonrpn/jquery-fab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jquery-fab.html
49 lines (49 loc) · 1.66 KB
/
jquery-fab.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
<html>
<head>
<link rel="stylesheet" href="dist/css/jquery-fab.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="dist/js/jquery-fab.min.js"></script>
<style>
body {
background-color: #95a5a6;
}
</style>
</head>
<body>
<div id="wrapper"></div>
<script>
$(document).ready(function(){
var links = [
{
"bgcolor":"#2980b9",
"icon":"<i class='fa fa-plus'></i>"
},
{
"url":"http://www.example.com",
"bgcolor":"#f1c40f",
"color":"fffff",
"icon":"<i class='fa fa-pencil'></i>",
"target":"_blank"
},
{
"url":"http://www.example.com",
"bgcolor":"#2ecc71",
"color":"#fffff",
"icon":"<i class='fa fa-comment'></i>"
},
{
"url":"#anchor",
"bgcolor":"#e74c3c",
"color":"#fffff",
"icon":"A"
}
];
var options = {
rotate: false
};
$('#wrapper').jqueryFab(links, options);
})
</script>
</body>
</html>