This file provides functions for working with the sidebar.
Methods
-
inner setPermaLink()
-
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. On the desktop the photo opens in a dialog; on a smartphone the full size image is already rendered at the end of the sidebar, so the click scrolls down to it instead.
-
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 sidebarOnPortalAdded()
-
portalAdded callback to update the sidebar
-
inner sidebarOnPortalDetailLoaded()
-
portalDetailLoaded callback to update the sidebar