-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
91 lines (76 loc) · 1.98 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
91
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<title>Mark's test site</title>
<meta name="description" content="Testing Glia scripts">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#fafafa">
<style>
* {
box-sizing: border-box;
}
body {
margin: 0;
background-color: #ffffff;
height: 100%
}
.mobile-only{
display: none;
}
@media(max-width: 1200px) {
body {
background-color: lightblue;
}
.mobile-only{
display: block;
}
.normal-only{
display: none;
}
}
/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
.column {
flex: 50%;
max-width: 50%;
}
}
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
.column {
flex: 100%;
max-width: 100%;
}
}
.spacer {
aspect-ratio: 900/600;
width: 100%;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
.layer1 {
position: absolute;
bottom: 0;
background-image: url('./waves.svg');
}
</style>
</head>
<body>
<h1>Welcome to Mark's test site!</h1>
<a href="/">Navigate</a>
<h2 class="mobile-only">This is Mobile view!</h2>
<h2 class="normal-only">This is Wide view!</h2>
<div class="spacer layer1"></div>
<script>
//Read idtoken from query parameter with the same name.
const params = new Proxy(new URLSearchParams(window.location.search), {
get: (searchParams, prop) => searchParams.get(prop),
});
const idToken = params.idtoken;
window.getGliaContext = () => ({ idToken });
</script>
<script async src="//api.beta.salemove.com/salemove_integration.js"></script>
</body>
</html>