forked from carrot/share-button
-
Notifications
You must be signed in to change notification settings - Fork 0
/
examples.html
64 lines (62 loc) · 2.47 KB
/
examples.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
<!DOCTYPE html>
<html>
<head>
<title>Share Button Test</title>
<style>
html { width: 100%; height: 100%; overflow: hidden; }
body { -webkit-font-smoothing: antialiased;width: 100%; height: 100%;overflow: hidden;margin: 0; padding: 0;background: #4f3b5b;background: -moz-radial-gradient(center, ellipse cover, #4f3b5b 0%, #231733 100%);background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#4f3b5b), color-stop(100%,#231733));background: -webkit-radial-gradient(center, ellipse cover, #4f3b5b 0%,#231733 100%);background: -o-radial-gradient(center, ellipse cover, #4f3b5b 0%,#231733 100%);background: -ms-radial-gradient(center, ellipse cover, #4f3b5b 0%,#231733 100%);background: radial-gradient(ellipse at center, #4f3b5b 0%,#231733 100%);}
.share-button { margin: 100px auto; }
.fork img { opacity: .6; -webkit-transition: all .5s ease; transition: all .5s ease; }
.fork img:hover { opacity: 1; }
</style>
<meta name='description' content='A simple, light, flexible, and good-looking share button'>
<meta name='og:image' content='http://carrot.is/img/fb-share.jpg'>
</head>
<body>
<a class='fork' href="https://github.com/carrot/share-button">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://www.sharebutton.co/images/fork-me.png" alt="Fork me on GitHub">
</a>
<div class='share-button share-button-top'></div>
<div class='share-button share-button-left'></div>
<div class='share-button share-button-bottom'></div>
<div class='share-button share-button-bottom'></div>
<script src='build/share.js'></script>
<script>
var share_button_top = new Share(".share-button-top", {
title: "Share Button Multiple Element Test",
ui: {
flyout: "top center"
},
networks: {
facebook: {
app_id: "602752456409826",
}
}
});
var share_button_left = new Share(".share-button-left", {
title: "Share Button Multiple Instantiation Test",
ui: {
flyout: "top left",
button_text: "Left"
},
networks: {
facebook: {
app_id: "602752456409826",
}
}
});
var share_button_right = new Share(".share-button-bottom", {
title: "Share Button Multiple Instantiation Test",
ui: {
flyout: "bottom right",
button_text: "Right"
},
networks: {
facebook: {
app_id: "602752456409826",
}
}
});
</script>
</body>
</html>