Alerts JavaScript Code Documentation

Handle Focus Event on Menu Bar Items

Handles the focus event on menu bar items, displaying the corresponding category div and hiding others.


function inFocus() {
    // ... Function code ...
}
        

Check Items Display

Checks the display status of items and adjusts the visibility of the default item accordingly.


function checkItemsDisplay() {
    // ... Function code ...
}
        

Time Update

Updates the time range and fetches new excess reports based on the selected start and end dates.


function time_update() {
    // ... Function code ...
}
        

Retrieve Cookie Value

Retrieves the value of a cookie by its name.

Parameters:


function getCookie(name) {
    // ... Function code ...
}