-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcarvana-test.html
47 lines (42 loc) · 1.77 KB
/
carvana-test.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
<!DOCTYPE html>
<html>
<head>
<title>Carvana test</title>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MMK9Q5');</script>
<!-- End Google Tag Manager -->
<script>
function pushHistoryState(name) {
const state = { 'page_id': name};
const title = 'New state: ' + name;
const url = '/'+name;
history.pushState(state, title, url);
}
// Push some state immidiatly.
pushHistoryState('procurement/transfer-method');
function changeHash() {
location.hash= '#lol=pop';
}
</script>
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MMK9Q5"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<h1>Carvana test</h1>
<a href="/index.html">Go to home pge</a>
<button class="button" onclick="pushHistoryState('procurement/trade-in/get-value')">History change event 'trade-in'</button>
<button class="button" onclick="pushHistoryState('procurement/payment-options/type')">History change event 'payment-options'</button>
<button class="button" onclick="changeHash()">Change hash</button>
<a href="/?new=param">Hash change</a>
<div style="height: 300px; width: 100%; overflow: auto">
<div style="height: 400%; width: 100%">
</div>
</div>
</body>
</html>