1// PARALLAX CALLING 2//==================================================================== 3//==================================================================== 4( function ( $ ) { 5'use strict'; 6$(document).ready(function(){ 7$(window).bind('load', function () { 8 parallaxInit(); 9 }); 10 function parallaxInit() { 11 testMobile = isMobile.any(); 12 if (testMobile == null) 13 { 14 15 $('.chi-siamo-bg').parallax("50%", 0.5); 16 $('.comunicazione-bg').parallax("50%", 0.5); 17 $('.formazione-bg').parallax("50%", 0.5); 18 $('.iniziative-bg').parallax("50%", 0.5); 19 $('.servizi-e-soluzioni-it-bg').parallax("50%", 0.5); 20 $('.banner').parallax("50%", 0.5); 21 $('.getInTouch-bg').parallax("50%", 0.5); 22 $('.twitter-bg').parallax("50%", 0.5); 23 //$('.twitter-feed').parallax("50%", 0.5); 24 25 26 //$('.parallax .work-teaser-bg').parallax("50%", 0.5); 27 //$('.parallax .about-teaser-bg').parallax("50%", 0.5); 28 //$('.parallax .team-teaser-bg').parallax("50%", 0.5); 29 //$('.parallax .service-teaser-bg').parallax("50%", 0.5); 30 //$('.parallax .blog-teaser-bg').parallax("50%", 0.01); 31 } 32 }
33 parallaxInit(); 34}); 35//Mobile Detect 36var testMobile; 37var isMobile = { 38 Android: function() { 39 return navigator.userAgent.match(/Android/i); 40 }, 41 BlackBerry: function() { 42 return navigator.userAgent.match(/BlackBerry/i); 43 }, 44 iOS: function() { 45 return navigator.userAgent.match(/iPhone|iPad|iPod/i); 46 }, 47 Opera: function() { 48 return navigator.userAgent.match(/Opera Mini/i); 49 }, 50 Windows: function() { 51 return navigator.userAgent.match(/IEMobile/i); 52 }, 53 any: function() { 54 return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); 55 } 56}; 57}( jQuery ));
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.