-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-page.html
More file actions
185 lines (160 loc) · 4.74 KB
/
Copy pathtest-page.html
File metadata and controls
185 lines (160 loc) · 4.74 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html>
<html>
<head>
<title>TEST PAGE</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Droid+Sans:400,700" rel="stylesheet">
<script>
var customersJSON_example = [
{
"firstName": "John",
"lastName": "Smith",
"age": 25,
"address": {
"streetAddress": "21 2nd Street",
"city": "New York",
"state": "NY",
"postalCode": "10021"
},
"phoneNumber": [
{
"type": "home",
"number": "212 555-1234"
},
{
"type": "fax",
"number": "646 555-4567"
}
]
},
{
"firstName": "Ben",
"lastName": "Jones",
"age": 34,
"address": {
"streetAddress": "432 Smith Street",
"city": "Chicago",
"state": "IL",
"postalCode": "60606"
},
"phoneNumber": [
{
"type": "home",
"number": "847 523-1034"
}
]
}
];
function saySomething(){
console.log('The script tag in the <head> has been fired on ');
console.log('It contains example JSON containing a list of customers');
console.log('and can be accessed via'+'%c var customersJSON_example','color:#345391;font-weight:bold;');
}
document.addEventListener("DOMContentLoaded", saySomething() );
</script>
<style>
#vendorTest {
background-color: yellow;
font-size: 1rem;
color: #333;
padding: 0.5rem;
}
html {
min-height:100%;
position: relative;
}
body {
margin: 0 auto;
padding-bottom: 5vh;
max-width: 1440px;
min-height: 95vh;
box-sizing: content-box;
display: flex;
align-items: center;
flex-direction: column;
/* position: relative; */
font-family: 'Droid Sans', sans-serif;
font-size: 1.5em;
font-size: 2vw;
line-height: 1.5;
background-color: #333;
color: #F2F2F2;
}
cite {
display: block;
text-align: right;
padding: 1em 2em;
}
#main-site-link {
position: absolute;
bottom: 5vh;
left: 0;
width: 100vw;
text-align: center;
color: #2a2a2a;
font-weight: 700;
text-decoration: none;
-webkit-transition: color 200ms ease-out;
transition: color 200ms ease-out;
}
#main-site-link:hover,#main-site-link:focus {
color: #101010;
}
#iOS-testing {
padding: 2rem;
background-color: cyan;
}
#iOS-testing > * {
margin: 2rem;
}
@media screen and (max-width: 768px){
body{ font-size: 16px; }
}
</style>
</head>
<body>
<div id="vendorTest"></div>
<script>
const target = document.getElementById('vendorTest');
var fullNavigatorKeys = [
"vendorSub",
"productSub",
"vendor",
"appCodeName",
"appName",
"appVersion",
"platform",
"product",
"userAgent",
"language",
"doNotTrack"
];
var navigatorKeys = [
"platform",
"userAgent",
"maxTouchPoints"
];
navigatorKeys.forEach((item)=>{
var el = document.createElement('p');
el.innerText = item + ' : ' + window.navigator[item]
target.appendChild(el);
});
const setLocation = (url) => { window.location = url };
</script>
<div id="iOS-testing">
<a href="https://itunes.apple.com/us/app/venmo/id351727428">
https:
</a>
<a href="itms-apps://itunes.apple.com/us/app/venmo/id351727428">
itms-apps
</a>
<button onclick="window.location = 'https://itunes.apple.com/us/app/venmo/id351727428'">
onClick to https
</button>
<button onclick="window.location = 'itms-apps://itunes.apple.com/us/app/venmo/id351727428'">
onClick to itms-app
</button>
</div>
<a id="main-site-link" href="http://www.BriceShatzer.com"> >> BriceShatzer.com</a>
</body>
</html>