forked from carrot/share-button
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (33 loc) · 1.91 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
<!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: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; }
.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://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
<div class='share-button share-button-top'></div>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.2/jquery.min.js'></script>
<script src='build/share.js'></script>
<script>
$(function(){
$('.share-button').share({
title: 'Share Button Test',
image: 'http://carrot.is/img/fb-share.jpg',
app_id: '602752456409826',
background: 'rgba(255,255,255,.5)',
color: '#3B2B45',
flyout: 'top center'
});
});
</script>
</body>
</html>