-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
1355 lines (1298 loc) · 62.6 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
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Program Editor</title>
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<!-- jQuery daterangepicker, jQuery timepicker, & Dragula -->
<link href="./dependencies/jquery-daterange-picker/daterangepicker.min.css" rel="stylesheet" />
<link href="./dependencies/jquery-timepicker/jquery.timepicker.css" rel="stylesheet" />
<link href="./dependencies/dragula/dragula.css" rel="stylesheet" />
<!-- Styling: Custom -->
<link href="./styles/main.css?v=2" rel="stylesheet" />
<link href="https://iacr.org/libs/fonts/raleway-regular.css" rel="stylesheet"/>
<link href="https://iacr.org/libs/fonts/open-sans-condensed.css" rel="stylesheet"/>
<style>
.sessionlist {
margin-top: 3px;
margin-bottom: 3px;
}
.session, .tab-content > .active {
background-color: #dee2e6;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
background-color: #dee2e6;
}
.sessionlist .nav-tabs .nav-link {
border-bottom: none;
}
.session:first-child:nth-last-child(1) {
/* -or- .session:only-child { */
width: 100%;
}
/* two sessions */
.session:first-child:nth-last-child(2),
.session:first-child:nth-last-child(2) ~ .session {
width: 50%;
}
/* first session of two. */
.session:first-child:nth-last-child(2) {
margin-right: .35rem;
}
/* second session of two. */
.session:first-child:nth-last-child(2) ~ .session {
margin-left: .35rem;
}
</style>
<!-- Bootstrap scripts -->
<script src="https://iacr.org/libs/js/jquery/3.3.1/jquery.min.js"></script>
<noscript><h1>This tool will not work without javascript.</h1></noscript>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
</head>
<body>
<nav class="navbar navbar-expand navbar-custom" id="topNav" role="navigation">
<div class="container-fluid me-5">
<span class="navbar-brand" id="navBrand">Program Creator</span>
<span class="navbar-text ms-auto" id="save_status"></span>
<ul class="navbar-nav" id="topNavList">
<li role="button" class="nav-item dropdown">
<!-- NOTE/TODO: turns out dropdowns don't have to be anchors (as they did in Bootstrap 3.3); they can be buttons. which I tested and works beautifully with added .btn -->
<a class="nav-link dropdown-toggle" href="#" id="fileDD" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
File
</a>
<div class="dropdown-menu dropdown-menu-end" aria-labelledby="fileDD">
<a id="openMenu" onclick="navigateToHome()" class="dropdown-item">
Open
</a>
<a id="editMetadataMenu" onclick="showEditMetadata();" class="dropdown-item">
Edit name and dates
</a>
<a id="saveMenu" onclick="saveProgram();" class="dropdown-item">
Save (autosave ON)
</a>
<a id="saveAsMenu" onclick="saveAs();" class="dropdown-item">
Save a copy...
</a>
<a id="deleteMenu" onclick="showDeleteProgram();" class="dropdown-item">
Delete from server
</a>
</div>
</li>
<li role="button" class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="downloadDD" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Download
</a>
<div class="dropdown-menu dropdown-menu-end" aria-labelledby="downloadDD">
<a id="downloadMenu" onclick="downloadJSON()" class="dropdown-item">
Download JSON for website
</a>
<!-- <a id="downloadPDFMenu" onclick="showPDFDownload()" class="dropdown-item">
Download PDF for printing
</a> -->
</div>
</li>
<li role="button" class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="importDD" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Import
</a>
<div class="dropdown-menu dropdown-menu-end" aria-labelledby="importDD">
<a id="importTalksMenu" onclick="showImportFSEorCHES(true)" class="dropdown-item">
Import from TCHES or ToSC
</a>
<a id="uploadTalksMenu" onclick="showWebsubrevUpload(true)" class="dropdown-item">
Upload accepted papers
</a>
<a id="importDOIMenu" onclick="startImportDOIs()" class="dropdown-item">
Import paper URLs
</a>
</div>
</li>
<li class="nav-item">
<a target="_help" href="docs/help.html" class="nav-link">
Help
</a>
</li>
<li class="nav-item">
<a target="_help" href="https://github.com/kaymckelly/program-editor" class="nav-link">
About
</a>
</li>
<li role="button" class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="loginDD" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<img src="img/md-person.svg">
</a>
<div class="dropdown-menu dropdown-menu-end" aria-labelledby="loginDD" style="right: 0 !important; left auto !important">
<span class="dropdown-item navbar-text" id="login_status">
Login status unknown
</span>
<a id="loginMenu" onClick="$('#authModal').modal();this.blur()" class="dropdown-item">
Log in
</a>
<a id="logoutMenu" onclick="doLogout()" class="dropdown-item">
Log out
</a>
</div>
</li>
</ul>
</div>
</nav>
<div class="container">
<div id="setupPrompts">
<div class="row">
<section class="col-md-12 setupStep instructions">
<p class="text-justify">
This app allows you to create a program for a conference. The things you need to
get started are the dates of your conference and the list of accepted papers
from HotCRP (you could type those in again, but why bother?). The list of
accepted papers is accessible as a JSON file from the program chair interface.
</p>
<!-- <p class="alert alert-info">
NOTE: for virtual conferences, times should be entered in UTC
</p>-->
</section>
</div>
<!-- Button to trigger login modal -->
<div class="row" id="auth-button">
<div class="col-md-8">
<button type="button" class="btn btn-success btn-lg" data-bs-toggle="modal" data-bs-target="#authModal">
Log in for this app
</button>
</div>
</div>
<div class="row">
<section id="newOrExisting" class="col-12 setupStep">
<p>
If you've been here before, you can edit an existing program. Otherwise, start from a new one. If you open a
program that is owned by
someone else, you cannot overwrite their work but you can save an edited copy to your account.
</p>
<div class="row">
<div class="col-12">
<button type="button" name="newProg" onclick="createNew();this.blur()" class="btn btn-success btn-sm mr-2">
New
</button>
<button type="button" name="existingProg" onclick="editExisting();this.blur()" class="btn btn-success btn-sm">
Existing
</button>
</div>
<!-- <div class="col-md-6">
<input class="form-control input-sm" type="text" placeholder="Search for a program (not yet working)">
</div> -->
</div>
</section>
</div>
<div class="w-75">
<label for="confName">Name of conference</label>
<input type="text" class="form-control my-1" id="confName" placeholder="Keycrypt 2050" required autofocus />
<label for="confType" class="mt-3">Type of conference</label>
<select name="confType" id="confType" class="form-select my-1" required aria-describedby="confTypeHelp" onchange="updateNewForm()">
<option selected disabled></option>
<optgroup label="IACR events">
<option value="asiacrypt">Asiacrypt (banquet + IACR business meeting)</option>
<option value="ches">CHES (banquet)</option>
<option value="crypto">Crypto (beach barbeque + IACR business meeting)</option>
<option value="eurocrypt">Eurocrypt (banquet + IACR business meeting)</option>
<option value="fse">FSE (dinner)</option>
<option value="pkc">PKC</option>
<option value="rwc">RWC (lightning talks)</option>
<option value="tcc">TCC (TCC business meeting)</option>
</optgroup>
<optgroup label="Rump sessions and affiliated events">
<option value="rumpSess">Rump session (split into three parts, 5 minute slots)</option>
<option value="workshop1">One-day affiliated event or workshop</option>
<option value="workshop2">Two-day affiliated event or workshop</option>
</optgroup>
<optgroup label="Non-specific conference types">
<option value="basic3Day">Basic three-day conference</option>
<option value="basic4Day">Basic four-day conference</option>
<option value="basic5Day">Basic five-day conference</option>
</optgroup>
</select><div id="confTypeHelp" class="form-text">
<strong>If you are an IACR event, you must select the applicable type of event.</strong>
All IACR events (with the exception of RWC) by default include a rump session, slots for two
invited talks, and a slot for an awards ceremony unless otherwise noted.
</div>
<label for="numTrack" class="mt-3">Maximum number of parallel tracks</label>
<input type="number" id="numTrack" class="form-control my-1" aria-describedby="numTrackHelp" value="2" />
<div id="numTrackHelp" class="form-text">
Some sessions will still be single track, but you can edit those later.
</div>
<!-- TODO: ideally add default value of now, min val must be now or later -->
<div class="row">
<div class="col">
<label for="startDate" class="mt-3">Start date</label>
<input type="date" id="startDate" class="form-control my-1" />
</div>
<div class="col">
<label for="endDate" class="mt-3">End date</label>
<input type="date" id="endDate" class="form-control my-1" />
</div>
</div>
<div class="row">
<div class="col">
<label for="city" class="mt-3">City</label>
<input type="text" id="city" class="form-control my-1" />
</div>
<!-- TODO: suggest a select as opposed to an input; seems like an easier experience for the user -->
<div class="col">
<label for="country" class="mt-3">Country</label>
<input type="text" id="country" class="form-control my-1" />
</div>
</div>
<div>
</div>
<label for="timezone" class="mt-3">Timezone</label>
<select name="timezone" id="timezone" class="form-select my-1" aria-describedby="timezoneHelp">
<option selected></option>
<!-- TODO: insert timezone names here (from a list), should autopopulate based on city/country/dates -->
</select>
<div id="timezoneHelp" class="form-text">
This is auto-populated based on the dates, city, and country you have entered. You should verify it is
correct. If it is incorrect, you can change it manually.
</div>
<label for="talkUpload" class="mt-3">Upload or select talks</label>
<div class="d-flex justify-content-between my-1">
<button class="btn btn-outline-dark">
Upload from HotCRP
</button>
<button class="btn btn-outline-dark">
Import from TCHES or ToSC
</button>
<button class="btn btn-outline-dark">
Use demo data
</button>
<button class="btn btn-outline-dark">
Skip for now
</button>
</div>
<div id="talkUploadHelp" class="form-text">
This is an optional step and can be an upload from HotCRP
(a JSON file), an import of papers from TCHES or ToSC, or using our demo data.
</div>
<!-- TODO: remove .mb-5 once page is actually put together -->
<div class="nextPrevBtns d-flex mt-3 mb-5">
<button class="btn border border-0 me-2">
<img src="img/arrow-left.svg" alt="previous">
</button>
<button class="btn border border-0">
<img src="img/arrow-right.svg" alt="next">
</button>
</div>
</div>
<div class="row">
<section id="versionPicker" class="col-12 setupStep">
<table class="table table-bordered" id="versionList">
<tr>
<th>Name</th>
<th>Owner</th>
<th>Last modified</th>
<!-- <th><button type="button" class="btn btn-sm btn-disabled">Delete selected</button></th>-->
</tr>
</table>
</section>
</div>
<div id="templateSelector">
<div class="row">
<section class="col-7 setupStep">
<select id="templateSelect" class="form-select input-sm" onchange="getConfig(this.value, false)">
<option value="" disabled selected>
Select a template to get started (you can change things later)
</option>
<option value="./json/dualhybrid.json">
Virtual conference (4 days, dual track)
</option>
<option value="./json/three_tracks.json">
Four days, three tracks
</option>
<option value="./json/virtual_5day.json">
Virtual conference (5 days, single track)
</option>
<option value="./json/crypto_config.json">
Crypto (5 days, dual track, bbq)
</option>
<option value="./json/ec_config.json">
Eurocrypt/Asiacrypt (5 days, dual track, banquet)
</option>
<option value="./json/pkc_config.json">
CHES/FSE/PKC/TCC (4 days, single track)
</option>
<option value="./json/basic_1day.json">
Basic one-day workshop
</option>
<option value="./json/basic_2day.json">
Basic two-day workshop
</option>
<option value="./json/basic_3day.json">
Basic three-day conference
</option>
<option value="./json/dualtrack_5day.json">
Dual track, five days
</option>
<option value="./json/rump_session.json">
Rump Session (3 sessions, 30 minutes/session)
</option>
</select>
</section>
</div>
</div>
<div id="nameEntry">
<div class="row">
<section class="col-7 setupStep">
<label for="inputName">
Enter a name for the conference program.
</label>
<div class="d-flex">
<input type="text" name="inputName" id="inputName" class="form-control" />
<button type="button" name="addName" onclick="addName()" class="btn btn-sm btn-success ml-2">
Next
</button>
</div>
</section>
</div>
</div>
<div class="row">
<section id="timezonePicker" class="col-7 setupStep">
<label for="timezone">
Choose a timezone.
</label>
<select class="form-select col-6" id="timezone"></select>
</section>
</div>
<div class="row">
<section id="datePicker" class="mt-3 col-7 setupStep">
<p>
Choose the start and end date for your conference.
</p>
<div class="row">
<div class="col-8 d-flex">
<label for="startdate" class="col-form-label">From</label>
<input type="text" id="startdate" name="startdate" class="form-control mx-2" />
<label for="enddate" class="col-form-label">to</label>
<input type="text" id="enddate" name="enddate" class="form-control ml-2" />
</div>
</div>
</section>
</div>
<button type="button" id="datesButton" onclick="showUploadTalks()" class="btn btn-sm btn-success">Set dates & timezone</button>
<div class="row">
<section id="uploadTalks" class="col-12 form-group">
<p>
Next, specify the list of accepted papers. This can be an upload from HotCRP
(a JSON file), or you can import accepted papers from TCHES or ToSC.
You can do this later if you like.
</p>
<button type="button" name="showUpload" onclick="showWebsubrevUpload(false)" class="btn btn-sm btn-success mr-2">
Upload accepted papers
</button>
<button type="button" name="showImport" onclick="showImportFSEorCHES(false)" class="btn btn-sm btn-success mr-2">
Import from ToSC or TCHES
</button>
<button type="button" name="skipUpload" onclick="useEmptyTalks()" class="btn btn-sm btn-success mr-2">
Skip for now
</button>
<button type="button" name="useDemoTalks" onclick="useDemoTalks()" class="btn btn-sm btn-success">
Use demo data
</button>
</section>
</div>
</div>
</div>
<div class="container-fluid">
<main id="parent" class="mt-4">
<div class="row">
<div class="col-md-3">
<h3 class="text-center editorTitles">
Unscheduled Talks
<label data-bs-toggle="tooltip" title="Add a talk" data-bs-placement="top" data-bs-trigger="hover" tabindex="0">
<span class="addicon"><img src="img/add.svg" onclick="showTalkEditor('')"></span>
</label>
</h3>
</div>
<div class="col-md-9">
<h3 class="text-center editorTitles">
Schedule
<label data-bs-toggle="tooltip" title="Edit dates" data-bs-placement="top" data-bs-trigger="hover" tabindex="0">
<span class="addicon"><img src="img/add.svg" onclick="showEditMetadata()"></span>
</label>
</h3>
</div>
</div>
<!-- This is a handlebars partial that can be used in two places to display a talk. -->
<script id="talk-partial" type="text/x-handlebars-template">
<div class="talk" id="{{id}}">
<a class="editButton float-end" onclick="showTalkEditor('{{id}}')">
<label data-bs-toggle="tooltip" title="Edit the talk" data-bs-placement="top" data-bs-trigger="hover" tabindex="0">
<span class="editIcon"><img src="img/edit.svg"></span>
</label>
</a>
<h4 class="talkTitle">
{{#if starttime}}({{starttime}}{{#if endtime}}-{{endtime}}{{/if}}){{/if}}
{{title}}{{#if paperUrl}} <a target="_paper" href="{{paperUrl}}"><span class="talkIcons"><img src="img/md-document.svg" title="View the paper"></span></a>{{/if}}
{{#if slidesUrl}} <a target="_slides" href="{{slidesUrl}}"><span class="talkIcons"><img src="img/md-desktop.svg" title="View the slides"></span></a>{{/if}}
</h4>
{{#if talkNote}}
<div class="talkNote">
{{{talkNote}}}
</div>
{{/if}}
<div class="authorList">
{{#each authors}}
<span class="authorName">{{this}}</span>
{{/each}}
</div>
{{#if affiliations }}
<div class="keywords">
{{affiliations}}
</div>
{{/if}}
{{#if keywords }}
<div class="keywords">
Keywords: {{keywords}}
</div>
{{/if}}
</div>
</script>
<div class="row">
<article id="categoryList" class="col-md-3">
<div id="alertInstr" class="alert alert-light alert-dismissible fade show" role="alert">
Instructions: Drag talks from the categories below to the sessions on the right. You can edit sessions, talks, time slots, days, etc. When finished, you can export the JSON for the website.
<button type="button" class="btn-close close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<section id="talksList">
<!-- Handlebars script that renders the list of talks based on user-uploaded json file with HotCRP output -->
<script id="talks-template" type="text/x-handlebars-template">
<!-- BUG: may have gray outline remaining after click b/c is button rather than anchor, as edit session pencil is -->
{{#each unassigned_talks}}
<div class="categoryDiv" id="{{id}}">
<a class="editButton float-end" onclick="showCategoryEditor('{{id}}');">
<label data-bs-toggle="tooltip" title="Edit the category" data-bs-placement="bottom" data-bs-trigger="hover" tabindex="0">
<span class="editIcon"><img src="img/edit.svg"></span>
</label>
</a>
<h4 class="categoryTitle">
{{name}}
</h4>
{{#talkList talks false}}
{{#each talks}}
{{> talk}}
{{/each}}
{{/talkList}}
</section>
</div>
{{/each}}
</script>
</section>
<label data-bs-toggle="tooltip" title="Add a Category. These are not used in the program itself." data-bs-placement="top" data-bs-trigger="hover" tabindex="0" z-index="2" id="newCategoryButton">
<span class="addicon"><img src="img/add.svg" onclick="showCategoryEditor('')"></span>
</label>
</article>
<article id="renderedProgram" class="col-md-9 pt-3">
<!-- Handlebars script, renders editable program based on the user-selected program template -->
<script id="program-template" type="text/x-handlebars-template">
{{#each days}}
<div class="row">
<div class="col-md-5">
<h4 class="pageSubtitle">
{{formatDate date}} <label data-bs-toggle="tooltip" title="Add a time slot" data-bs-placement="top" data-bs-trigger="hover" tabindex="0">
<span class="addicon"><img src="img/add.svg" onclick="prepareAddTimeslotToDay({{@index}})"></span>
</label>
</h4>
</div>
</div>
{{#each timeslots}}
{{#if sessions}} <!-- only render slots that have sessions -->
<div class="row mb-2">
<div class="col-md-2 timeSlotDiv">
<a class="editButton float-end" onclick="editTimeslot({{@../index}}, {{@index}})">
<label data-bs-toggle="tooltip" title="Edit the time slot" data-bs-placement="top" data-bs-trigger="hover" tabindex="0">
<span class="editIcon"><img src="img/edit.svg"></span>
</label>
</a>
<br />
<p class="timeSlot text-center">
{{starttime}}-{{endtime}}
</p>
</div>
<div class="col-md-10 sessionlist ps-0">
{{setTabbed sessions}}
{{#if @root.tabbedSessions}}
<ul class="nav nav-tabs mt-2" role="tablist">
{{#each sessions}}
<li class="nav-item {{#if @first}}active{{/if}}" role="presentation">
<button id="btn-{{id}}" class="nav-link {{#if @first}}active{{/if}}" href="#{{id}}" data-bs-toggle="tab" data-bs-target="#{{id}}" type="button" role="tab" aria-controls="{{id}}">{{session_title}}</button>
</li>
{{/each}}
</ul>
{{/if}}
<div class="{{#if @root.tabbedSessions}}tab-content{{else}}d-flex{{/if}}" id="sessions-{{@index}}">
{{#each sessions}}
<div class="session {{#if @root.tabbedSessions}}tab-pane fade {{#if @first}} active show{{/if}}{{/if}}" id="{{id}}" role="tabpanel" aria-labelled-by="btn-{{id}}">
<!-- {{@../../index}} is the day index
{{@../index}} is the timeslot index
{{@index}} is the session index -->
<a class="editButton float-end" onclick="editSession({{@../../index}},{{@../index}},{{@index}})">
<label data-bs-toggle="tooltip" title="Edit the session" data-bs-placement="top" data-bs-trigger="hover" tabindex="0">
<span class="editIcon"><img src="img/edit.svg"></span>
</label>
</a>
<h4 class="text-center">
{{session_title}}
{{#if session_url}} <a target="_session" href="{{session_url}}"><img class="infoIcon" title="Additional information" src="img/info.svg"></a>{{/if}}
</h4>
{{#if location.name}}
<div class="text-center">
{{location.name}}
</div>
{{/if}}
{{#if moderator}}
<div class="text-center">
{{moderator}}
</div>
{{/if}}
{{#talkList talks true}}
{{#each talks}}
{{> talk}}
{{/each}}
{{/talkList}}
</div>
{{/each}}
</div>
</div>
</div>
{{/if}} <!-- sessions -->
{{/each}} <!-- timeslots -->
<hr />
{{/each}} <!-- days -->
</script>
</article>
</div>
</main>
</div>
<!-- Handlebars templates -->
<script src="https://iacr.org/libs/js/handlebars/handlebars-v4.1.0.js" type="text/javascript"></script>
<script>
// Called at the beginning of a timeslot to set @root.tabbedSessions and @root.twoSessions
Handlebars.registerHelper('setTabbed', function (sessionlist, options) {
if (!options.data.root) {
options.data.root = {};
}
options.data.root['twoSessions'] = (sessionlist.length == 2);
options.data.root['tabbedSessions'] = (sessionlist.length > 2);
});
</script>
<!-- Dependencies (dragula, momentJS, jQuery daterangepicker, jQuery timepicker, & datepair) -->
<script src="./dependencies/dragula/dragula.js"></script>
<script src="https://iacr.org/libs/js/moment/moment.min.js"></script>
<script src="https://iacr.org/libs/js/moment/moment-timezone-with-data-10-year-range.js"></script>
<script src="./dependencies/jquery-daterange-picker/jquery.daterangepicker.min.js"></script>
<script src="./dependencies/jquery-timepicker/jquery.timepicker.min.js"></script>
<script src="./dependencies/datepair/jquery.datepair.min.js"></script>
<!-- Additional/custom scripts -->
<script src="./scripts/editor.js?version=16"></script>
<!-- modal to edit config metadata -->
<aside class="modal fade" id="editMetadataModal" role="dialog" aria-labelledby="editMetadataTitle">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header px-4" id="editMetadataDiv">
<h3 class="modal-title" id="editMetadataTitle">
Edit conference name and dates
</h3>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body ps-4 pe-5">
<div class="mb-3">
<label for="newName">
Program name
</label>
<input type="text" name="newName" placeholder="Program name (required)" class="form-control my-1" id="newName" required />
</div>
<div class="mb-3">
<label for="newtimezone">
Timezone
</label>
<select class="form-select my-1" id="newtimezone"></select>
</div>
<div id="changeDatesDiv" class="mb-3">
<label for="dateChange">
Change conference date(s)
</label>
<div class="my-1">
<select id="dateChange" name="dateChange" class="form-select mb-3" onchange="updateNewDates()">
<option value="">No date change</option>
<option value="shift">Shift dates</option>
<option value="add">Add a day</option>
<option value="delete">Delete a day</option>
</select>
<div id="shiftDateControl" class="row align-items-center">
<div class="col-auto pe-0">
<label for="shiftDates">
Shift dates by
</label>
</div>
<div class="col-auto px-2">
<input type="number" id="shiftDates" class="form-control" value="0" min="-365" max="365"
onchange="updateNewDates()" oninput="updateNewDates()">
</div>
<div class="col-auto ps-0">
days
</div>
</div>
<select id="addDayOption" name="addDayOption" class="form-select mb-3 w-50" onchange="updateNewDates()">
<option value="" disabled>When do you want to add a day?</option>
<option value="before">Before</option>
<option value="after">After</option>
</select>
<select id="deleteDayOption" name="deleteDayOption" class="form-select mb-3 w-50" onchange="updateNewDates()">
<option value="" disabled>Which day do you want to delete?</option>
<option value="first">Delete first day</option>
<option value="last">Delete last day</option>
</select>
</div>
</div>
<div id="currentOrChangedDates" class="p-4 mt-3">
<div class="row">
<div class="col-4 text-end">
<strong>
Current dates
</strong>
</div>
<div class="col-7">
<span id="originalStartdate"></span> to
<span id="originalEnddate"></span>
</div>
</div>
<div id="newDates" class="row mt-1">
<div class="col-4 text-end">
<strong>
New dates
</strong>
</div>
<div class="col-7">
<span id="newDisplayStartdate"></span> to <span id="newDisplayEnddate"></span>
</div>
</div>
</div>
<p class="alert alert-danger mt-3" id="deleteWarning">
If you delete a day, then all talks currently scheduled on that day will become unscheduled and any sessions will be lost.
</p>
<input id="newStartdate" name="newStartdate" type="hidden"/>
<input id="newEnddate" name="newEnddate" type="hidden"/>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light btn-sm" data-bs-dismiss="modal">
Cancel
</button>
<button type="button" class="btn btn-success btn-sm" onclick="saveMetadata()">
Save program
</button>
</div>
</div>
</div>
</aside>
<!-- delete program modal -->
<div class="modal fade" id="deleteProgramModal" tabindex="-1" role="dialog" aria-labelledby="deleteProgramLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header px-4">
<h2 id="deleteProgramLabel" class="modal-title">Confirm delete</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body ps-4 pe-5">
<p>You are about to delete this program from the server. This action cannot be reversed.</p>
<p>Are you sure you want to delete it?</p>
</div>
<div class="modal-footer">
<p id="delete_status"></p>
<button type="button" class="btn btn-light" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-danger" onclick="reallyDeleteProgram();">Delete</button>
</div>
</div>
</div>
</div>
<!-- Auth Modal -->
<div class="modal fade" id="authModal" tabindex="-1" role="dialog" aria-labelledby="authModalLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header px-4">
<h3 class="modal-title" id="authModalLabel">Log in</h3>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body ps-4 pe-5">
<p>
This app requires you to log in with your IACR reference number
and password.
</p>
<div class="mb-3">
<label for="iacrref">
IACR reference number
</label>
<input type="text" class="form-control my-1" id="iacrref">
</div>
<div class="mb-3">
<label for="password">
Password
</label>
<input type="password" class="form-control my-1" id="password">
</div>
<p class="mt-3">
If you have forgotten your IACR reference number or password,
<a target="_blank" href="https://secure.iacr.org/membership/members/update.html">click here to recover it</a>.
</p>
</div>
<div class="modal-footer">
<p id="login_progress"></p>
<button type="button" class="btn btn-light" data-bs-dismiss="modal">Cancel</button>
<button type="button" onClick="doLogin();this.blur()"class="btn btn-success">Log in</button>
</div>
</div>
</div>
</div>
<!-- Modal for import from crossref.org -->
<aside class="modal fade" id="importDOISelection" role="dialog" aria-labelledby="importDOITitle">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header px-4" id="importDOIDiv">
<h3 class="modal-title" id="importDOITitle">
Import DOIs from crossref.org
</h3>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body ps-4 pe-5">
<p>
This will attempt to import DOI URLs for the papers. However, the matches are not guaranteed to be 100% accurate, as they are not provided when the papers are uploaded.
</p>
<p>
Note that if Springer has not finished processing the papers for this conference, then they will not be available yet. You can always enter URLs individually at any time.
</p>
<div class="progress">
<div id="doiSuccess" class="progress-bar progress-bar-striped progress-bar-animated bg-success" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;">0%</div>
<div id="doiFailure" class="progress-bar progress-bar-striped progress-bar-animated bg-warning" role="progressbar" aria-valuenow="0" area-valuemin="0" aria-valuemax="100" style="width: 0%;">0%</div>
</div>
</div>
<div class="modal-footer">
<span id="doiStatus"></span>
<button id="doiCloseBtn" type="button" class="btn btn-sm btn-light" data-bs-dismiss="modal">Cancel</button>
<button id="doiSearchBtn" type="button" onclick="findDOIs()" class="float-end btn btn-success btn-sm">Search</button>
</div>
<div class="form-group importResults" id="importResults">
<ol id="resultList"></ol>
</div>
</div>
</div>
</aside>
<!-- Modal for upload from HotCRP -->
<aside class="modal fade" id="uploadTalksModal" role="dialog" aria-labelledby="uploadTitle">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header px-4" id="uploadTitleDiv">
<h3 class="modal-title" id="uploadTitle">
Upload accepted papers
</h3>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body ps-4 pe-5">
<p>
If you are a program chair for Crypto, Eurocrypt, Asiacrypt, TCC, or PKC, then there is a menu item inside HotCRP
'IACR integration' ⇒ 'Accepted papers'. That will allow you to download the required file. As an alternative, the file may also be found at /json/papers.json on the conference website.
</p>
<p>
For FSE and CHES, you will have four files of accepted papers. This is where you should upload each list to the program editor directly.
</p>
<!-- <p>
The required format is described in <a target="_help" href="./docs/help.html">the help docs</a>.
</p> -->
<input id="uploadTalksSelector" class="form-control mb-3" type="file" accept=".json">
<p id="uploadTalksWarning" class="text-danger">
Files must be in the format exported from HotCRP under 'IACR integration'.
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light btn-sm" data-bs-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</aside>
<!-- Modal for import for FSE or CHES (from cryptodb) -->
<aside class="modal fade" id="importTalksModal" role="dialog" aria-labelledby="importTitle">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header px-4">
<h3 class="modal-title" id="importTitle">
Import from ToSC or TCHES
</h3>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body ps-4 pe-5">
<p>
Papers that have already been published by ToSC or TCHES may be imported below.
</p>
<div class="mb-3">
<label for="importSelect">
Select a journal
</label>
<select class="form-select my-1" id="importSelect">
<option value="" selected disabled></option>
<option value="tches">Transactions on Cryptographic Hardware and Embedded Systems (TCHES)</option>
<option value="tosc">Transactions on Symmetric Cryptology (ToSC)</option>
</select>
</div>
<div class="row mb-0">
<div class="col">
<label for="importstartdate">
Published after
</label>
<input type="date" id="importstartdate" name="importstartdate" class="form-control my-1" value="">
</div>
<div class="col">
<label for="importenddate">
Published before
</label>
<input type="date" id="importenddate" name="importenddate" class="form-control my-1" value="">
</div>
</div>
<small class="form-text mt-1">
Select a date range of publication for desired papers. Both fields above are optional.
</small>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light btn-sm" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-success btn-sm" onclick="importFSEorCHES()">Import papers</button>
</div>
</div>
</div>
</aside>
<!-- Modal for warnings and errors -->
<aside class="modal fade" id="errorBox" role="dialog" aria-labelledby="warningTitle">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header px-4" id="warnBoxTitle">
<h3 class="modal-title" id="warningTitle">
Warning
</h3>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body ps-4 pe-5">
<p id="modal-message">
Something's not quite right here.
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-success btn-sm" data-bs-dismiss="modal">Ok</button>
</div>
</div>
</div>
</aside>
<!-- Modal for adding, editing, or deleting a new talk. In case you are adding a talk,
the delete button is not shown and the talkId field is empty. -->
<aside class="modal fade" id="editTalkBox" role="dialog" aria-labelledby="addTalkTitle" tabindex="-1">
<div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
<div class="modal-content">
<div class="modal-header px-4" id="addTalkTitleDiv">
<h3 class="modal-title" id="addTalkTitle">
Add a new talk
</h3>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body ps-4 pe-5">
<input id="talkId" type="hidden" value=""/>
<div class="mb-3">
<label for="newTalkTitle">
Talk title
</label>
<input type="text" name="newTalkTitle" placeholder="Talk title (required)" class="form-control my-1" id="newTalkTitle" required />
<p id="talkTitleWarning" class="text-danger">
Talk title is required
</p>
</div>
<div class="mb-3">
<label for="newTalkAuthor">
Talk author(s)
</label>
<input type="text" name="newTalkAuthor" class="form-control my-1"
aria-describedby="newAuthorHelp" id="newTalkAuthor" />
<small id="newAuthorHelp" class="form-text">
Use BibTeX formatting (i.e. names are separated by and).
</small>
</div>
<div class="mb-3">
<label for="newTalkAffiliation">
Author affiliation(s)
</label>
<input type="text" name="newTalkAffiliation" class="form-control my-1"
aria-describedby="newAffiliationHelp" id="newTalkAffiliation" />
<small id="newAffiliationHelp" class="form-text">
Enter affiliations for authors, separated by semicolon. If authors share an affiliation, there is no need to enter
the same institution twice.
</small>
</div>
<div class="mb-3">
<label for="talkAbstract">
Abstract
</label>
<textarea rows="3" id="talkAbstract" name="talkAbstract" class="form-control my-1"
aria-describedby="abstractHelp"
placeholder="Enter abstract here"></textarea>
<small id="abstractHelp" class="form-text">
An abstract is optional.
</small>
</div>
<div class="mb-3">
<label for="talkNote">
Additional notes
</label>
<input type="text" name="talkNote" class="form-control my-1" aria-describedby="talkNoteHelp" id="talkNote" maxlength="77" />
<small id="talkNoteHelp" class="form-text">
This is where you might enter additional information
about the paper. Examples include soft merges, awards,
name of presenter, etc. This is not intended for
an abstract.
</small>
</div>
<div class="mb-3">
<label for="paperUrl">
Paper URL
</label>