-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflyer.html
292 lines (251 loc) · 7.24 KB
/
flyer.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<head>
<title> mcatee.io - Mutual Aid Flyer Template</title>
<style>
body{
font-family: Arial;
}
.outerContainer{
width: 100%;
min-height:50vh;
height:90%;
margin-top: 5%;
background-color: #e0e0e0;
border-radius: 25px;
border: #a6a6a6 5px solid;
overflow:hidden;
display: flex;
flex-direction: column;
}
.headerContainer{
flex-direction: row;
display:flex;
color: white;
overflow:hidden;
position:relative;
background-color: #a6a6a6;
padding-bottom:25px;
padding-top:25px
}
.headerHello{
flex: 1.5;
padding-left: 50px;
border-radius: inherit;
font-size: 3em;
}
.headerExplainer{
flex: 7;
border-radius: inherit;
padding-left:20px;
font-size: 25px;
}
.fieldSection{
flex-direction: column;
display: flex;
width:100%;
background-color: white;
}
.field{
font-size:1.5em;
border-bottom: #e0e0e0 dotted;
padding: 10px;
padding-top:20px;
padding-bottom:20px;
flex-direction: row;
display: flex;
}
.reachOutMessage{
font-size:1.2em;
background-color: #cacaca;
padding:25px;
}
.actionItemContainer{
display: flex;
flex-direction: row;
background-color: white;
}
.actionItemColumn{
display: flex;
flex-direction: column;
flex:1;
padding-left:40px;
padding-right:40px;
}
.actionItem{
font-size: 1.2em;
padding-top:10px;
padding-bottom: 10px;
}
.footerSections{
display: flex;
flex-direction: row;
flex:1;
}
.groups{
display: flex;
flex-direction: column;
flex:1;
padding:15px;
font-size: 1.3em;
height:100%;
}
.whatIsMutualAid{
flex:1;
padding:15px;
background-color: #e6e6e6;
}
.whatIsMutualAidTitle{
font-size:1.2em;
}
.whatIsMutualAidExplainer{
font-size: 1em;
}
.answer{
flex:1;
margin-left:20px;
font-style:italic;
}
.groupList{
flex:1;
display: flex;
flex-direction: column;
padding-top:10px;
}
.groupItem{
flex:1;
}
#invisibleMirror{
display: none;
}
.pageExplainer{
width: 100%;
padding:25px;
}
@media print{
#invisibleMirror{
display: block;
}
.pageExplainer{
display: none !important;
}
}
</style>
</head>
<body>
<div class="pageExplainer">
<strong>Hey!</strong><br/>
Thanks for checking out this flyer - if it suits your purposes, please fill it out and drop it in some mailboxes near you! Together we can survive COVID-19 and come out as a stronger, more resilient community.<br/><br/>
All fields are editable, and the '<emph>My name/phone number/email address/etc</emph>' text fields have an empty editable spot to the right to put in your details. <br/><br/>
Please let me know about any bugs or potential improvements here: <a href="mailto:tom+mutualAidFlyer@mcatee.io">tom+mutualAidFlyer@mcatee.io</a>. </br><br/>
To print this off, please ensure you toggle 'print background images and colours' in your print dialog. Each 'copy' of the flyer has two flyers, so to save paper you can print two copies off on the same A4 sheet. <br/><br/>
In solidarity, <br/>
Tom (Secretary of the IWW Adelaide GMB and co-organiser of the Adelaide Free Skool)<br/><br/>
P.S. Please note this text you're reading won't be printed (:
</div>
<div id="form" class="outerContainer">
<div class="headerContainer">
<div contenteditable="true" class="headerHello">
Hello!
</div>
<div contenteditable="true" class="headerExplainer">
If you're self-isolating or at risk of a coronavirus (COVID-19) infection, I can help!
</div>
</div>
<div class="fieldSection">
<div id="nameField" class="field">
<div class="label" contenteditable="true"> My name is</div>
<div contenteditable="true" class="answer"></div>
</div>
<div id="localeField" class="field">
<div class="label" contenteditable="true"> I live locally at</div>
<div contenteditable="true" class="answer"></div>
</div>
<div id="phoneField" class="field">
<div class="label" contenteditable="true"> My phone number is</div>
<div contenteditable="true" class="answer"></div>
</div>
<div id="emailField" class="field">
<div class="label" contenteditable="true"> My email address is</div>
<div contenteditable="true" class="answer"></div>
</div>
</div>
<div class="reachOutMessage" contenteditable="true">
If you need help in your self-isolation, please reach out by calling, texting, or emailing me using the contact details above! <br/>Our group of community volunteers can help out with:
</div>
<div class="actionItemContainer">
<div class="actionItemColumn">
<div class="actionItem" contenteditable="true">
Picking Up Shopping
</div>
<div class="actionItem" contenteditable="true">
Walking Dogs
</div>
<div class="actionItem" contenteditable="true">
Posting Mail
</div>
<div class="actionItem" contenteditable="true">
Cooking a Meal
</div>
</div>
<div class="actionItemColumn">
<div class="actionItem" contenteditable="true">
Transport
</div>
<div class="actionItem" contenteditable="true">
Friendly Phone Calls
</div>
<div class="actionItem" contenteditable="true">
</div>
<div class="actionItem" contenteditable="true">
</div>
</div>
</div>
<div class="footerSections">
<div class="groups">
<div class="groupsExplainer" contenteditable="true">
If you're on Facebook and are interested in either receiving or giving aid, please consider joining the following groups:
</div>
<div class="groupList">
<div class="groupItem" contenteditable="true">
'CareMongering - Adelaide'
</div>
<div class="groupItem" contenteditable="true">
Group 2
</div>
<div class="groupItem" contenteditable="true">
Group 3
</div>
<div class="groupItem" contenteditable="true">
'Anti-Poverty Network SA'
</div>
</div>
</div>
<div class="whatIsMutualAid">
<div class="whatIsMutualAidTitle">
<strong contenteditable="true">What is Mutual Aid?</strong>
</div>
<div class="whatIsMutualAidExplainer" contenteditable="true">
Mutual Aid is the idea that when we work together as a community we all benefit.<br/>
Mutual Aid is taking responsibility for <em>everyone</em> through direct action rather than symbolic acts or relying on politicians or the state.<br/><br/>
If you're able, fill out and distribute this flyer ( <a href="http://mcatee.io/flyer.html">http://mcatee.io/flyer.html</a> ) and create mutual aid groups to support your neighbourhood and communities (especially those who don't have access to Facebook and the groups on there!)
</div>
</div>
</div>
</div>
<div id="invisibleMirror" style="page-break-before: always"></div>
</body>
<script type="text/javascript">
document.addEventListener("input", () => {
console.log("Changed detected");
console.log("Removing old elements...");
const myNode = document.getElementById("invisibleMirror");
while (myNode.firstChild) {
myNode.removeChild(myNode.lastChild);
}
//Clone existing one
const original = document.getElementById("form");
const copy = original.cloneNode(true);
myNode.appendChild(copy);
})
var event = new Event('input');
document.dispatchEvent(event);
</script>