sidebar

This file provides functions for working with the sidebar.

Methods

Updates the permalink href attribute on mouseover and click events.

inner setupAddons()

Sets up additional elements in the sidebar, such as permalink and about dialog.

inner setupIcons()

Sets up custom icons by appending SVG definitions to the DOM.

inner setupLargeImagePreview()

Sets up event listeners for the large portal image view. This dialog is displayed when a user clicks on the portal photo in the sidebar. It creates a new image preview inside a dialog box.

inner setupPlayerStat()

Renders player details into the website. Since the player info is included as inline script in the original site, the data is static and cannot be updated.

inner setupSidebar()

Sets up the sidebar, including player stats, toggle button, large image preview, etc.

inner setupSidebarToggle()

Initializes the sidebar toggle functionality.

inner setupStyles()

Function to append IITC's custom CSS styles to the <head> element. Overwritten in smartphone.js.