Skip to content

Commit

Permalink
Ran prettier on ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
Midlight25 committed Mar 25, 2021
1 parent c4cbd23 commit aff325f
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
'use strict;'
"use strict;";

// Importing Bootstrap Collapse and ScrollSpy
// Tree-shaking!
import { Collapse, ScrollSpy } from 'bootstrap';
import { Collapse, ScrollSpy } from "bootstrap";

console.log("Modules Loaded");

// Enable collapse elements
let collapseElementList:Array<HTMLElement> = [].slice.call(document.querySelectorAll('.collapse'));
let collapseList:Array<Collapse> = collapseElementList.map(function (collapseEl) {
return new Collapse(collapseEl, {
toggle: false
});
let collapseElementList: Array<HTMLElement> = [].slice.call(
document.querySelectorAll(".collapse")
);

let collapseList: Array<Collapse> = collapseElementList.map(function (
collapseEl
) {
return new Collapse(collapseEl, {
toggle: false,
});
});

// Enabling ScrollSpy
let scrollSpyElements:ScrollSpy = new ScrollSpy(document.body, {
target: '#navbarContent'
let scrollSpyElements: ScrollSpy = new ScrollSpy(document.body, {
target: "#navbarContent",
});

0 comments on commit aff325f

Please sign in to comment.