-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ws2-1371 - Merge main, and commit recompiled css
- Loading branch information
Showing
20 changed files
with
218 additions
and
18,196 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
(function () { | ||
const toggler = (url, state) => { | ||
if (url.indexOf("#") !== -1) { | ||
const sectionName = url.split("#").at(-1); | ||
const link = document.getElementById(sectionName); | ||
|
||
if (link) { | ||
const section = link.closest(".card"); | ||
const content = section.querySelector(".card-body"); | ||
|
||
if (window.location.href.indexOf('#') !== -1) { | ||
const sectionName = window.location.href.split('#').at(-1) | ||
const link = document.getElementById(sectionName); | ||
|
||
if (link) { | ||
const section = link.closest('.card'); | ||
const content = section.querySelector('.card-body') | ||
link.setAttribute("aria-expanded", true); | ||
content.classList.add("show"); | ||
} | ||
} | ||
link.setAttribute("aria-expanded", state); | ||
|
||
if (state) { | ||
content.classList.add("show"); | ||
} else { | ||
content.classList.remove("show"); | ||
} | ||
} | ||
} | ||
}; | ||
|
||
window.addEventListener("hashchange", (event) => { | ||
toggler(event.oldURL, false); | ||
toggler(event.newURL, true); | ||
}); | ||
|
||
window.addEventListener("DOMContentLoaded", () => { | ||
toggler(window.location.href, true); | ||
}); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
@import '../../sass/extends/headings'; | ||
// Override the default headings to match max width of content | ||
.h2, h2, .h3, h3 { | ||
max-width: 700px; | ||
overflow-wrap: break-word; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.