This repository has been archived by the owner on Jul 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
embed.html
113 lines (92 loc) · 2.26 KB
/
embed.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
<!DOCTYPE html>
<html>
<head>
<title>Polis Embed Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.banner {
background-color: #ccc;
border-radius: 3px;
height: 80px;
width: 620px;
margin-top: 40px;
margin-left: 10px;
margin-right: 10px;
margin-bottom: 40px;
}
.paragraph {
background-color: #ddd;
border-radius: 3px;
height: 20px;
width: 620px;
margin-top: 20px;
margin-left: 10px;
margin-right: 10px;
}
.last-line {
width: 100px;
}
.spacer {
height: 20px;
}
</style>
</head>
<body style="width: 100%">
<script>
var polis = window.polis = window.polis || {};
polis.on = polis.on || {};
polis.on.resize = [
function(o) {
var iframe = o.iframe;
var data = o.data;
// Here's where you can do something with the resize event
console.dir(data);
return false; // Return true to prevent default resize handler found in https://pol.is/embed.js
}
];
</script>
<div style="width: 620px; margin: auto;">
<div class="banner"></div>
<div class="paragraph"></div>
<div class="paragraph"></div>
<div class="paragraph"></div>
<div class="paragraph"></div>
<div class="paragraph"></div>
<div class="paragraph last-line"></div>
<div class="spacer"></div>
<div class="paragraph"></div>
<div class="paragraph"></div>
<div class="paragraph"></div>
<div class="paragraph"></div>
<div class="paragraph"></div>
<div class="paragraph last-line"></div>
<div class="spacer"></div>
<!--
data-ucv="0"
data-ucw="0"
data-ucst="0"
data-ucsd="0"
data-ucsv="1"
data-show_vis="false"
data-auth_needed_to_vote="true"
data-auth_needed_to_write="false"
data-auth_opt_fb="true"
data-auth_opt_tw="false"
data-auth_opt_allow_3rdparty="true"
-->
<div
class="polis"
data-border="none"
data-border_radius="0px";
data-padding="0px";
data-width="320px"
data-ucsf="0"
data-ui_lang="fr"
data-conversation_id="2arcefpshi"
data-build="2018_2_9_10_52_2_430c032"
>
</div>
</div>
<script async="true" src="https://pol.is/embed.js"></script>
</body>
</html>