Skip to content

Commit ea89155

Browse files
committed
Refactor spacing/code org in index.js
1 parent 62cf18a commit ea89155

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

index.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
import './sass/main.scss'
22
import '@fortawesome/fontawesome-free/css/all.css'
33

4-
// slick-carousel configuration
5-
import $ from 'jquery'
6-
import 'slick-carousel'
7-
84

5+
// Hiring message
96
const hiringMessage = `Hey, you.
107
You’re finally awake.
118
You were trying to see the code, right?
@@ -14,11 +11,15 @@ If you’d like to work on this website and other cool projects with hackathons,
1411

1512
console.log(hiringMessage);
1613

17-
// comment generated via js instead of directly in HTML so the hiring message text is only in one place
14+
// Comment generated via js instead of directly in HTML so the hiring message text is only in one place
1815
const comment = document.createComment("\n"+hiringMessage.toString()+"\n");
1916
document.insertBefore(comment, document.firstChild);
2017

2118

19+
// Slick-carousel
20+
import $ from 'jquery'
21+
import 'slick-carousel'
22+
2223
$(document).ready(function() {
2324
$('.carousel').slick({
2425
infinite: true,
@@ -67,6 +68,7 @@ $(document).on('keydown', function(event) {
6768
});
6869

6970

71+
// FAQ Cards hide/show
7072
let card = document.getElementsByClassName("card");
7173
for (let i = 0; i < card.length; i++) {
7274
let accordion = card[i].getElementsByClassName("accordion-header")[0];
@@ -90,6 +92,7 @@ for (let i = 0; i < card.length; i++) {
9092
});
9193
}
9294

95+
9396
// Schedule toggle code
9497
$('.day-second-events').hide();
9598
$('.day-first').click(function() {

0 commit comments

Comments
 (0)