-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (53 loc) · 1.63 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Share Widget</title>
</head>
<body>
<h1>Share widget</h1>
<script type="text/javascript">
!function (s, h, a, r, e, w) {
s.shareWidget || (
e = h.createElement(a),
e.src = r,
w = h.getElementsByTagName(a)[0],
w.parentNode.insertBefore(e, w)
)
}(window, document, "script", "dist/js/share-widget.js");
window.addEventListener('load', function () {
new shareWidget({
header: {
background: "#dd181c",
title: "Share this on",
},
button: {
color: "#dd181c"
},
networks: [{
network: "whatsapp",
name: "Whatsapp",
color: "#18e27a"
},
{
network: "facebook",
name: "Facebook",
color: "#3a559f"
},
{
network: "twitter",
name: "Twitter",
color: "#55acee"
},
{
network: "email",
name: "Correo",
color: "#000"
}]
})
});
</script>
</body>
</html>