-
Notifications
You must be signed in to change notification settings - Fork 0
/
code.html
77 lines (54 loc) · 2.1 KB
/
code.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
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>add2homescreen Snippets</title>
<!-- Place the code below, START to END into the HEAD of your website.
Upload the add2homescreen folder which contains the scripts,
config, and images into the root folder of your website -->
<!-- START add2homescreen Code -->
<!-- Web App Meta Data-->
<link rel="manifest" id="add2homescreenManifest">
<script src="config.js"></script>
<!-- Hide App Notice (Default) Styling -->
<style id="ifIOS">
#ioswarning {
visibility: hidden;
display: none;
}
</style>
<style id="ifAndroid">
#androidwarning {
visibility: hidden;
display: none;
}
</style>
<!-- Always Hide in Landscape Mode Styling -->
<style>
@media only screen and (orientation:landscape) {
#ioswarning {
visibility: hidden;
display: none;
}
#androidwarning {
visibility: hidden;
display: none;
}
}
</style>
<!-- iOS App Notice -->
<div id="ioswarning" onClick="setCookie('dismissapp','true',30); this.style.visibility='hidden';"
style="height: auto; width: 100%; bottom:0; position:fixed; z-index: 9999; text-align: center"><img
src="/add2homescreen/ios-notice.svg" style="width: 90%; margin: 0 auto; padding-bottom: 5px"
alt="To add our app, please tap the share icon and then 'Add to Homescreen'."></div>
<!-- Android App Notice -->
<div id="androidwarning" onClick="setCookie('dismissapp','true',30); this.style.visibility='hidden';"
style="height: auto; width: 100%; top:0; position:fixed; z-index: 9999; text-align: center"><img
src="/add2homescreen/android-notice.svg" style="width: 90%; margin: 0 auto; padding-bottom: 5px"
alt="To add our app, tap the menu icon followed by 'Add to Homescreen'."></div>
<script src="/add2homescreen/add2homescreen.js"></script>
<!-- END add2homescreen Code -->
</head>
<body>
</body>
</html>