-
Notifications
You must be signed in to change notification settings - Fork 0
/
first.html
176 lines (162 loc) · 7.31 KB
/
first.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html>
<html lang="en">
<head type="text/javascript">
<title>[JustinFurstoss]TestApp</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="UTF-8" />
<!-- Branch Init-->
<script type="text/javascript">
var options = {
};
var linkData = {
campaign: 'SMS',
channel: 'Website',
feature: 'Text Me The App',
tags: [],
alias: '',
data: {
'custom_bool': true,
'custom_int': Date.now(),
'gif': 'do-it',
'$og_title': '[JustinFurstoss]TestApp',
'$og_description': 'Branch SDK Test App',
'$og_image_url': 'https://justinfurstossbranch.github.io/gif/do-it.gif'
}
};
(function (b, r, a, n, c, h, _, s, d, k) {
if (!b[n] || !b[n]._q) {
for (; s < _.length;) c(h, _[s++]);
d = r.createElement(a);
d.async = 1;
d.src = "https://cdn.branch.io/branch-latest.min.js";
k = r.getElementsByTagName(a)[0];
k.parentNode.insertBefore(d, k);
b[n] = h
}
})(window, document, "script", "branch", function (b, r) {
b[r] = function () {
b._q.push([r, arguments])
}
}, {
_q: [],
_v: 1
},
"addListener applyCode banner closeBanner creditHistory credits data deepview deepviewCta first getCode init link logout redeem referrals removeListener sendSMS setBranchViewData setIdentity track validateCode"
.split(" "), 0);
branch.init('key_test_kjNVGrmfIScchFcS5tir4jfaDqjRJIbd', options, function (err, data) {
console.log(data)
branch.setBranchViewData(linkData);
});
var callback = function (err, result) {
if (err) {
alert("Sorry, something went wrong.");
} else {
window.location.href = 'https://justinfurstossbranch.github.io/third.html'
alert("SMS sent!");
}
};
var linkOptions = {};
function sendSMS(form) {
console.log(form);
var phone = form.phone.value;
console.log(phone);
console.log(linkData);
branch.sendSMS(phone, linkData, linkOptions, callback);
form.phone.value = "";
}
function createDeepLink() {
branch.link(linkData, function (err, link) {
console.log(link);
if (err) {
alert("Sorry, something went wrong.");
} else {
// window.location.href = 'https://justinfurstossbranch.github.io/third.html'
alert("Deep Link Created!");
}
});
}
function trackEvent() {
}
</script>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<style>
body {
font-family: "Helvetica Neue";
}
</style>
</head>
<body>
<!-- Navbar -->
<div class="w3-top">
<div class="w3-bar w3-white w3-card">
<a class="w3-bar-item w3-button w3-padding-large w3-hide-medium w3-hide-large w3-right"
href="javascript:void(0)" onclick="myFunction()" title="Toggle Navigation Menu"><i
class="fa fa-bars"></i></a>
<a href="index.html" class="w3-bar-item w3-button w3-padding-large">[JUSTINFURSTOSS]TestApp</a>
<a href="index.html" class="w3-bar-item w3-button w3-padding-large w3-hide-small">HOME</a>
<div class="w3-dropdown-hover w3-hide-small">
<button class="w3-padding-large w3-button" title="Sections">
SECTIONS<i class="fa fa-caret-down"></i>
</button>
<div class="w3-dropdown-content w3-bar-block w3-card-4">
<a href="first.html" class="w3-bar-item w3-button">FIRST</a>
<a href="second.html" class="w3-bar-item w3-button">SECOND</a>
<a href="third.html" class="w3-bar-item w3-button">THIRD</a>
</div>
</div>
</div>
</div>
<!-- Navbar on small screens (remove the onclick attribute if you want the navbar to always show on top of the content when clicking on the links) -->
<div id="navigation" class="w3-bar-block w3-white w3-hide w3-hide-large w3-hide-medium w3-top"
style="margin-top:46px">
<a href="index.html" class="w3-bar-item w3-button w3-padding-large" onclick="myFunction()">HOME</a>
<a href="first.html" class="w3-bar-item w3-button w3-padding-large" onclick="myFunction()">FIRST</a>
<a href="second.html" class="w3-bar-item w3-button w3-padding-large" onclick="myFunction()">SECOND</a>
<a href="third.html" class="w3-bar-item w3-button w3-padding-large" onclick="myFunction()">THIRD</a>
</div>
<div class="w3-container w3-content w3-center w3-padding-64" style="max-width:800px" id="about"></div>
<!-- Page content -->
<div class="w3-content" style="max-width:2000px;margin-top:46px">
<!-- LOGO -->
<div class=" w3-display-container w3-center">
<img src="gifs/do-it.gif" style="height:80vmin; width:90vmin" />
<div class="w3-display-bottommiddle w3-container w3-padding-32 w3-hide-small"></div>
<!-- Phone Number Form -->
<form onsubmit="sendSMS(this) ; return false;">
<div class="w3-content" style="max-width:2000px;margin-top:46px">
<input placeholder="Phone Number"
style="background-color:white; border-radius: 8px; border-width: 1px; padding: 14px 40px; color:grey; border-style: solid;"
id="phone" name="phone" type="tel">
<!-- <br>
<input type="submit"> -->
</div>
<div class="w3-button">
<button id="submitPhoneNumber" type="submit" class="w3-wide"
style="background-color:#4da4dc; border-radius: 8px; padding: 14px 40px; color:white;">TEXT THE
APP</button>
</div>
</form>
<!-- end of contact form -->
</div>
<script>
// Used to toggle the menu on small screens when clicking on the menu button
function myFunction() {
var x = document.getElementById("navigation");
if (x.className.indexOf("w3-show") == -1) {
x.className += " w3-show";
} else {
x.className = x.className.replace(" w3-show", "");
}
}
// When the user clicks anywhere outside of the modal, close it
var modal = document.getElementById("ticketModal");
window.onclick = function (event) {
if (event.target == modal) {
modal.style.display = "none";
}
};
</script>
</body>
</html>