forked from sunggook/hello-pwa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
88 lines (84 loc) · 3.55 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
<!DOCTYPE html>
<html>
<head>
<title>Edge PWA Test</title>
<link rel="manifest" href="/hello-pwa/manifest.json"></manifest>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
<script src="share.js"></script>
<script src="badging.js"></script>
</head>
<body bgcolor="#E6E6FA">
<div><b>1. Custom Taskbar: (NoDrag Zone)</b>
<i class="material-icons">cloud</i>
<i class="material-icons">favorite</i>
<i class="material-icons">attachment</i>
  Edge PWA Test 
<input id="search_box" type="text" placeholder="search value" style="width: 250px;">
</div>
<div>
<h3>2. Activation test</3>
<h4 id="activation_type" style="font-style: italic"></h4>
<div class="shared" id="shared_from"></div>
<div class="filetype" id="file_handler"></div>
</div>
<div>
<h3>3. Navigator.share test</h3>
<div>
<table>
<tbody><tr><td>Title:</td>
<td><input type="checkbox" id="title_checkbox" checked="" disabled></td>
<td><input id="title" value="Title" size="40"></td>
</tr>
<tr><td>Text:</td>
<td><input type="checkbox" id="text_checkbox" checked=""></td>
<td><input id="text" value="The shared text" size="40"></td>
</tr>
<tr><td>URL:</td>
<td><input type="checkbox" id="url_checkbox" checked=""></td>
<td><input id="url" value="https://www.contoso.com" size="40"></td>
</tr>
<tr><td>Files:</td>
<td><!--Without column 2, the whole table is small on mobile.--></td>
<td><input id="files" type="file" multiple=""></td>
</tr>
</tbody>
</table>
<p>
<input id="share" type="button" value="Share">
<input id="share-no-gesture" type="button" value="Share without user gesture">
</p>
<p>
<div id="output">log: </div>
</p>
</div>
</div>
<div>
<h3>4. Badge notification test</h3>
<p id='notSupported' class='hidden'>
<b>Not Supported</b>
This browser doesn't appear to support the badging API.
</p>
<p>
<b>Note:</b>
" In order for this demo to work, it must be an installed
Progressive Web App.
"
</p>
<label for="badgeVal" class="badge-button">Badge value</label>
<input type="number" id="badgeVal" class="badge-button" placeholder="number" min="0" value="13" >
<br>
<button id='butSet' type='button' class="badge-button"> Set </button>
<button id='butClear' type='button' class="badge-button"> Clear </button>
</div>
<!-- <h2>Performance Test: Image Load</h2>
<div>
<button id="generate" onclick="generate()">Creat images</button>
<button id="unlinkSrcFromImage" onclick="unlinkSrcFromImage()">Set image with empty</button>
<button id="removeImagesLinks" onclick="removeImagesLinks()">Remove images element</button>
<button id="hideVisibility" onclick="hideVisibility()">Hide visibility</button>
<div id="container"></div>
</div> -->
</body>
</html>