This namespace contains the responsive functionality.
- Source:
Methods
-
(static) CheckIfTouchDevice()
-
Checks, if this is a touch device and adds a class to the body.
- Source:
-
(static) GetScreenSize() → {String}
-
Returns the active screen size.
- Source:
Returns:
The active screen size.- Type
- String
-
(static) Init()
-
Initialize all responsive functionalities.
- Source:
-
(static) IsSmallerOrEqual(ScreenSize, CompareSize) → {Boolean}
-
Checks if the given ScreenSize is smaller than or equal to CompareSize, based on the screen size names.
Parameters:
Name Type Description ScreenSize
String The first screen size name. CompareSize
String The screen size to compare the first ScreenSite with. - Source:
Returns:
True, if ScreenSize is smaller than or equal to CompareSize, false otherwise.- Type
- Boolean
-
(static) IsTouchDevice() → {Boolean}
-
Checks, if this is a touch device and adds a class to the body.
- Source:
Returns:
True if a touch devices was detected, false otherwise- Type
- Boolean