-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
44 lines (44 loc) · 1.32 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="author" href="humans.txt">
<script src="src/microshare.js" defer></script>
<title>Micro Share</title>
</head>
<body>
<button
data-microshare-url="https://github.com/rafaelcavalcante/microshare"
data-microshare="facebook">
Facebook
</button>
<button
data-microshare-url="https://github.com/rafaelcavalcante/microshare"
data-microshare="Twitter">
Twitter
</button>
<button
data-microshare-url="https://github.com/rafaelcavalcante/microshare"
data-microshare="gplus">
Google Plus
</button>
<button
data-microshare="linkedin"
data-microshare-url="https://github.com/rafaelcavalcante/microshare"
data-microshare-title="Olá mundo!">
LinkedIn
</button>
<button
data-microshare-url="https://github.com/rafaelcavalcante/microshare"
data-microshare="tumblr">
Tumblr
</button>
<button class="add-scheme">Make Tumblr button work</button>
<script>
document.querySelector('.add-scheme').addEventListener('click', function() {
MicroShare.addShare( 'tumblr', 'http://www.tumblr.com/share/link?url={{url}}' );
});
</script>
</body>
</html>