PageSourceSearch

https://winter-project.eu/wp-content/themes/citadela/design/js/mobile.js?ver=1697181508

js winter-project.eu collected 2026-10-08 09:09:44 UTC 1,428 bytes, 58 lines download raw bytes

1/*
2 * Citadela Theme mobile javascripts
3 *
4 */
5
6"use strict";
7
8function citadela_isResponsive(width){
9	var w=window,
10		d=document,
11		e=d.documentElement,
12		g=d.getElementsByTagName('body')[0],
13		x=w.innerWidth||e.clientWidth||g.clientWidth;
14	return x < parseInt(width);
15}
16
17function citadela_isUserAgent(type){
18	return navigator.userAgent.toLowerCase().indexOf(type.toLowerCase()) > -1;
19}
20
21function citadela_isMobile(){
22	// maybe inherit modernizr.touchevents
23	//return isResponsive(640) && (isUserAgent('android') || isUserAgent('iphone') || isUserAgent('ipad') || isUserAgent('ipod'));
24	return isUserAgent('mobile');
25}
26
27function citadela_isTablet(){
28	// maybe inherit modernizr.touchevents
29	return citadela_isResponsive(1024) && ! citadela_isMobile();
30}
31
32function citadela_isDesktop(){
33	return ! citadela_isMobile() && ! citadela_isTablet();
34}
35
36function citadela_isAndroid(){
37	return isUserAgent('android');
38}
39
40function citadela_isIpad(){
41	return isUserAgent('ipad');
42}
43
44function citadela_isTouch(){
45	return (('ontouchstart' in window) || (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0));
46}
47
48function citadela_emToPx(input) {
49	var input = parseFloat(input);
50    var emSize = parseFloat(jQuery("body").css("font-size"));
51    return (emSize * input);
52}
53
54function citadela_pxToEm(input) {
55	var input = parseInt(input);
56    var emSize = parseFloat(jQuery("body").css("font-size"));
57    return (input / emSize);
58}

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.