forked from dr-dimitru/SHB-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (89 loc) · 2.56 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
<link href="styles/shb.css" rel="stylesheet">
<script src="scripts/shb.min.js" type="text/javascript"></script>
<title>SHB Example</title>
<head>
<body>
<main class="container">
<article class="row">
<section class="col-md-12 col-sm-12">
<p>Example of SHB.js. See more at <a href="http://ostr.io/code/html-social-like-share-buttons-no-javascript.html">How to Social Buttons in HTML only using Twitter Bootstrap 3 and Font Awesome Icons (No Javascript)</a>.</p>
<p>The SHB.js script build on the fly HTML social buttons, which based on Twitter Bootstrap 3 markup ant Font Awesome icons.</p>
<hr>
<center>
<p>Build All Default Buttons</p>
<div class="btn-group" id="shb"></div>
</center>
<pre><code>SHB.build('shb');</code></pre>
<hr>
<center>
<p>Build All Default Buttons with custom size</p>
<div class="btn-group" id="shb_options"></div>
</center>
<pre><code>SHB.build({
elementID: 'shb_otions',
pref: {
btnSizeClass: 'btn-sm',
}
});</code></pre>
<hr>
<center>
<p>Build Some of Default Buttons And One Custom (GitHub)</p>
<div class="btn-group" id="shb_custom"></div>
</center>
<pre><code>SHB.build({
elementID: 'shb_custom',
buttons: {
fbLike: true,
tweet: true,
plusOne: true,
surf: true,
customButton: {
iconClass: 'fa-github',
iconURL: 'https://github.com/dr-dimitru',
iconParams: {}
},
}
});</code></pre>
<hr>
</section>
</article>
</main>
<script type="text/javascript">
//Build All Default Buttons
SHB.build('shb');
//Build All Default Buttons with custom size
SHB.build({
elementID: 'shb_options',
pref: {
btnSizeClass: 'btn-sm',
}
});
//Build Some of Default Buttons And One Custom (GitHub)
SHB.build({
elementID: 'shb_custom',
buttons: {
fbLike: true,
tweet: true,
//fbShare: true,
plusOne: true,
//plusShare: true,
//linkedInShare: true,
//vkShare: true,
//pinterest: true,
surf: true,
customButton: {
iconClass: 'fa-github',
iconURL: 'https://github.com/dr-dimitru',
iconParams: {}
},
}
});
</script>
</body>
</html>