forked from DzmVasileusky/needShareButton
-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.html
executable file
·66 lines (55 loc) · 2.45 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>
<head>
<meta charset="utf-8">
<title>needShareButton demo</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../dist/needsharebutton.min.css">
<!-- Styles just for demo -->
<style>
body {
font: 14px/1 "Helvetica Neue",Helvetica,Arial,sans-serif;
margin:0;
padding:0;
background: #DFF4FF;
}
.wrapper {
padding: 100px 60px;
text-align: center;
}
</style>
</head>
<body>
<div class="wrapper">
<h2>Share button default mode on bottom center</h2>
<div id="i-share" data-share-position="bottomCenter" class="need-share-button-default">
Share
</div>
<h2>Share button box mode with chosen networks</h2>
<div id="share-button-2" class="need-share-button-default" data-share-icon-style="box" data-share-networks="Wechat,Twitter,RenRen,Facebook,GooglePlus,Linkedin,Delicious,mailto">Share</div>
<h2>Share button default mode on middle right</h2>
<div id="share-button-3" class="need-share-button-default" data-share-position="middleRight" data-share-networks="Wechat,Twitter,RenRen,Facebook,GooglePlus,Linkedin">Share</div>
<h2>Share button box mode on middle right</h2>
<div id="share-button-4" class="need-share-button-default" data-share-position="middleRight" data-share-icon-style="box" data-share-networks="Wechat,Twitter,RenRen,Facebook,GooglePlus,QQZone">Share</div>
<h2>Share button with class name 'need-share-button'</h2>
<div id="share-button-5" class="need-share-button-default need-share-button" data-share-position="middleRight" data-share-icon-style="box" data-share-networks="Wechat,Twitter,RenRen,Facebook,GooglePlus,QQZone">Share</div>
<h3>Share panel</h3>
<div id="share-panel" class="need-share-panel"></div>
<h3>Share panel box mode</h3>
<div id="share-panel-2" class="need-share-panel" data-share-icon-style="box"></div>
</div>
<script src="../dist/needsharebutton.js"></script>
<script>
new needShareButton(document.getElementById('i-share'));
new needShareButton(document.getElementById('share-button-2'));
new needShareButton(document.getElementById('share-button-3'));
new needShareButton(document.getElementById('share-button-4'));
new needShareButton(document.getElementById('share-panel'));
new needShareButton('#share-panel-2', {
url: 'http://www.baidu.com',
title: 'test demo'
});
</script>
</body>
</html>