This file provides functions and utilities specifically for the smartphone layout of IITC.
Methods
-
inner isSmartphone() → {boolean}
-
Determines if the user's device is a smartphone. Note it should not detect tablets because their display is large enough to use the desktop version. The stock intel site allows forcing mobile/full sites with a vp=m or vp=f parameter. This function supports the same.
Returns:
boolean -True if the user's device is a smartphone, false otherwise.
-
inner runOnSmartphonesAfterBoot()
-
Performs setup tasks for IITC on smartphones after the IITC boot process. This includes initializing mobile info display, adjusting UI elements for mobile compatibility, and setting event handlers for mobile-specific interactions.
-
inner runOnSmartphonesBeforeBoot()
-
Performs initial setup tasks for IITC on smartphones before the IITC boot process. This includes adding smartphone-specific stylesheets and modifying some of the setup functions for mobile compatibility.
-
inner smartphone()
-
Placeholder for smartphone specific manipulations. This function does not implement any logic by itself.
-
inner smartphoneInfo(selectedPortalData)
-
Updates the mobile information bar with portal details when a portal is selected. This function is hooked to the 'portalSelected' event and is specific to the smartphone layout.
Parameters:
Name Type Description selectedPortalData
Object The object containing details about the selected portal.