/
index.html
53 lines (49 loc) · 1.81 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title> Link Test Matrix Smart Banner #1</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<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 setIdentity track validateCode".split(" "), 0);
function branchViewData(viewId) {
var data = {
tags: ['tag1', 'tag2']
};
console.log(JSON.stringify(data));
branch.setBranchViewData(data);
}
branch.init('key_live_gimC2ehxzwjHcbyQzXQxfdmpvzcgkwsC', null, function(err, data) {
branchViewData();
if(data) {
branch.track("websdk_init");
}
});
var listener = function(event) {
console.log("HI THERE:");
}
branch.addListener('willShowBanner', listener);
branch.deepview({
data: {
"$og_title": "Fair And Square",
"deeplink_text": "Created from Smart Banner Test Page",
},
feature: "feature",
channel: "channel",
tags: [ ['tag1'],['tag2'] ],
stage: "stage"
}, {
open_app: true,
make_new_link: false
}, function(err) {
console.log(err || 'no error');
});
//branch.deepviewCta();
</script>
</head>
<body>
<p> BLANK PAGE Key: key_live_gimC2ehxzwjHcbyQzXQxfdmpvzcgkwsC </p>
<a href='https://testbed-swift.app.link/Td7XssHgTB' target="_blank">
CLICK ME PLEASE!!</a>
</body>
</html>