-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdaymaker_page.html
More file actions
57 lines (47 loc) · 1.99 KB
/
daymaker_page.html
File metadata and controls
57 lines (47 loc) · 1.99 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
<!DOCTYPE html>
<html>
<head>
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Daymaker Landing Page</title>
</head>
<body>
<nav>
<div class="nav-wrapper">
<a href="#" class="brand-logo center">Daymaker</a>
</div>
</nav>
<div style="padding:5%">
<div class="row">
<div class="col s12 m6">
<div class="card blue-grey darken-1">
<div class="card-content white-text">
<p id="message"></p>
</div>
<div class="card-action">
<a id="from"></a>
</div>
</div>
<h5 id="discount"></h5>
</div>
</div>
</div>
<!--JavaScript at end of body for optimized loading-->
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script>
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
var messageElem = document.getElementById("message")
var fromElem = document.getElementById("from")
var discountElem = document.getElementById("discount")
messageElem.innerHTML = atob(urlParams.get('msg'))
fromElem.innerHTML = "From " + atob(urlParams.get('frm'))
discountElem.innerHTML = "Discount Code: " + atob(urlParams.get('dscnt'))
</script>
</body>
</html>