-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (43 loc) · 988 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>My Iframe</title>
<style>
.tnc {
font-size: 24px;
text-align: center;
margin-bottom: 20px;
}
.button {
background-color: #2874f0; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 20px;
margin: 4px 2px;
cursor: pointer;
margin: auto;
display: block;
}
</style>
</head>
<body>
<div class="tnc"> TnC to come here.</div>
<button type="button" class="button">
Agree and Continue
</button>
<script type="text/javascript">
var target_origin = "https://mohitjaindev.github.io";
var message = {
type: "tnc_accepted",
data: "TnC Accepted"
};
document.querySelector("button").onclick = function() {
parent.postMessage(message, "*");
};
</script>
</body>
</html>