public static function checkIsMobileDevice (
{Boolean} skipFallbackOnscreenSize
) {}
. {Boolean}
@hint: It is a very basic but effective and quick detection
@return: {Boolean} will return TRUE if Browser seems to be a Mobile Devices, FALSE if not
@param: {Boolean} skipFallbackOnscreenSize *Optional* Default is FALSE ; If set to TRUE will skip the fallback on screensize which may be innacurate
public static checkCookies = (
) => {}
. {Boolean}
@hint: If a browser show that does not supports Cookies may be a situation like user disabled cookies in the browser or is a really unusual or old browser
@return: {Boolean} will return TRUE if Browser supports Cookies and cookies are enabled, FALSE if not or cookies are disabled
Sample code: JavaScript
if(!smartJ$TestBrowser.checkCookies()) {
alert('NOTICE: Your browser does not support Cookies !');
}
The class provide a Browser Compliance Check for JavaScript