-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlt.html
46 lines (44 loc) · 2.28 KB
/
lt.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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<script type="text/javascript">
(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_kgqLAcYtkfAoElrtaE7AzpelDBorJ5GB');
function sendSMS(form) {
var phone = form.phone.value;
var linkData = {
tags: [],
channel: 'Website',
feature: 'TextMeTheApp',
data: {
'$custom_sms_text': 'Take a look at the LT app {{ link }}', // feel free to change
'$og_title': 'Food Network Kitchen',
'$og_description': 'LIVE cooking classes & recipes',
'$og_image_url': 'https://cdn.branch.io/branch-assets/journeys/682230360871817951/banner-1024x1024_FNK_iOS_Icon-1571428363117.png',
'$deeplink_path': 'LendingTree://navigate/offers/personal' // controls where the app will open to, leave this parameter out to open to homepage
}
};
var options = {};
var callback = function(err, result) {
if (err) {
alert("Sorry, something went wrong.");
}
else {
alert("SMS sent!");
}
};
branch.sendSMS(phone, linkData, options, callback);
form.phone.value = "";
}
</script>
</head>
<body>
Send SMS
<form onsubmit="sendSMS(this); return false;">
<input id="formData.PhoneNumber" name="phone" type="tel" placeholder="Phone Number" />
<br/>
<input type="submit"/>
</form>
</body>
</html>