v1.0.0rfc
Login in to the application
// 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 |
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"); | |