forked from compdemocracy/polis
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
82 lines (80 loc) · 2.58 KB
/
index.html
File metadata and controls
82 lines (80 loc) · 2.58 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Polis</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script>
window.domainWhitelist = <%= domainWhitelist %>;
</script>
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.0/css/font-awesome.min.css"> -->
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link
href="https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap"
rel="stylesheet"
/>
</head>
<body class="viewport avenir">
<div id="root"></div>
<script src="/dist/admin_bundle.js"></script>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function () {
FB.init({
appId: "<%= fbAppId %>",
xfbml: true,
version: "v2.1",
});
};
(function (d, s, id) {
var js,
fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {
return;
}
js = d.createElement(s);
js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
// js.src = "//connect.facebook.net/en_US/sdk/debug.js"; // unminified
fjs.parentNode.insertBefore(js, fjs);
})(document, "script", "facebook-jssdk");
</script>
<script>
window.usePlans = <%= usePlans %>;
if (<%= useIntercom %>) {
window.useIntercom = true;
window.initIntercom = function(){
var w=window;var ic=w.Intercom;
if(typeof ic==="function"){
// ic('reattach_activator');
// ic('update',intercomSettings);
}else{
var d=document;
var i=function(){
i.c(arguments)
};
i.q=[];
i.c=function(args){
i.q.push(args)
};
w.Intercom=i;
function l(){
var s=d.createElement('script');
s.type='text/javascript';
s.async=true;
s.src='https://widget.intercom.io/widget/nb5hla8s';
var x=d.getElementsByTagName('script')[0];
x.parentNode.insertBefore(s,x);
}
$(l); // custom - using jQuery's ready listener
}
};
}
</script>
<script>
window.version = "NULL_VERSION";
</script>
</body>
</html>