forked from flaredragon/hackvsit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.mustache.html
39 lines (39 loc) · 944 Bytes
/
index.mustache.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
<!DOCTYPE html>
<html>
<head>
<title>Scraps</title>
<style>
body {
font-family: Helvetica, Arial, sans-serif;
}
</style>
<script src="https://apps-static.flock.co/js-sdk/0.1.0/flock.js"></script>
</head>
<body>
<h3>{{event.chatName}}</h3>
{{#list.length}}
<ul>
{{#list}}
<li>{{{.}}}</li>
{{/list}}
</ul>
{{/list.length}}
{{^list.length}}
<p>No scraps for you</p>
{{/list.length}}
<script>
console.log('test test');
Array.prototype.slice.call(document.querySelectorAll('body a')).forEach(function (a) {
console.log('Working on anchor tag');
console.log(a);
a.addEventListener('click', function (e) {
console.log('event is');
console.log(e);
e.preventDefault();
flock.openBrowser(e.target.href);
return false;
});
});
</script>
</body>
</html>