-
Notifications
You must be signed in to change notification settings - Fork 0
/
gtm-example.html
70 lines (70 loc) · 3.21 KB
/
gtm-example.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
<!DOCTYPE html>
<html>
<head>
<title> Marvel & DC Comics Superheroes </title>
<link rel="stylesheet" href="styles.css">
<script src="code.js"></script>
<script src="branch-utils.js"></script>
<script type="module" src="character.js"></script>
<script type="module" src="utils.js"></script>
<meta http-equiv='cache-control' content='no-cache'>
<meta http-equiv='expires' content='0'>
<meta http-equiv='pragma' content='no-cache'>
<!-- 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-TTTJCNV');</script>
<!-- End Google Tag Manager -->
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TTTJCNV"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div id="topnav" class="topnav">
<div class="branch-journeys-top" style="display:none;"></div>
<a id="home" class="active" href="#top" onclick="handleHomeButtonClicked()">Home</a>
<a id="marvel" href="#marvel-head" onclick="handleMarvelButtonClicked()">Marvel</a>
<a id="dc" href="#dc-head" onclick="handleDCButtonClicked()">DC</a>
</div>
<div id="list-view">
<h2 id="marvel-head" class="marvel-head">Marvel</h2>
<div id="marvel-body">
<img src='not_found.jpg' id="marvel1">
<img src='not_found.jpg' id="marvel2">
<img src='not_found.jpg' id="marvel3">
<img src='not_found.jpg' id="marvel4">
<img src='not_found.jpg' id="marvel5">
<img src='not_found.jpg' id="marvel6">
<img src='not_found.jpg' id="marvel7">
<img src='not_found.jpg' id="marvel8">
</div>
<h2 id="dc-head" class="dc-head">DC</h2>
<div id="dc-body">
<img src='not_found.jpg' id="dc1">
<img src='not_found.jpg' id="dc2">
<img src='not_found.jpg' id="dc3">
<img src='not_found.jpg' id="dc4">
<img src='not_found.jpg' id="dc5">
<img src='not_found.jpg' id="dc6">
<img src='not_found.jpg' id="dc7">
<img src='not_found.jpg' id="dc8">
</div>
</div>
<div id="detail-view" hidden>
<h1 id="character-name" class="dc-head"></h1>
<img src='' id="character-image">
<img src='' id="qr-image">
<div class="grid">
<div><button class="grid-element" onclick="createBranchLink()">Create Deeplink</button></div>
<div><button class="grid-element" onclick="login()">Login</button></div>
<div><button class="grid-element" onclick="logout()">Logout</button></div>
<div><button class="grid-element" onclick="trackEvent()">Track Event</button></div>
<div><button class="grid-element" onclick="toggleTracking()">Toggle Tracking</button></div>
<div><button class="grid-element" onclick="createQRCode()">QR Code</button></div>
</div>
</div>
</body>
</html>