PageSourceSearch

https://www.eurob.org/wp-content/themes/cityguide-eurob/design/js/mobile.js?ver=7.0.2

js eurob.org collected 2026-10-02 07:42:40 UTC 889 bytes, 38 lines download raw bytes

1/*
2 * AIT WordPress Theme
3 *
4 * Copyright (c) 2012-2014, Affinity Information Technology, s.r.o. (http://ait-themes.com)
5 */
6
7"use strict";
8
9function isResponsive(width){
10	var w=window,
11		d=document,
12		e=d.documentElement,
13		g=d.getElementsByTagName('body')[0],
14		x=w.innerWidth||e.clientWidth||g.clientWidth;
15	return x <= parseInt(width);
16}
17
18function isUserAgent(type){
19	return navigator.userAgent.toLowerCase().indexOf(type.toLowerCase()) > -1;
20}
21
22function isMobile(){
23	// maybe inherit modernizr.touchevents
24	return isResponsive(640) && (isUserAgent('android') || isUserAgent('iphone') || isUserAgent('ipad') || isUserAgent('ipod'));
25}
26
27function isTablet(){
28	// maybe inherit modernizr.touchevents
29	return isResponsive(1024) && (isUserAgent('ipad') || isUserAgent('android'));
30}
31
32function isAndroid(){
33	return isUserAgent('android');
34}
35
36function isIpad(){
37	return isUserAgent('ipad');
38}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.