-
Notifications
You must be signed in to change notification settings - Fork 56
/
social-share.html
68 lines (55 loc) · 1.77 KB
/
social-share.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Social Profiles and Sharing jQuery Plugin</title>
<meta name="description" content="Social sharing jquery plugin">
<link rel="stylesheet" href="assets/stylesheets/normalize.css">
<link rel="stylesheet" href="assets/stylesheets/arthref.min.css">
<style>
.example-site{
z-index: 1;
position: absolute;
width: 100%;
height: 100%;
background: url('assets/images/ntv-spor.jpg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.selectMe{
position: absolute;
z-index: 2;
left: 50%;
top: 50%;
width: 200px;
height: 120px;
padding: 20px 50px;
margin: -80px 0 0 -150px;
background: #ccc;
border-radius: 5px;
font-size: 20px;
line-height: 30px;
text-align: center;
}
</style>
</head>
<body>
<div class="example-site"></div><!--.example-site-->
<div class="selectMe shareSelector">I'm selectable text. When you select me, I trigger to open SocialShare Window</div>
<div id="menu" class="shareSelector" style="left:50%; top:0; margin: -125px 0 0 -125px; width:250px; height:250px; background:#f00; border-radius:100%; position:fixed; z-index:11; cursor:pointer;"></div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="assets/javascripts/socialShare.min.js"></script>
<script>
$(document).ready(function () {
$('.shareSelector').socialShare({
social: 'blogger,delicious,digg,facebook,friendfeed,google,linkedin,myspace,pinterest,reddit,stumbleupon,tumblr,twitter,windows,yahoo',
whenSelect: true,
selectContainer: '.shareSelector'
});
});
</script>
</body>
</html>