1// Avoid `console` errors in browsers that lack a console. 2(function() { 3 var method; 4 var noop = function () {}; 5 var methods = [ 6 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 7 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 8 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', 9 'timeStamp', 'trace', 'warn' 10 ]; 11 var length = methods.length; 12 var console = (window.console = window.console || {}); 13 14 while (length--) { 15 method = methods[length]; 16 17 // Only stub undefined methods. 18 if (!console[method]) { 19 console[method] = noop; 20 } 21 } 22}()); 23 24// jQuery 1.9 has removed the `$.browser` property, fancybox relies on 25// it, so we patch it here if it's missing. 26// This has been copied from jQuery migrate 1.1.1. 27if ( !jQuery.browser ) { 28 var uaMatch = function( ua ) { 29 ua = ua.toLowerCase(); 30 31 var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) || 32 /(webkit)[ \/]([\w.]+)/.exec( ua ) || 33 /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) || 34 /(msie) ([\w.]+)/.exec( ua ) || 35 ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) || 36 []; 37 38 return { 39 browser: match[ 1 ] || "", 40 version: match[ 2 ] || "0" 41 }; 42 }; 43 44 matched = uaMatch( navigator.userAgent ); 45 browser = {}; 46 47 if ( matched.browser ) { 48 browser[ matched.browser ] = true; 49 browser.version = matched.version; 50 } 51 52 // Chrome is Webkit, but Webkit is also Safari. 53 if ( browser.chrome ) { 54 browser.webkit = true; 55 } else if ( browser.webkit ) { 56 browser.safari = true; 57 } 58 59 jQuery.browser = browser; 60} 61 62/* Caricamento condizionale del video con matchMedia: https://github.com/paulirish/matchMedia.js/ */ 63 64if (window.matchMedia("(max-width: 1024px)").matches) { 65 (function (win) { 66 var doc = win.document; 67 var sez = doc.getElementById('scroller'); 68 var div = document.getElementById("scroller"); 69 if (div) { 70 sez.removeChild(div); 71 var vidCont = document.createElement('div'); 72 vidCont.setAttribute('class', 'preload'); 73 sez.appendChild(vidCont); 74 vidCont.innerHTML = ' '; 75 } 76 })(this); 77} 78 79if (window.matchMedia("(max-width: 600px)").matches) { 80 (function (win) { 81 var doc = win.document; 82 var sez = doc.getElementById('preloadersection'); 83 var div = document.getElementById("containerpreloadersection"); 84 if (div) { 85 sez.removeChild(div); 86 var vidCont = document.createElement('div'); 87 vidCont.setAttribute('class', 'preload'); 88 sez.appendChild(vidCont); 89 vidCont.innerHTML = '<section id="header"><div class="preloadmobile"></div> <div class="h-text"><h1>Carlo Verdone</h1><h2>il sito ufficiale</h2><p>VERSIONE MOBILE</p></div></section>'; 90 } 91 })(this); 92} 93 94 95/* Caricamento condizionale del video con matchMedia: https://github.com/paulirish/matchMedia.js/ */ 96if (window.matchMedia("(max-width: 600px)").matches) { 97 (function (win) { 98 var doc = win.document; 99 var sez = doc.getElementById('mappa'); 100 var div = document.getElementById("containermappa"); 101 if (div) { 102 sez.removeChild(div); 103 var vidCont = document.createElement('div'); 104 vidCont.setAttribute('class', 'mappamobile'); 105 sez.appendChild(vidCont); 106 vidCont.innerHTML = '<div class="centerbutton"><a href="http://goo.gl/maps/054Xq" target="_self"></a></div>'; 107 //*vidCont.innerHTML = '<div class="centerbutton"><a href="https://www.google.com/maps/ms?msid=213864911408441291926.0004f2d9773068c4a4c9b&msa=0" target="_self"></a></div>'; 108 //vidCont.innerHTML = '<div class="centerbutton"><a href="https://mapsengine.google.com/map/edit?mid=zvyQweG4fBA0.kGOWjgpObnt8" target="_self"></a></div>'; 109 //vidCont.innerHTML = '<div class="centerbutton"><input type="button"></div>'; 110 //http://goo.gl/maps/054Xq 111 } 112 })(this); 113}
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.