react-weekly-planning 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,567 @@
1
+
2
+
3
+ <!DOCTYPE html>
4
+ <html lang="en">
5
+
6
+ <head>
7
+
8
+ <meta charset="utf-8">
9
+ <meta name="viewport" content="width=device-width, initial-scale=1">
10
+ <title> index.ts</title>
11
+
12
+ <script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
13
+ <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
14
+ <script src="./build/entry.js"></script>
15
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
16
+ <!--[if lt IE 9]>
17
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
18
+ <![endif]-->
19
+ <link href="https://fonts.googleapis.com/css?family=Roboto:100,400,700|Inconsolata,700" rel="stylesheet">
20
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
21
+ <link type="text/css" rel="stylesheet" href="https://jmblog.github.io/color-themes-for-google-code-prettify/themes/tomorrow-night.min.css">
22
+ <link type="text/css" rel="stylesheet" href="styles/app.min.css">
23
+ <link type="text/css" rel="stylesheet" href="styles/iframe.css">
24
+ <link type="text/css" rel="stylesheet" href="">
25
+ <script async defer src="https://buttons.github.io/buttons.js"></script>
26
+
27
+
28
+ </head>
29
+
30
+
31
+
32
+ <body class="layout small-header">
33
+ <div id="stickyNavbarOverlay"></div>
34
+
35
+
36
+ <div class="top-nav">
37
+ <div class="inner">
38
+ <a id="hamburger" role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
39
+ <span aria-hidden="true"></span>
40
+ <span aria-hidden="true"></span>
41
+ <span aria-hidden="true"></span>
42
+ </a>
43
+ <div class="logo">
44
+
45
+
46
+ <a href="index.html">
47
+ <h1 class="navbar-item">Calendar</h1>
48
+ </a>
49
+
50
+ </div>
51
+ <div class="menu">
52
+
53
+ <div class="navigation">
54
+ <a
55
+ href="index.html"
56
+ class="link"
57
+ >
58
+ Documentation
59
+ </a>
60
+
61
+
62
+
63
+ </div>
64
+ </div>
65
+ </div>
66
+ </div>
67
+ <div id="main">
68
+ <div
69
+ class="sidebar "
70
+ id="sidebarNav"
71
+ >
72
+
73
+ <nav>
74
+
75
+ <h2><a href="index.html">Documentation</a></h2><div class="category"><h3><a href="global.html">Global</a></h3></div>
76
+
77
+ </nav>
78
+ </div>
79
+ <div class="core" id="main-content-wrapper">
80
+ <div class="content">
81
+ <header class="page-title">
82
+ <p>Source</p>
83
+ <h1>index.ts</h1>
84
+ </header>
85
+
86
+
87
+
88
+
89
+
90
+ <section>
91
+ <article>
92
+ <pre class="prettyprint source linenums"><code>/**
93
+ * Props for the Group component.
94
+ */
95
+ export type GroupPropsType = {
96
+ /** Custom render function for the group. */
97
+ groupRender?: ({
98
+ currentGroup
99
+ }: {
100
+ currentGroup: GroupFeildsType;
101
+ }) => React.ReactNode;
102
+ /** Additional class names for the group component. */
103
+ className?: string;
104
+ /** Additional styles for the group component. */
105
+ style?: React.CSSProperties | undefined;
106
+ /** The current group data. */
107
+ currentGroup: GroupFeildsType;
108
+ /** Handler function for clicking the group. */
109
+ handleClickGroup?: (currentGroup: GroupFeildsType) => void;
110
+ };
111
+
112
+ /**
113
+ * Required fields for a group.
114
+ */
115
+ type GroupRiquiredFieldsType = {
116
+ /** Label for the group. */
117
+ label?: string;
118
+ /** URL of the image representing the group. */
119
+ imageUrl?: string;
120
+ /** Unique identifier for the group. */
121
+ id: string;
122
+ };
123
+
124
+ /**
125
+ * Additional fields for a group.
126
+ */
127
+ type GroupAdditionalFieldsType = Record&lt;any, unknown>;
128
+
129
+ /**
130
+ * Fields for a group, including both required and additional fields.
131
+ */
132
+ export type GroupFeildsType = GroupRiquiredFieldsType &amp;
133
+ GroupAdditionalFieldsType;
134
+
135
+
136
+
137
+ /**
138
+ * Props for the GroupComponent.
139
+ */
140
+ export type GroupComponentPropsType = {
141
+ /** Custom render function for the group. */
142
+ groupRender?: ({
143
+ currentGroup
144
+ }: {
145
+ currentGroup: GroupFeildsType;
146
+ }) => React.ReactNode;
147
+ /** Additional class names for the group component. */
148
+ className?: string;
149
+ /** Additional styles for the group component. */
150
+ style?: React.CSSProperties | undefined;
151
+ };
152
+
153
+ /**
154
+ * Props for the Days component.
155
+ */
156
+ export type DaysPropsType = {
157
+ /** Custom render function for a day. */
158
+ dayRender?: ({
159
+ dayIndex,
160
+ day,
161
+ dayOfTheMonth,
162
+ dayMonth,
163
+ dayYear,
164
+ }: {
165
+ dayIndex?: number;
166
+ day?: string;
167
+ dayOfTheMonth?: number;
168
+ dayMonth?: string;
169
+ dayYear?: number;
170
+ }) => React.ReactNode;
171
+ /** Additional class names for the days component. */
172
+ className?: string;
173
+ /** Additional styles for the days component. */
174
+ style?: React.CSSProperties | undefined;
175
+ };
176
+
177
+ /**
178
+ * Props for a single day.
179
+ */
180
+ export type DayPropsType = {
181
+ /** Index of the day. */
182
+ dayIndex: number;
183
+ /** Name of the day. */
184
+ day: string;
185
+ /** Day of the month. */
186
+ dayOfTheMonth: number;
187
+ /** Custom render function for a day. */
188
+ dayRender?: ({
189
+ dayIndex,
190
+ day,
191
+ dayOfTheMonth,
192
+ dayMonth,
193
+ dayYear,
194
+ }: {
195
+ dayIndex: number;
196
+ day: string;
197
+ dayOfTheMonth: number;
198
+ dayMonth: string;
199
+ dayYear: number;
200
+ }) => React.ReactNode;
201
+ /** Month of the day. */
202
+ dayMonth: string;
203
+ /** Year of the day. */
204
+ dayYear: number;
205
+ /** Additional class names for the day component. */
206
+ className?: string;
207
+ /** Additional styles for the day component. */
208
+ style?: React.CSSProperties | undefined;
209
+ };
210
+
211
+ /**
212
+ * Props for the Calendar component.
213
+ */
214
+ export type CalendarPropsType = {
215
+ /** Offset for the week (e.g., -7 for last week, 0 for current week, 7 for next week). */
216
+ weekOffset?: number;
217
+ /** Array of group data to be displayed in the calendar. */
218
+ groups: GroupFeildsType[];
219
+ /** Additional class names for the calendar component. */
220
+ className?: string;
221
+ /** Additional styles for the calendar component. */
222
+ style?: React.CSSProperties | undefined;
223
+ /** The current date to display in the calendar. */
224
+ date: Date;
225
+ /** Custom render function for a group. */
226
+ groupRender?: ({
227
+ currentGroup
228
+ }: {
229
+ currentGroup: GroupFeildsType;
230
+ }) => React.ReactNode;
231
+ /** Custom render function for a day. */
232
+ dayRender?: ({
233
+ dayIndex,
234
+ day,
235
+ dayOfTheMonth,
236
+ dayMonth,
237
+ dayYear,
238
+ }: {
239
+ dayIndex: number;
240
+ day: string;
241
+ dayOfTheMonth: number;
242
+ dayMonth: string;
243
+ dayYear: number;
244
+ }) => React.ReactNode;
245
+ /** Custom render function for a task. */
246
+ taskRender?: ({
247
+ currentTask,
248
+ handleDragTask
249
+ }: {
250
+ currentTask: TaskFeildsType;
251
+ handleDragTask?: (
252
+ event: React.DragEvent&lt;HTMLDivElement>,
253
+ currentTask: TaskFeildsType
254
+ ) => void;
255
+ }) => React.ReactNode;
256
+ /** Additional styles for the rows. */
257
+ rowsStyle?: React.CSSProperties | undefined;
258
+ /** Additional class names for the rows. */
259
+ rowsClassName?: string;
260
+ /** Additional styles for the group columns. */
261
+ groupsColsStyle?: React.CSSProperties | undefined;
262
+ /** Additional class names for the group columns. */
263
+ groupsColsClassName?: string;
264
+ /** Additional styles for the day columns. */
265
+ daysColsStyle?: React.CSSProperties | undefined;
266
+ /** Additional class names for the day columns. */
267
+ daysColsClassName?: string;
268
+ /** Additional class names for the add task button. */
269
+ addTaskClassName?: string;
270
+ /** Additional styles for the add task button. */
271
+ addTaskStyle?: React.CSSProperties | undefined;
272
+ /** Additional class names for the groups. */
273
+ groupClassName?: string;
274
+ /** Additional styles for the groups. */
275
+ groupStyle?: React.CSSProperties | undefined;
276
+ /** Additional class names for the days. */
277
+ dayClassName?: string;
278
+ /** Additional styles for the days. */
279
+ dayStyle?: React.CSSProperties | undefined;
280
+ /** Additional styles for the task container. */
281
+ taskContainerStyle?: React.CSSProperties | undefined;
282
+ /** Additional class names for the task container. */
283
+ taskContainerClassName?: string;
284
+ /** Additional styles for the group head container. */
285
+ groupHeadContainerStyle?: React.CSSProperties | undefined;
286
+ /** Additional class names for the group head container. */
287
+ groupHeadContainerClassName?: string;
288
+ /** Additional styles for the sum hours container. */
289
+ sumHoursContainerStyle?: React.CSSProperties | undefined;
290
+ /** Additional class names for the sum hours container. */
291
+ sumHoursContainerClassName?: string;
292
+ /** Additional styles for the sum hours header. */
293
+ sumHoursHeadStyle?: React.CSSProperties | undefined;
294
+ /** Additional class names for the sum hours header. */
295
+ sumHoursHeadClassName?: string;
296
+ /** Handler function for adding a new task. */
297
+ handleAddTask?: (
298
+ groupId: string,
299
+ dayInfo: dayInfoType
300
+ ) => void;
301
+ /** Custom render function for adding a task. */
302
+ addTaskRender?:({
303
+ groupId,
304
+ dayInfo,
305
+ }: {
306
+ groupId: string;
307
+ dayInfo: dayInfoType;
308
+ }) => React.ReactNode;
309
+ /** Array of tasks to be displayed in the calendar. */
310
+ tasks: TasksType;
311
+ /** Handler function for dragging a task. */
312
+ handleDragTask?: (
313
+ event: React.DragEvent&lt;HTMLDivElement>,
314
+ currentTask: TaskFeildsType
315
+ ) => void;
316
+ /** Handler function for dropping a task. */
317
+ handleDropTask?: (
318
+ event: React.DragEvent&lt;HTMLTableDataCellElement>,
319
+ taskStart: number,
320
+ taskEnd: number,
321
+ taskDate: Date,
322
+ groupId: string,
323
+ dayIndex: number,
324
+ newTask: TaskFeildsType,
325
+ newTasks: TasksType
326
+ ) => void;
327
+ /** Handler function for ending the drag of a task. */
328
+ handleDragTaskEnd?: (
329
+ event: React.DragEvent&lt;HTMLDivElement>
330
+ ) => void;
331
+ /** Custom render function for the groups header. */
332
+ groupsHeadRender?: () => React.ReactNode;
333
+ /** Custom render function for the sum of hours. */
334
+ sumHoursRender?: ({
335
+ groupId,
336
+ tasks,
337
+ weekOffset,
338
+ calendarDate,
339
+ sumHoursByGroups,
340
+ }: {
341
+ groupId: string;
342
+ tasks: TasksType;
343
+ weekOffset: number;
344
+ calendarDate: Date;
345
+ sumHoursByGroups: number;
346
+ }) => React.ReactNode;
347
+ /** Custom render function for the sum of hours header. */
348
+ sumHoursHeadRender?:() => React.ReactNode;
349
+ /** Handler function for clicking a task. */
350
+ handleClickTask?: (currentTask: TaskFeildsType) => void;
351
+ /** Handler function for clicking a group. */
352
+ handleClickGroup?: (currentGroup: GroupFeildsType) => void;
353
+ };
354
+
355
+ /**
356
+ * Type for style props.
357
+ */
358
+ export type StyleType = React.CSSProperties | undefined;
359
+
360
+ /**
361
+ * Props for the AddTask component.
362
+ */
363
+ export type AddTaskPropsType = {
364
+ /** ID of the group. */
365
+ groupId: string;
366
+ /** Additional styles for the add task button. */
367
+ addTaskStyle?: StyleType;
368
+ /** Additional class names for the add task button. */
369
+ addTaskClassName?: string;
370
+ /** Custom render function for adding a task. */
371
+ addTaskRender?: ({
372
+ groupId,
373
+ dayInfo,
374
+ }: {
375
+ groupId: string;
376
+ dayInfo: dayInfoType;
377
+ }) => React.ReactNode;
378
+ /** Information about the day. */
379
+ dayInfo: dayInfoType;
380
+ /** Handler function for adding a new task. */
381
+ handleAddTask?: (
382
+ groupId: string,
383
+ dayInfo: dayInfoType
384
+ ) => void;
385
+ };
386
+
387
+ /**
388
+ * Information about a day.
389
+ */
390
+ export type dayInfoType = {
391
+ /** Position of the day. */
392
+ positionDay: number;
393
+ /** Date of the day. */
394
+ day: Date;
395
+ /** Start time of the day. */
396
+ start: number;
397
+ /** End time of the day. */
398
+ end: number;
399
+ };
400
+
401
+ /**
402
+ * Type for a task.
403
+ */
404
+ export type TaskType = {
405
+ /** Start time of the task. */
406
+ taskStart: number;
407
+ /** End time of the task. */
408
+ taskEnd: number;
409
+ /** Description of the task. */
410
+ task: string;
411
+ /** Date of the task. */
412
+ taskDate: Date;
413
+ /** ID of the group the task belongs to. */
414
+ groupId: string;
415
+ /** Index of the day the task belongs to. */
416
+ dayIndex: number;
417
+ /** Unique identifier for the task. */
418
+ taskId: string;
419
+ };
420
+
421
+ /**
422
+ * Props for the TaskContainer component.
423
+ */
424
+ export type TaskContainerPropsType = {
425
+ /** Additional class names for the task container. */
426
+ className?: string;
427
+ /** Additional styles for the task container. */
428
+ style?: React.CSSProperties | undefined;
429
+ /** Handler function for dragging a task. */
430
+ handleDragTask?: (
431
+ event: React.DragEvent&lt;HTMLDivElement>,
432
+ currentTask: TaskFeildsType
433
+ ) => void;
434
+ /** Custom render function for a task. */
435
+ taskRender?: ({
436
+ currentTask,
437
+ handleDragTask
438
+ }: {
439
+ currentTask: TaskFeildsType;
440
+ handleDragTask?: (
441
+ event: React.DragEvent&lt;HTMLDivElement>,
442
+ currentTask: TaskFeildsType
443
+ ) => void;
444
+ }) => React.ReactNode;
445
+ /** Handler function for ending the drag of a task. */
446
+ handleDragTaskEnd?:(
447
+ event: React.DragEvent&lt;HTMLDivElement>
448
+ ) => void;
449
+ /** The current task data. */
450
+ currentTask: TaskFeildsType;
451
+ /** Handler function for clicking a task. */
452
+ handleClickTask?: (currentTask: TaskFeildsType) => void;
453
+ };
454
+
455
+
456
+
457
+ /**
458
+ * Props for the GroupsHeadContainer component.
459
+ */
460
+ export type GroupsHeadContainerPropsType = {
461
+ /** Custom render function for the groups header. */
462
+ groupsHeadRender?: () => React.ReactNode;
463
+ /** Additional styles for the groups header container. */
464
+ style?: React.CSSProperties | undefined;
465
+ /** Additional class names for the groups header container. */
466
+ className?: string;
467
+ };
468
+
469
+
470
+
471
+ /**
472
+ * Props for the SumHoursHeadContainer component.
473
+ */
474
+ export type SumHoursHeadContainerPropsType = {
475
+ /** Custom render function for the sum hours header. */
476
+ sumHoursHeadRender?: () => React.ReactNode;
477
+ /** Additional styles for the sum hours header container. */
478
+ style?: React.CSSProperties | undefined;
479
+ /** Additional class names for the sum hours header container. */
480
+ className?: string;
481
+ };
482
+
483
+ /**
484
+ * Additional fields for a task.
485
+ */
486
+ type TaskAdditionalFieldsType = Record&lt;any, unknown>;
487
+
488
+ /**
489
+ * Fields for a task, including both required and additional fields.
490
+ */
491
+ export type TaskFeildsType = TaskType &amp; TaskAdditionalFieldsType;
492
+
493
+ /**
494
+ * Type for an array of tasks.
495
+ */
496
+ export type TasksType = TaskFeildsType[];
497
+
498
+ /**
499
+ * Handler function type for ending the drag of a task.
500
+ */
501
+ export type handleDragTaskEndType = (
502
+ event: React.DragEvent&lt;HTMLDivElement>
503
+ ) => void;
504
+
505
+ /**
506
+ * Props for the SumHoursContainer component.
507
+ */
508
+ export type SumHoursContainerPropsType = {
509
+ /** ID of the group. */
510
+ groupId: string;
511
+ /** Array of tasks to be displayed in the calendar. */
512
+ tasks: TasksType;
513
+ /** Offset for the week (e.g., -7 for last week, 0 for current week, 7 for next week). */
514
+ weekOffset: number;
515
+ /** The current date to display in the calendar. */
516
+ calendarDate: Date;
517
+ /** Sum of hours for the group. */
518
+ sumHoursByGroups: number;
519
+ /** Custom render function for the sum of hours. */
520
+ sumHoursRender?: ({
521
+ groupId,
522
+ tasks,
523
+ weekOffset,
524
+ calendarDate,
525
+ sumHoursByGroups,
526
+ }: {
527
+ groupId: string;
528
+ tasks: TasksType;
529
+ weekOffset: number;
530
+ calendarDate: Date;
531
+ sumHoursByGroups: number;
532
+ }) => React.ReactNode;
533
+ /** Additional styles for the sum hours container. */
534
+ style?: React.CSSProperties | undefined;
535
+ /** Additional class names for the sum hours container. */
536
+ className?: string;
537
+ };
538
+ </code></pre>
539
+ </article>
540
+ </section>
541
+
542
+
543
+
544
+
545
+ </div>
546
+
547
+ <footer class="footer">
548
+ <div class="content has-text-centered">
549
+ <p>Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a></p>
550
+ <p class="sidebar-created-by">
551
+ <a href="https://github.com/SoftwareBrothers/better-docs" target="_blank">BetterDocs theme</a> provided with <i class="fas fa-heart"></i> by
552
+ <a href="http://softwarebrothers.co" target="_blank">SoftwareBrothers - JavaScript Development Agency</a>
553
+ </p>
554
+ </div>
555
+ </footer>
556
+
557
+ </div>
558
+ <div id="side-nav" class="side-nav">
559
+ </div>
560
+ </div>
561
+ <script src="scripts/app.min.js"></script>
562
+ <script>PR.prettyPrint();</script>
563
+ <script src="scripts/linenumber.js"> </script>
564
+
565
+
566
+ </body>
567
+ </html>
@@ -0,0 +1 @@
1
+ "use strict";$().ready(function(){});var sidebarIsVisible=!1,toggleSidebar=function(e){var a=!(0<arguments.length&&void 0!==e)||e;$("#sidebarNav").toggleClass("sticky",a),$("#stickyNavbarOverlay").toggleClass("active",a),$("#hamburger").toggleClass("is-active"),sidebarIsVisible=a};$().ready(function(){$("#hamburger").click(function(){toggleSidebar(!sidebarIsVisible)}),$("#stickyNavbarOverlay").click(function(){sidebarIsVisible&&toggleSidebar(!1)})});var OFFSET=150;$().ready(function(){var o=$("#side-nav"),c=[];if($(".vertical-section").length||o.hide(),$(".vertical-section").each(function(e,a){var i=$(a),t=i.find("> h1").text();if(t){o.append($("<h3/>").text(t));var s=$("<ul></ul>");i.find(".members h4.name").each(function(e,a){var i=$(a),t=i.find(".code-name").clone().children().remove().end().text(),n=i.find("a").attr("href"),r=$('<a href="'.concat(n,'" />')).text(t);s.append($("<li></li>").append(r)),c.push({link:r,offset:i.offset().top})}),o.append(s)}else i.find(".members h4.name").each(function(e,a){var i=$(a),t=i.find(".code-name").clone().children().remove().end().text(),n=i.find("a").attr("href"),r=$('<a href="'.concat(n,'" />')).text(t);o.append(r),c.push({link:r,offset:i.offset().top})})}),!$.trim(o.text()))return o.hide();function e(){for(var e=n.scrollTop(),a=!1,i=c.length-1;0<=i;i--){var t=c[i];t.link.removeClass("is-active"),e+OFFSET>=t.offset?a?t.link.addClass("is-past"):(t.link.addClass("is-active"),a=!0):t.link.removeClass("is-past")}}var n=$("#main-content-wrapper");n.on("scroll",e),e(),c.forEach(function(e){e.link.click(function(){n.animate({scrollTop:e.offset-OFFSET+1},500)})})}),$().ready(function(){$("#sidebarNav a").each(function(e,a){var i=$(a).attr("href");window.location.pathname.match("/"+i)&&($(a).addClass("active"),$("#sidebarNav").scrollTop($(a).offset().top-150))})});
@@ -0,0 +1,26 @@
1
+ /*global document */
2
+
3
+ (function() {
4
+ var source = document.getElementsByClassName('prettyprint source linenums');
5
+ var i = 0;
6
+ var lineNumber = 0;
7
+ var lineId;
8
+ var lines;
9
+ var totalLines;
10
+ var anchorHash;
11
+
12
+ if (source && source[0]) {
13
+ anchorHash = document.location.hash.substring(1);
14
+ lines = source[0].getElementsByTagName('li');
15
+ totalLines = lines.length;
16
+
17
+ for (; i < totalLines; i++) {
18
+ lineNumber++;
19
+ lineId = 'line' + lineNumber;
20
+ lines[i].id = lineId;
21
+ if (lineId === anchorHash) {
22
+ lines[i].className += ' selected';
23
+ }
24
+ }
25
+ }
26
+ })();
@@ -0,0 +1,39 @@
1
+ (function() {
2
+ const input = document.querySelector('#search')
3
+ const targets = [ ...document.querySelectorAll('#sidebarNav li')]
4
+ input.addEventListener('keyup', () => {
5
+ // loop over each targets and hide the not corresponding ones
6
+ targets.forEach(target => {
7
+ if (!target.innerText.toLowerCase().includes(input.value.toLowerCase())) {
8
+ target.style.display = 'none'
9
+
10
+ /**
11
+ * Detects an empty list
12
+ * Remove the list and the list's title if the list is not displayed
13
+ */
14
+ const list = [...target.parentNode.childNodes].filter( elem => elem.style.display !== 'none')
15
+
16
+ if (!list.length) {
17
+ target.parentNode.style.display = 'none'
18
+ target.parentNode.previousSibling.style.display = 'none'
19
+ }
20
+
21
+ /**
22
+ * Detects empty category
23
+ * Remove the entire category if no item is displayed
24
+ */
25
+ const category = [...target.parentNode.parentNode.childNodes]
26
+ .filter( elem => elem.tagName !== 'H2' && elem.style.display !== 'none')
27
+
28
+ if (!category.length) {
29
+ target.parentNode.parentNode.style.display = 'none'
30
+ }
31
+ } else {
32
+ target.parentNode.style.display = 'block'
33
+ target.parentNode.previousSibling.style.display = 'block'
34
+ target.parentNode.parentNode.style.display = 'block'
35
+ target.style.display = 'block'
36
+ }
37
+ })
38
+ })
39
+ })()