Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ravish shankar
camp
Commits
8d13b239
Unverified
Commit
8d13b239
authored
Sep 18, 2021
by
Abraham Raji
🤙🏻
Browse files
Switch javascript to ES6 syntax
parent
cdf518d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/layouts/index.html
View file @
8d13b239
...
...
@@ -261,10 +261,10 @@
</div>
</div>
<script>
var
modal
=
document
.
getElementById
(
"
ml-modal
"
);
var
modal_btn
=
document
.
getElementById
(
"
ml-modal-open
"
);
var
close_btn
=
document
.
getElementsByClassName
(
"
close-btn
"
)[
0
];
var
subscribe_btn
=
document
.
getElementsByClassName
(
"
subscribe-btn
"
)[
0
];
const
modal
=
document
.
getElementById
(
"
ml-modal
"
);
const
modal_btn
=
document
.
getElementById
(
"
ml-modal-open
"
);
const
close_btn
=
document
.
getElementsByClassName
(
"
close-btn
"
)[
0
];
const
subscribe_btn
=
document
.
getElementsByClassName
(
"
subscribe-btn
"
)[
0
];
modal_btn
.
onclick
=
function
()
{
modal
.
style
.
display
=
"
block
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment