Sha256: 9547d67266539c189ca3910070ea486bf58c0723c681dbd292cdc701f833cdc2

Contents?: true

Size: 673 Bytes

Versions: 10

Compression:

Stored size: 673 Bytes

Contents

import { generateHeaderLinks } from "./linkButtonGenerator.mjs";
import handleSidebar from "./sidebar.mjs";
import handleSearch from "./search.mjs";
import autoExpandDropdowns from "./dropdownExpander.mjs";
import Settings from "./Settings.mjs";

// After loading elements, images, css, etc.
addEventListener("load", () => {
    generateHeaderLinks(document.querySelector("main"));
    handleSearch();

    // Expand dropdowns on print, etc.
    autoExpandDropdowns();
});

// After loading elements, but before loading elements like images.
addEventListener("DOMContentLoaded", () => {
    handleSidebar();
});

// Apply user-specified settings
Settings.applySettings();

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hematite-0.1.9 assets/js/main.mjs
hematite-0.1.8 assets/js/main.mjs
hematite-0.1.7 assets/js/main.mjs
hematite-0.1.6 assets/js/main.mjs
hematite-0.1.5 assets/js/main.mjs
hematite-0.1.4 assets/js/main.mjs
hematite-0.1.3 assets/js/main.mjs
hematite-0.1.2 assets/js/main.mjs
hematite-0.0.12 assets/js/main.mjs
hematite-0.0.11 assets/js/main.mjs