react-weekly-planning 1.0.33 → 1.0.34
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.
- package/lib/utils.js +0 -13
- package/lib/utils.ts +0 -14
- package/package.json +1 -8
- package/__tests__/page.test.js +0 -106
- package/__tests__/page.test.tsx +0 -129
- package/definition.txt +0 -319
- package/docs/global.html +0 -4983
- package/docs/index.html +0 -475
- package/docs/index.ts.html +0 -551
- package/docs/scripts/app.min.js +0 -1
- package/docs/scripts/linenumber.js +0 -26
- package/docs/scripts/search.js +0 -39
- package/docs/styles/app.min.css +0 -1
- package/docs/styles/iframe.css +0 -13
- package/docs/styles/prettify-jsdoc.css +0 -111
- package/docs/styles/prettify-tomorrow.css +0 -132
- package/docs/styles/reset.css +0 -44
- package/myJsDoc.js +0 -0
- package/out/index.html +0 -129
- package/out/scripts/app.min.js +0 -1
- package/out/scripts/linenumber.js +0 -26
- package/out/scripts/search.js +0 -39
- package/out/styles/app.min.css +0 -1
- package/out/styles/iframe.css +0 -13
- package/out/styles/prettify-jsdoc.css +0 -111
- package/out/styles/prettify-tomorrow.css +0 -132
- package/out/styles/reset.css +0 -44
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/* JSDoc prettify.js theme */
|
|
2
|
-
|
|
3
|
-
/* plain text */
|
|
4
|
-
.pln {
|
|
5
|
-
color: #000000;
|
|
6
|
-
font-weight: normal;
|
|
7
|
-
font-style: normal;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/* string content */
|
|
11
|
-
.str {
|
|
12
|
-
color: #006400;
|
|
13
|
-
font-weight: normal;
|
|
14
|
-
font-style: normal;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/* a keyword */
|
|
18
|
-
.kwd {
|
|
19
|
-
color: #000000;
|
|
20
|
-
font-weight: bold;
|
|
21
|
-
font-style: normal;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/* a comment */
|
|
25
|
-
.com {
|
|
26
|
-
font-weight: normal;
|
|
27
|
-
font-style: italic;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* a type name */
|
|
31
|
-
.typ {
|
|
32
|
-
color: #000000;
|
|
33
|
-
font-weight: normal;
|
|
34
|
-
font-style: normal;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/* a literal value */
|
|
38
|
-
.lit {
|
|
39
|
-
color: #006400;
|
|
40
|
-
font-weight: normal;
|
|
41
|
-
font-style: normal;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/* punctuation */
|
|
45
|
-
.pun {
|
|
46
|
-
color: #000000;
|
|
47
|
-
font-weight: bold;
|
|
48
|
-
font-style: normal;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/* lisp open bracket */
|
|
52
|
-
.opn {
|
|
53
|
-
color: #000000;
|
|
54
|
-
font-weight: bold;
|
|
55
|
-
font-style: normal;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/* lisp close bracket */
|
|
59
|
-
.clo {
|
|
60
|
-
color: #000000;
|
|
61
|
-
font-weight: bold;
|
|
62
|
-
font-style: normal;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* a markup tag name */
|
|
66
|
-
.tag {
|
|
67
|
-
color: #006400;
|
|
68
|
-
font-weight: normal;
|
|
69
|
-
font-style: normal;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/* a markup attribute name */
|
|
73
|
-
.atn {
|
|
74
|
-
color: #006400;
|
|
75
|
-
font-weight: normal;
|
|
76
|
-
font-style: normal;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/* a markup attribute value */
|
|
80
|
-
.atv {
|
|
81
|
-
color: #006400;
|
|
82
|
-
font-weight: normal;
|
|
83
|
-
font-style: normal;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/* a declaration */
|
|
87
|
-
.dec {
|
|
88
|
-
color: #000000;
|
|
89
|
-
font-weight: bold;
|
|
90
|
-
font-style: normal;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/* a variable name */
|
|
94
|
-
.var {
|
|
95
|
-
color: #000000;
|
|
96
|
-
font-weight: normal;
|
|
97
|
-
font-style: normal;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/* a function name */
|
|
101
|
-
.fun {
|
|
102
|
-
color: #000000;
|
|
103
|
-
font-weight: bold;
|
|
104
|
-
font-style: normal;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/* Specify class=linenums on a pre to get line numbering */
|
|
108
|
-
ol.linenums {
|
|
109
|
-
margin-top: 0;
|
|
110
|
-
margin-bottom: 0;
|
|
111
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
/* Tomorrow Theme */
|
|
2
|
-
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
|
|
3
|
-
/* Pretty printing styles. Used with prettify.js. */
|
|
4
|
-
/* SPAN elements with the classes below are added by prettyprint. */
|
|
5
|
-
/* plain text */
|
|
6
|
-
.pln {
|
|
7
|
-
color: #4d4d4c; }
|
|
8
|
-
|
|
9
|
-
@media screen {
|
|
10
|
-
/* string content */
|
|
11
|
-
.str {
|
|
12
|
-
color: #718c00; }
|
|
13
|
-
|
|
14
|
-
/* a keyword */
|
|
15
|
-
.kwd {
|
|
16
|
-
color: #8959a8; }
|
|
17
|
-
|
|
18
|
-
/* a comment */
|
|
19
|
-
.com {
|
|
20
|
-
color: #8e908c; }
|
|
21
|
-
|
|
22
|
-
/* a type name */
|
|
23
|
-
.typ {
|
|
24
|
-
color: #4271ae; }
|
|
25
|
-
|
|
26
|
-
/* a literal value */
|
|
27
|
-
.lit {
|
|
28
|
-
color: #f5871f; }
|
|
29
|
-
|
|
30
|
-
/* punctuation */
|
|
31
|
-
.pun {
|
|
32
|
-
color: #4d4d4c; }
|
|
33
|
-
|
|
34
|
-
/* lisp open bracket */
|
|
35
|
-
.opn {
|
|
36
|
-
color: #4d4d4c; }
|
|
37
|
-
|
|
38
|
-
/* lisp close bracket */
|
|
39
|
-
.clo {
|
|
40
|
-
color: #4d4d4c; }
|
|
41
|
-
|
|
42
|
-
/* a markup tag name */
|
|
43
|
-
.tag {
|
|
44
|
-
color: #c82829; }
|
|
45
|
-
|
|
46
|
-
/* a markup attribute name */
|
|
47
|
-
.atn {
|
|
48
|
-
color: #f5871f; }
|
|
49
|
-
|
|
50
|
-
/* a markup attribute value */
|
|
51
|
-
.atv {
|
|
52
|
-
color: #3e999f; }
|
|
53
|
-
|
|
54
|
-
/* a declaration */
|
|
55
|
-
.dec {
|
|
56
|
-
color: #f5871f; }
|
|
57
|
-
|
|
58
|
-
/* a variable name */
|
|
59
|
-
.var {
|
|
60
|
-
color: #c82829; }
|
|
61
|
-
|
|
62
|
-
/* a function name */
|
|
63
|
-
.fun {
|
|
64
|
-
color: #4271ae; } }
|
|
65
|
-
/* Use higher contrast and text-weight for printable form. */
|
|
66
|
-
@media print, projection {
|
|
67
|
-
.str {
|
|
68
|
-
color: #060; }
|
|
69
|
-
|
|
70
|
-
.kwd {
|
|
71
|
-
color: #006;
|
|
72
|
-
font-weight: bold; }
|
|
73
|
-
|
|
74
|
-
.com {
|
|
75
|
-
color: #600;
|
|
76
|
-
font-style: italic; }
|
|
77
|
-
|
|
78
|
-
.typ {
|
|
79
|
-
color: #404;
|
|
80
|
-
font-weight: bold; }
|
|
81
|
-
|
|
82
|
-
.lit {
|
|
83
|
-
color: #044; }
|
|
84
|
-
|
|
85
|
-
.pun, .opn, .clo {
|
|
86
|
-
color: #440; }
|
|
87
|
-
|
|
88
|
-
.tag {
|
|
89
|
-
color: #006;
|
|
90
|
-
font-weight: bold; }
|
|
91
|
-
|
|
92
|
-
.atn {
|
|
93
|
-
color: #404; }
|
|
94
|
-
|
|
95
|
-
.atv {
|
|
96
|
-
color: #060; } }
|
|
97
|
-
/* Style */
|
|
98
|
-
/*
|
|
99
|
-
pre.prettyprint {
|
|
100
|
-
background: white;
|
|
101
|
-
font-family: Consolas, Monaco, 'Andale Mono', monospace;
|
|
102
|
-
font-size: 12px;
|
|
103
|
-
line-height: 1.5;
|
|
104
|
-
border: 1px solid #ccc;
|
|
105
|
-
padding: 10px; }
|
|
106
|
-
*/
|
|
107
|
-
|
|
108
|
-
/* Specify class=linenums on a pre to get line numbering */
|
|
109
|
-
ol.linenums {
|
|
110
|
-
margin-top: 0;
|
|
111
|
-
margin-bottom: 0; }
|
|
112
|
-
|
|
113
|
-
/* IE indents via margin-left */
|
|
114
|
-
li.L0,
|
|
115
|
-
li.L1,
|
|
116
|
-
li.L2,
|
|
117
|
-
li.L3,
|
|
118
|
-
li.L4,
|
|
119
|
-
li.L5,
|
|
120
|
-
li.L6,
|
|
121
|
-
li.L7,
|
|
122
|
-
li.L8,
|
|
123
|
-
li.L9 {
|
|
124
|
-
/* */ }
|
|
125
|
-
|
|
126
|
-
/* Alternate shading for lines */
|
|
127
|
-
li.L1,
|
|
128
|
-
li.L3,
|
|
129
|
-
li.L5,
|
|
130
|
-
li.L7,
|
|
131
|
-
li.L9 {
|
|
132
|
-
/* */ }
|
package/docs/styles/reset.css
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/* reset css */
|
|
2
|
-
html, body, div, span, applet, object, iframe,
|
|
3
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
|
4
|
-
a, abbr, acronym, address, big, cite, code,
|
|
5
|
-
del, dfn, em, img, ins, kbd, q, s, samp,
|
|
6
|
-
small, strike, strong, sub, sup, tt, var,
|
|
7
|
-
b, u, i, center,
|
|
8
|
-
dl, dt, dd, ol, ul, li,
|
|
9
|
-
fieldset, form, label, legend,
|
|
10
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
|
11
|
-
article, aside, canvas, details, embed,
|
|
12
|
-
figure, figcaption, footer, header, hgroup,
|
|
13
|
-
menu, nav, output, ruby, section, summary,
|
|
14
|
-
time, mark, audio, video {
|
|
15
|
-
margin: 0;
|
|
16
|
-
padding: 0;
|
|
17
|
-
border: 0;
|
|
18
|
-
font-size: 100%;
|
|
19
|
-
font: inherit;
|
|
20
|
-
vertical-align: baseline;
|
|
21
|
-
}
|
|
22
|
-
/* HTML5 display-role reset for older browsers */
|
|
23
|
-
article, aside, details, figcaption, figure,
|
|
24
|
-
footer, header, hgroup, menu, nav, section {
|
|
25
|
-
display: block;
|
|
26
|
-
}
|
|
27
|
-
body {
|
|
28
|
-
line-height: 1;
|
|
29
|
-
}
|
|
30
|
-
ol, ul {
|
|
31
|
-
list-style: none;
|
|
32
|
-
}
|
|
33
|
-
blockquote, q {
|
|
34
|
-
quotes: none;
|
|
35
|
-
}
|
|
36
|
-
blockquote:before, blockquote:after,
|
|
37
|
-
q:before, q:after {
|
|
38
|
-
content: '';
|
|
39
|
-
content: none;
|
|
40
|
-
}
|
|
41
|
-
table {
|
|
42
|
-
border-collapse: collapse;
|
|
43
|
-
border-spacing: 0;
|
|
44
|
-
}
|
package/myJsDoc.js
DELETED
|
File without changes
|
package/out/index.html
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
|
|
6
|
-
<meta charset="utf-8">
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
|
-
<title> Home</title>
|
|
9
|
-
|
|
10
|
-
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
|
|
11
|
-
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
|
|
12
|
-
<script src="./build/entry.js"></script>
|
|
13
|
-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
|
14
|
-
<!--[if lt IE 9]>
|
|
15
|
-
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
16
|
-
<![endif]-->
|
|
17
|
-
<link href="https://fonts.googleapis.com/css?family=Roboto:100,400,700|Inconsolata,700" rel="stylesheet">
|
|
18
|
-
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
|
|
19
|
-
<link type="text/css" rel="stylesheet" href="https://jmblog.github.io/color-themes-for-google-code-prettify/themes/tomorrow-night.min.css">
|
|
20
|
-
<link type="text/css" rel="stylesheet" href="styles/app.min.css">
|
|
21
|
-
<link type="text/css" rel="stylesheet" href="styles/iframe.css">
|
|
22
|
-
<link type="text/css" rel="stylesheet" href="">
|
|
23
|
-
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
</head>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<body class="layout small-header">
|
|
31
|
-
<div id="stickyNavbarOverlay"></div>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<div class="top-nav">
|
|
35
|
-
<div class="inner">
|
|
36
|
-
<a id="hamburger" role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
|
|
37
|
-
<span aria-hidden="true"></span>
|
|
38
|
-
<span aria-hidden="true"></span>
|
|
39
|
-
<span aria-hidden="true"></span>
|
|
40
|
-
</a>
|
|
41
|
-
<div class="logo">
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
</div>
|
|
45
|
-
<div class="menu">
|
|
46
|
-
|
|
47
|
-
<div class="navigation">
|
|
48
|
-
<a
|
|
49
|
-
href="index.html"
|
|
50
|
-
class="link"
|
|
51
|
-
>
|
|
52
|
-
Documentation
|
|
53
|
-
</a>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
<div id="main">
|
|
62
|
-
<div
|
|
63
|
-
class="sidebar "
|
|
64
|
-
id="sidebarNav"
|
|
65
|
-
>
|
|
66
|
-
|
|
67
|
-
<nav>
|
|
68
|
-
|
|
69
|
-
<h2><a href="index.html">Documentation</a></h2><div class="category"></div>
|
|
70
|
-
|
|
71
|
-
</nav>
|
|
72
|
-
</div>
|
|
73
|
-
<div class="core" id="main-content-wrapper">
|
|
74
|
-
<div class="content">
|
|
75
|
-
<header class="page-title">
|
|
76
|
-
<p></p>
|
|
77
|
-
<h1>Home</h1>
|
|
78
|
-
</header>
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
<h3> </h3>
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
</div>
|
|
108
|
-
|
|
109
|
-
<footer class="footer">
|
|
110
|
-
<div class="content has-text-centered">
|
|
111
|
-
<p>Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a></p>
|
|
112
|
-
<p class="sidebar-created-by">
|
|
113
|
-
<a href="https://github.com/SoftwareBrothers/better-docs" target="_blank">BetterDocs theme</a> provided with <i class="fas fa-heart"></i> by
|
|
114
|
-
<a href="http://softwarebrothers.co" target="_blank">SoftwareBrothers - JavaScript Development Agency</a>
|
|
115
|
-
</p>
|
|
116
|
-
</div>
|
|
117
|
-
</footer>
|
|
118
|
-
|
|
119
|
-
</div>
|
|
120
|
-
<div id="side-nav" class="side-nav">
|
|
121
|
-
</div>
|
|
122
|
-
</div>
|
|
123
|
-
<script src="scripts/app.min.js"></script>
|
|
124
|
-
<script>PR.prettyPrint();</script>
|
|
125
|
-
<script src="scripts/linenumber.js"> </script>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
</body>
|
|
129
|
-
</html>
|
package/out/scripts/app.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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))})});
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
})();
|
package/out/scripts/search.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
})()
|