// jQuery
$(document).ready(function() {
// code
})
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
const accordions = document.querySelectorAll(".accordion"); | |
accordions.forEach((accordion) => { | |
accordion.addEventListener("click", function () { | |
// Remove "active" class from all accordions | |
accordions.forEach((acc) => { | |
if (acc !== accordion) { | |
// remove active class | |
acc.classList.remove("active"); | |
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
// 1. Get the path for our input file from | |
// the command line arguments | |
// 2. Check if the input file is readable and contains | |
// valid JSON | |
// 3. Format the contents of the file | |
// 4. Save formatted JSON to another file | |
// 5. Compile our binary | |
package main |