-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
90 lines (67 loc) · 3.15 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE HTML>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="cleartype" content="on" />
<title>Social Share</title>
<link rel="stylesheet" href="css/social-share.css" />
<meta name="description" content="Nigredo Social Share Page Description" />
<link rel="canonical" href="https://lucywheel.github.io/nigredo" />
<link rel="author" href="website" />
<meta property="og:url" content="https://lucywheel.github.io/nigredo/index.html" />
<meta property="og:site_name" content="Nigredo" />
<meta property="og:title" content="Social Share Example" />
<meta property="og:description" content="Nigredo Social Share Page Description" />
<meta property="og:image" content="https://lucywheel.github.io/nigredo/img/share-image.jpg" />
<script src="https://vk.com/js/api/openapi.js?151" type="text/javascript"></script>
<script type="text/javascript">
VK.init({
apiId: 6334839
});
</script>
</head>
<body>
<div id="vk_api_transport"></div>
<!-- ARIA Role Attributes -->
<header role="banner">
</header>
<nav role="navigation">
</nav>
<section role="main">
<div class="social-share">
<center>
<h4 class="social-share-title">Поделиться</h4>
<button data-social="facebook" class="social-share-button main-button" type="button">Facebook</button>
<button id="vk_api_transport" data-social="vk" class="social-share-button main-button" type="button">Vk</button>
</center>
</div>
<div class="social-share">
<center>
<h4 class="social-share-title">Поделиться</h4>
<a href="https://www.facebook.com/sharer/sharer.php?u=https://lucywheel.github.io/nigredo/index.html" data-social="facebook" class="social-share-button main-button" type="button">Facebook</a>
<a href="https://vk.com/share.php?url=https://lucywheel.github.io/nigredo/index.html" data-social="vk" class="social-share-button main-button" type="button">Vk</a>
</center>
</div>
</section>
<aside role="complementary">
</aside>
<footer role="contentinfo">
</footer>
<!--
“Putting scripts at the bottom of the page is an outdated technique. Use async and defer instead" (outdated but safe):
https://twitter.com/smashingmag/status/593100193010032640
Use async attribute: The script is downloaded asynchronously while the rest of the page continues to get parsed. The script is guaranteed to be executed as soon as the download is complete:
http://csswizardry.com/2013/01/front-end-performance-for-web-designers-and-front-end-developers/
Use defer attribute if IE9 and below are not a concern:
http://www.growingwiththeweb.com/2014/02/async-vs-defer-attributes.html
General Guidelines:
- Typically you want to use async where possible, then defer, then no attribute.
- If the script is modular and does not rely on any scripts then use async.
- If the script relies upon or is relied upon by another script then use defer.
-->
<script async src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script defer src="js/social-share.js"></script>
</body>
</html>