-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
612 lines (584 loc) · 24.7 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
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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<title>Starter Template for Bootstrap</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/css/bootstrap.min.css">
<style type="text/css">
.btn-green {
background-color: rgba(195, 23, 40, 0.89);
color: #fff;
border-radius: 0px;
padding: 10px 16px;
font-size: 18px;
line-height: 1.33;
}
.btn-green:hover, .btn-green:focus {
background-color: rgba(195, 23, 40, 1);
color: #fff;
padding: 10px 16px;
font-size: 18px;
line-height: 1.33;
}
.btn {
border-radius: 0px;
}
.panel-footer {
padding: 0 15px;
border:none;
text-align: right;
background-color: #fff;
}
.panel-body {
text-align: left!important;
font-size: larger;
}
.navbar {
position: relative;
min-height: 50px;
margin-bottom: 0px;
border: 1px solid transparent;
padding-bottom: 20px;
}
h5, h5 {
font-size: 24px;
}
@media (min-width: 768px) {
.navbar-nav>li>a {
padding-top: 30px;
padding-bottom: 15px;
}}
.jumbotron {
margin-bottom: 30px;
color: #efefef;
background-color: #901c28;
}
.mt-0 {
margin-top: 0 !important;
}
.mt-1 {
margin-top: .25rem !important;
}
.mt-2 {
margin-top: .5rem !important;
}
.mt-3 {
margin-top: 1rem !important;
}
.mt-4 {
margin-top: 1rem !important;
}
.mt-5 {
margin-top: 3rem !important;
}
.mb-0 {
margin-bottom: 0 !important;
}
.mb-1 {
margin-bottom: .25rem !important;
}
.mb-2 {
margin-bottom: .5rem !important;
}
.mb-3 {
margin-bottom: 1rem !important;
}
.ml-0 {
margin-left: 0 !important;
}
.ml-1 {
margin-left: .25rem !important;
}
.ml-2 {
margin-left: .5rem !important;
}
.ml-3 {
margin-left: 1rem !important;
}
.mr-0 {
margin-right: 0 !important;
}
.mr-1 {
margin-right: .25rem !important;
}
.mr-2 {
margin-right: .5rem !important;
}
.mr-3 {
margin-right: 1rem !important;
}
.mx-0 {
margin-right: 0 !important;
margin-left: 0 !important;
}
.mx-1 {
margin-right: .25rem !important;
margin-left: .25rem !important;
}
.mx-2 {
margin-right: .5rem !important;
margin-left: .5rem !important;
}
.mx-3 {
margin-right: 1rem !important;
margin-left: 1rem !important;
}
.my-0 {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.my-1 {
margin-top: .25rem !important;
margin-bottom: .25rem !important;
}
.my-2 {
margin-top: .5rem !important;
margin-bottom: .5rem !important;
}
.my-3 {
margin-top: 1rem !important;
margin-bottom: 1rem !important;
}
/* PADDING */
.pt-0 {
padding-top: 0 !important;
}
.pt-1 {
padding-top: .25rem !important;
}
.pt-2 {
padding-top: .5rem !important;
}
.pt-3 {
padding-top: 1rem !important;
}
.pb-0 {
padding-bottom: 0 !important;
}
.pb-1 {
padding-bottom: .25rem !important;
}
.pb-2 {
padding-bottom: .5rem !important;
}
.pb-3 {
padding-bottom: 1rem !important;
}
.pl-0 {
padding-left: 0 !important;
}
.pl-1 {
padding-left: .25rem !important;
}
.pl-2 {
padding-left: .5rem !important;
}
.pl-3 {
padding-left: 1rem !important;
}
.pr-0 {
padding-right: 0 !important;
}
.pr-1 {
padding-right: .25rem !important;
}
.pr-2 {
padding-right: .5rem !important;
}
.pr-3 {
padding-right: 1rem !important;
}
.px-0 {
padding-right: 0 !important;
padding-left: 0 !important;
}
.px-1 {
padding-right: .25rem !important;
padding-left: .25rem !important;
}
.px-2 {
padding-right: .5rem !important;
padding-left: .5rem !important;
}
.px-3 {
padding-right: 1rem !important;
padding-left: 1rem !important;
}
.py-0 {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.py-1 {
padding-top: .25rem !important;
padding-bottom: .25rem !important;
}
.py-2 {
padding-top: .5rem !important;
padding-bottom: .5rem !important;
}
.py-3 {
padding-top: 1rem !important;
padding-bottom: 1rem !important;
}
.py-4 {
padding-top: 1.5rem !important;
padding-bottom: 1.5rem !important;
}
.py-5 {
padding-top: 2.25rem !important;
padding-bottom: 2.25rem !important;
}
.pa-0 {
padding-top: 0 !important;
padding-bottom: 0 !important;
padding-right: 0 !important;
padding-left: 0 !important;
}
.pa-1 {
padding-top: .25rem !important;
padding-bottom: .25rem !important;
padding-right: .25rem !important;
padding-left: .25rem !important;
}
.pa-2 {
padding-top: .5rem !important;
padding-bottom: .5rem !important;
padding-right: .5rem !important;
padding-left: .5rem !important;
}
.pa-3 {
padding-top: 1rem !important;
padding-bottom: 1rem !important;
padding-right: 1rem !important;
padding-left: 1rem !important;
}
.navbar {
position: relative;
min-height: 70px;
margin-bottom: 0px;
border: 1px solid transparent;
font-size: larger;
}
label {
padding-bottom: 8px;
padding-top: 8px;
}
.grey-bk {
background-color: #eeeeee;
}
</style>
</head>
<body>
<header>
<nav class="navbar navbar-default ">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html"><img src="http://d3n8a8pro7vhmx.cloudfront.net/labourleave/sites/1013/meta_images/original/labour-future-logo-website-png.png?1506101884" class="img-responsive" width="90%"></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Login</a></li>
<li><a href="thank_you.html">Thank you page</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Account <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Account details</a></li>
<li><a href="#">Surveys</a></li>
<li><a href="#">Privacy</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Labour Future Website</a></li>
<li><a href="#">Labour Future Facebook</a></li>
</ul>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
</header>
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<div class="container">
<h1 class="display-3 py-5">We want <strong>your</strong> opinion</h1>
<p>We are proud to launch our brand new survey website. From here you can get involved with grassroots and the digital Labour movement. Contribute to how the party will define itself over the next 50 years, help shape the party so it's more inclusive, diverse, welcoming and open. Build a party, for the many and not the privileged few. Help build a party for you.</p>
<p>Please login or create an account below</p>
<form class="form-inline">
<div class="form-group">
<label for="email">Email address:</label>
<input type="email" class="form-control" id="email" placeholder="Enter valid email">
</div>
<div class="form-group">
<label for="pwd">Password:</label>
<input type="password" class="form-control" id="pwd" placeholder="Enter password">
</div>
<div class="checkbox">
<label><input type="checkbox"> Remember me</label>
</div>
<button type="submit" class="btn btn-default"><i class="fa fa-sign-in" aria-hidden="true"></i> Login</button>
<button type="submit" class="btn btn-success"><i class="fa fa-plus" aria-hidden="true"></i> Create account</button>
</form>
</div>
</div>
<div class="container">
<div class="row mt-4">
<div class="col-md-8 p-2">
<p class="lead">Labour Future now has an enormous online presence and is making a tremendous contribution to campaigning for the Labour Party and for the next Labour government. Labour Future has been operating for just over a year and has grown at a rapid pace. We now need to take a step back and look at our operation and how we can improve to ensure we provide the service our supporters want and that we deliver increased support for the Labour Party by contributing to policy development and innovative campaigning techniques.</p>
<p class="lead">To that end we have created the supporters survey which we would like you to complete. Tell us how you would like Labour Future to develop. Let us know what campaigns you think we should be prioritising to build support for the Party. Give your views on how we can involve members and supporters in our internal processes and in campaigning.</p>
<p class="lead">Labour has made enormous progress over the past year or so. As the Tories continue to make a mess of the Brexit negotiations, and their domestic policy programme continues to unravel day by day we need to ensure as Labour Party supporters that we are best placed to win the next general election and to build a more progressive Britain for the many and not just the few.</p>
<br />
<button class="btn btn-green btn-lg"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> Start Survey</button>
</div>
<div class="col-md-4 p-2 mt-5">
<img src="http://cdn2.alphr.com/sites/alphr/files/2017/09/jeremy_corbyn_wants_a_future_labour_government_to_tax_robots_-_1.jpg" class="img-responsive">
<br /><br />
<img src="http://www.telegraph.co.uk/content/dam/news/2016/06/14/Jeremy_Corbyn_C_poses_for_a_group_photo_with_ot-xlarge_trans_NvBQzQNjv4BqF4WwDpbO-CkdHTTCi9TWzn18KT_4_FMA2v0i2DTR8eY.jpg" class="img-responsive">
</div>
</div>
<div class="row">
<div class="col-md-12 pa-3 text-left">
<small>[HIDDEN UNLESS LOGGED IN]</small><h1>Begin the survey here</h1>
<div id="surveyContainer"></div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id="surveyResult"></div><small>[END]</small>
</div>
</div>
</div>
<footer>
<div class="container-fluid mt-5 grey-bk pt-3">
<div class="container">
<div class="row">
<div class="col-md-12">
<p><small>Copyright 2017 | <a href="#">Labour Future</a> | <a href="#">Privacy</a> | <a href="#">Terms</a> | </small></p>
</div>
</div>
</div>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="https://surveyjs.azureedge.net/0.12.32/survey.jquery.min.js"></script>
<script type="text/javascript">
Survey.Survey.cssType = "bootstrap";
Survey.defaultBootstrapCss.navigationButton = "btn btn-green";
var myCss = {
matrix: {root: "table table-striped"},
navigationButton: "button btn-lg"
};
var surveyJSON = {
pages: [
{
elements: [
{
type: "checkbox",
choices: [
"Facebook Follower ",
"Labour Future Member",
"Email Subscriber",
"Local / National Organiser ",
"Social media advocate ",
"Have attended Labour Future events and/or rallies",
"Volunteered with Labour Future during the 2017 general election"
],
name: "How are you currently involved with Labour Future? "
}
],
name: "page1"
},
{
elements: [
{
type: "checkbox",
choices: [
"Build innovative digital campaign tools and prepare for a snap general election, campaigning for the Labour Party",
"Create an internal constitution, allowing members to become democratically involved within Labour Future, ensuring everyone can contribute",
"Supporting a small number of crowdsourced campaigns with a view to amend the law or enact a policy: examples of these would be making the NHS public and/or offering better justice for victims of violence? ",
"Helping members become more active within the Labour Party",
"Build a future Labour candidates program ",
"Become a resource for education, both political and digital ",
"Complete in-depth policy research, helping the Labour Party to hold the government to account",
"Become distinct from the Labour Party and champion our own crowdsourced policy initiatives and campaigns",
"Other (please specify)"
],
name: "What should be the focus of Labour Future over the next 12-18 months"
}
],
name: "page2"
},
{
elements: [
{
type: "checkbox",
choices: [
"Fundraising - helping the local party generate more funds",
"Campaign support, both digital and traditional ",
"Crowdsource ideas and the mood from local CLPS with regular reachout meet ups and digital surveys",
"Build a CLP mobile application, meaning all members can stay in touch with each other instantly",
"Partner with groups such as Momentum and Progress, helping reach over the political divides within our party ",
"Provide digital support to help increase volunteers and volunteer management ",
"Provide detailed activism training ",
"Become the ear of the Labour Party, listening to members and ensuring our views are heard at the top of the party",
"Other (please specify)"
],
choicesOrder: "random",
name: "How can Labour Future better support the local Labour Party (CLPs)",
title: "How can Labour Future better support the local Labour Party (CLPs)"
}
],
name: "page3"
},
{
elements: [
{
type: "radiogroup",
name: "How should Labour Future be developed as an organisation? ",
title: "How should Labour Future be developed as an organisation? ",
choices: [
"Internally with the current Labour Future team",
"Through crowdsourcing the ideas of our members and following their wishes where practical and reasonable? One member, one vote",
"Building Labour Future as a democratic organisation with full membership involvement in key decisions",
"Or a combination of all of the above ensuring members have a say on key decisions and issues. ",
"Other (please specify)"
]
}
],
name: "page4"
},
{
elements: [
{
type: "radiogroup",
name: "How should internal democracy be managed with Labour Future? ",
title: "How should internal democracy be managed with Labour Future? ",
choices: [
"One member, one vote on elections and decisions",
"Labour Future elects our own delegates through one member and one vote, these delegates then manage the day to day democracy of Labour Future.",
"Other (please specify)"
]
}
],
name: "page5"
},
{
elements: [
{
type: "radiogroup",
name: "Would you like to be more involved with Fundraising and how this money is spent? ",
title: "Would you like to be more involved with fundraising and how this money is spent? ",
choices: [
"Yes - all members should decide how the budgets are spent, one member, one vote",
"Only delegates should influence how fundrasing is managed and spent",
"The members should decide on the top level items they would like to support, such as specific campaigns, and Labour Future team must manage these budgets ensure priorities are maintained"
]
}
],
name: "page6"
},
{
elements: [
{
type: "radiogroup",
name: "Should Labour Future deploy in each and every CLP so that we are presented nationally and so that all members can benefit from the Labour Future offering? ",
title: "Should Labour Future deploy in each and every CLP so that we are presented nationally and so that all members can benefit from the Labour Future offering? ",
choices: [
"Yes",
"No",
"Don't know"
]
}
],
name: "page7"
},
{
elements: [
{
type: "comment",
name: "What would you like to see Labour Future do different and any other information you would like to let us know? ",
title: "What would you like to see Labour Future do different and any other information you would like to let us know? "
}
],
name: "page8"
},
{
elements: [
{
type: "matrixdropdown",
choices: [
1,
2,
3,
4,
5
],
columns: [
{
name: "Column 1",
title: "Preference 1",
choices: [
"Making the NHS 100% Public, and improve the working conditions",
"Ending violence in our society with a hard line approach to those who commit multiple violent offenses",
"Brexit - Getting the best deal for the UK",
"Animal Welfare, Ivory Markets, Hunting and Animal Cruelty ",
"Ending Child Poverty in the UK",
"Working to end the Housing Crisis ",
"Social Mobility, making society fairer ",
"Rebalancing the UK Economy, growing manufacturing and increasing productivity"
],
cellType: "dropdown"
},
{
name: "Column 2",
title: "Preference 2",
choices: [
"Making the NHS 100% Public, and improve the working conditions",
"Ending violence in our society with a hard line approach to those who commit multiple violent offenses",
"Brexit - Getting the best deal for the UK",
"Animal Welfare, Ivory Markets, Hunting and Animal Cruelty ",
"Ending Child Poverty in the UK",
"Working to end the Housing Crisis ",
"Social Mobility, making society fairer ",
"Rebalancing the UK Economy, growing manufacturing and increasing productivity"
],
cellType: "dropdown"
}
],
name: "Please vote for your two favourite campaigns; the ones you think Labour Future could have the most impact with",
rows: [
"Campaigns"
],
title: "Please vote for your two favourite campaigns; the ones you think Labour Future could have the most impact with"
}
],
name: "page9"
}
],
sendResultOnPageNext: true
}
function sendDataToServer(survey) {
survey.sendResult('4caea12a-a7e7-404c-9c1b-dad8b01cd726');
}
var survey = new Survey.Model(surveyJSON);
$("#surveyContainer").Survey({
model: survey,
onComplete: sendDataToServer
});
</script>
</body>
</html>