Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Yutaka Kobayashi
/
jsStudy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0ab81146
authored
Dec 26, 2022
by
Yutaka Kobayashi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
変数名をキャメルケースで統一
1 parent
f74a4f9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
develop/src/assets/js/home.js
develop/src/assets/js/home.js
View file @
0ab8114
...
@@ -10,7 +10,7 @@ class Home {
...
@@ -10,7 +10,7 @@ class Home {
const
button
=
document
.
querySelectorAll
(
".novelList__button"
);
const
button
=
document
.
querySelectorAll
(
".novelList__button"
);
const
modalBack
=
document
.
querySelector
(
".modalBackground"
);
const
modalBack
=
document
.
querySelector
(
".modalBackground"
);
const
modal
=
document
.
querySelectorAll
(
".modal"
);
const
modal
=
document
.
querySelectorAll
(
".modal"
);
const
close
b
utton
=
document
.
querySelector
(
".modal__button"
);
const
close
B
utton
=
document
.
querySelector
(
".modal__button"
);
// モーダルを表示する
// モーダルを表示する
for
(
let
i
=
0
;
i
<
button
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
button
.
length
;
i
++
)
{
...
@@ -24,7 +24,7 @@ class Home {
...
@@ -24,7 +24,7 @@ class Home {
}
}
// モーダルを非表示にする
// モーダルを非表示にする
close
b
utton
.
addEventListener
(
"click"
,
()
=>
{
close
B
utton
.
addEventListener
(
"click"
,
()
=>
{
body
.
classList
.
remove
(
"open"
);
body
.
classList
.
remove
(
"open"
);
modalBack
.
classList
.
remove
(
"open"
);
modalBack
.
classList
.
remove
(
"open"
);
for
(
let
i
=
0
;
i
<
modal
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
modal
.
length
;
i
++
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment