-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (45 loc) · 1.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Web Share</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- import the webpage's stylesheet -->
<link rel="stylesheet" href="style.css">
<!-- import the webpage's javascript file -->
<script src="share.js" defer></script>
<script src="common.js" defer></script>
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#4a148c">
<base href="https://gondow.github.io/test/">
</head>
<body>
<h1>
Web Share API
</h1>
<p>
The Web Share API, allows sites to share links and text to other
apps via the system provided share picker.
</p>
<p id="notSupported">
<b>Sorry!</b> This browser doesn't support the Web Share API,
which required for this demo.
</p>
<pre>
const shareOpts = {
title: 'Jabberwocky',
text: 'Check out this great poem about a Jabberwocky.',
url: 'https://en.wikipedia.org/wiki/Jabberwocky',
};
navigator.share(shareOpts);
</pre>
<p>
<button type="button" id="butShare" disabled>
Share
</button>
</p>
<div id="divResult">
</div>
</body>
</html>