forked from Julienh/Sharrre
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (104 loc) · 2.16 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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Sharrre.com</title>
<meta name="description" content="Sharrre" />
<script src="http://code.jquery.com/jquery-1.7.min.js"></script>
<script src="jquery.sharrre-1.3.1.js"></script>
<script>
$(function(){
$('#demo1').sharrre({
share: {
googlePlus: true,
facebook: true,
twitter: true,
delicious: true
},
buttons: {
googlePlus: {size: 'tall'},
facebook: {layout: 'box_count'},
twitter: {count: 'vertical'},
delicious: {size: 'tall'}
},
hover: function(api, options){
$(api.element).find('.buttons').show();
},
hide: function(api, options){
$(api.element).find('.buttons').hide();
}
});
$('#demo2').sharrre({
share: {
googlePlus: true,
facebook: true,
twitter: true
},
url: 'http://sharrre.com',
enableHover: false
});
});
</script>
<style type="text/css">
#demo1.sharrre {
width:100%;
display:inline-block;
}
#demo2.sharrre {
width:50px;
}
.sharrre .box{
float:left;
}
.sharrre .count {
color:#444444;
display:block;
font-size:17px;
line-height:34px;
height:34px;
padding:4px 0;
position:relative;
text-align:center;
text-decoration:none;
width:50px;
background-color:#eee;
-webkit-border-radius:4px;
-moz-border-radius:4px;
border-radius:4px;
}
.sharrre .share {
color:#FFFFFF;
display:block;
font-size:11px;
height:16px;
line-height:16px;
margin-top:3px;
padding:0;
text-align:center;
text-decoration:none;
width:50px;
background-color:#9CCE39;
-webkit-border-radius:4px;
-moz-border-radius:4px;
border-radius:4px;
}
.sharrre .buttons {
display:none;
float:left;
width:300px;
}
.sharrre .button {
float:left;
max-width:50px;
height:50px;
margin-left:10px;
}
</style>
</head>
<body>
<h1>Sharrre demo</h1>
<div id="demo1" data-title="sharrre" data-url="http://sharrre.com" ></div>
<br /><br />
<div id="demo2"></div>
</body>
</html>