PageSourceSearch

https://www.aegrealestate.com/ru/min/20240521163722.js

js aegrealestate.com collected 2026-09-26 06:02:59 UTC 31,623 bytes, 1 lines download raw bytes

1var isMobile = false;if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Opera Mobile|Kindle|Windows Phone|PSP|AvantGo|Atomic Web Browser|Blazer|Chrome Mobile|Dolphin|Dolfin|Doris|GO Browser|Jasmine|MicroB|Mobile Firefox|Mobile Safari|Mobile Silk|Motorola Internet Browser|NetFront|NineSky|Nokia Web Browser|Obigo|Openwave Mobile Browser|Palm Pre web browser|Polaris|PS Vita browser|Puffin|QQbrowser|SEMC Browser|Skyfire|Tear|TeaShark|UC Browser|uZard Web|wOSBrowser|Yandex.Browser mobile/i.test(navigator.userAgent)) isMobile = true;var resetFormForMobile = '1024';var resetSelectForMobile = '480';var resetHalfMap = '1024';var latDisp = '';var lonDisp = '';var zoomMappaElenco = '';var zonaSelezionata = '';var thumbnailScheda = true;sessJavascript = window.localStorage;var controllo=0;$(window).scroll(function(){var scrollPage = $(document).scrollTop();var windowHeight = $(window).height();var windowWidth = $(window).width();var forScrollMenu = (windowHeight/2)+50;var scrollMenu = $(".intestazione_scroll").length;if (windowWidth>resetFormForMobile && scrollMenu>0){if (scrollPage<forScrollMenu){if(controllo==1) return;controllo=1;$('.intestazione_scroll').animate({"top":"-100px"}, 500);} else if (scrollPage>forScrollMenu){if(controllo==2) return;controllo=2;$('.intestazione_scroll').animate({"top":"0px"}, 500);}} if (scrollPage<forScrollMenu){$("#turnUp").fadeOut();} else if (scrollPage>forScrollMenu){$("#turnUp").fadeIn();}});var initMappaScroll = 0;var initMappa = 0;var initBlog = 0;var initEvidenza = 0;var initSlideFoto = [];var initCarouselFoto = [];$(document).scroll(function(){var scrollPage = $(document).scrollTop();var windowHeight = $(window).height();idBlog = $('.blogEsterno').data('id');if (idBlog!=undefined){positionBlog = ($('.blogEsterno').position().top)-100;if (initBlog==0 && scrollPage>=positionBlog){initBlog=1;var urlBlog = $('.blogEsterno').data('url');caricaBlog ('blogEsterno',idBlog,urlBlog);}}});$(document).ready(function(){windowWidth = $(window).width();$('body').on('click','#respScrollToForm', function(e){scrollToNew('.err'+$(this).data('form'),'500');});$('body').on('click','#respScrollToFormImmo', function(e){scrollToNew('#'+$(this).data('form'),'500','60');});AOS.init({once:true,duration: 1000});idVideoBackground = $('[data-youtube], [data-vbg]').attr('id');if (idVideoBackground!=undefined){jQuery('[data-youtube], [data-vbg]').youtube_background();} $('#openMenuNav').on('click', function(){$('#menuNav').css("width", "100%");$('.menuNav.overlay .closebtn').css("left", "0px");$("body").css({"overflow":"hidden"});});$('#closeMenuNav').on('click', function(){$('#menuNav').css("width", "0%");$('.menuNav.overlay .closebtn').css("left", "-100%");$("body").css({"overflow":"auto"});});$('#openCercaNav').on('click', function(){$('#cercaNav').css("width", "100%");$('.cercaNav.overlay .closebtn').css("left", "0px");$('.cercaNav.overlay .cerca').css("left", "30px");$("body").css({"overflow":"hidden"});});$('#closeCercaNav').on('click', function(){$('#cercaNav').css("width", "0%");$('.cercaNav.overlay .closebtn').css("left", "-100%");$('.cercaNav.overlay .cerca').css("left", "-100%");$("body").css({"overflow":"auto"});});if (navigator.share && windowWidth<=resetFormForMobile) $('.shareDesktop').hide();else $('.shareMobile').hide();$('body').on('click','.cerca_modal',function (){modalRicerca (this.id);});$('#turnUp').click(function(){$('body,html').animate({scrollTop:0},800);});$(".submitdisable").each(function(){var subMit = this;$(subMit).css('display','inline-block');$(subMit).css('opacity','0.5');setTimeout(function(){$(subMit).css('opacity','1');$(subMit).removeAttr('disabled');}, 5000);});var $temp = $("<input>");var $url = $(location).attr('href');$('.copyLink').on('click', function(){$("body").append($temp);$temp.val($url).select();document.execCommand("copy");$temp.remove();$('.txtCopied').text("URL copied!");});$("#myModal").bmdModal();$("#myModalIframe").bmdModalIframe();init_nascondi ();init_input();init_select ();init_autocomplete();});function scroll_halfmap(idDiv){var windowWidth = $(window).width();var startProductBarPos=-1;var bar = document.getElementById(idDiv);var widthbox = bar.clientWidth;window.addEventListener('resize', function(event){widthbox = bar.clientWidth;windowWidth = $(window).width();window.onscroll=function(){if (windowWidth>resetFormForMobile){if(startProductBarPos<0)startProductBarPos=findPosY(bar);if(pageYOffset>startProductBarPos){bar.style.position='fixed';bar.style.width=widthbox+'px';bar.style.top=0;} else{bar.style.position='relative';bar.style.width='100%';}} else{bar.style.position='relative';bar.style.width='100%';}}}, true);window.onscroll=function(){if (windowWidth>resetFormForMobile){if(startProductBarPos<0)startProductBarPos=findPosY(bar);if(pageYOffset>startProductBarPos){bar.style.position='fixed';bar.style.width=widthbox+'px';bar.style.top=0;} else{bar.style.position='relative';bar.style.width='100%';}};}}function findPosY(obj){var curtop = 0;if (typeof (obj.offsetParent) != 'undefined' && obj.offsetParent){while (obj.offsetParent){curtop += obj.offsetTop;obj = obj.offsetParent;} curtop += obj.offsetTop;} else if (obj.y) curtop += obj.y;return curtop;}function sharePage (divClick,divAction){titoloShare = $(divClick).data('titolo');urlShare = $(divClick).data('url');windowWidth = $(window).width();if (navigator.share && windowWidth<=resetFormForMobile){navigator.share({title: titoloShare, url: urlShare}).then(() =>{}) .catch(console.error);} else{showHideDiv (divAction);}}function showHideDiv (divAction){if ($(divAction).css('display')=="none") $(divAction).show();else $(divAction).hide();}function modalRicerca (modalCheck,divBlocco){styleModal = $('.'+modalCheck).css('display');inputValue = modalCheck;addSectionMacro = ".list_macro";addSectionLista = ".list_tipologie";if (modalCheck=="ComuneDett") inputValue = "localita";if (divBlocco=="sectionZoneMobile") inputValue = "localita_mobile";if (styleModal=="none"){$('.'+modalCheck).fadeIn();$('body').css({'overflow':'hidden'});if (zonaSelezionata>0){$('#mob_zona_'+zonaSelezionata).click();$('.modalRicerca .sectionModal .list_tipologie').animate({scrollTop: 0},'fast');
1setTimeout(function(){posizioneCheck = $('#mob_zona_'+zonaSelezionata).offset().top - $('.modalRicerca .sectionModal .list_tipologie').offset().top;$('.modalRicerca .sectionModal .list_tipologie').animate({scrollTop: (posizioneCheck-15)},'slow');},200);}} else{$numeroSel=0;testoMulti="";$('.'+modalCheck+' '+addSectionLista+' input:checked').each(function(){$numeroSel++;if ($numeroSel==1) testoMulti = $(this).data('nomecampo');else testoMulti += ", "+$(this).data('nomecampo');});if (testoMulti==""){macroScelto = $('.'+modalCheck+' '+addSectionMacro+' input:checked').data('nomecampo');if (macroScelto!=undefined) testoMulti=macroScelto;} if (testoMulti!="") $('#'+inputValue).val(""+testoMulti+"");else $('#'+inputValue).val('');$('.'+modalCheck).fadeOut();$('body').css({'overflow':'auto'});}}function resetRicerca (){$('#disegnataMappa').remove();$('#autoCompInterno').show();$('#map_circle').val('0');$('#map_polygon').val('0');$('#map_zoom').val('0');} function openRespRicerca (){$('.ricercaResponsive').animate({"top":"0px"}, 500);$(".ricercaResponsive .closeMenu").show();$(".ricercaResponsive .cerca").show();$("body").css({"overflow":"hidden"});}function closeRespRicerca (){$('.ricercaResponsive').animate({"top":"100vh"}, 500);$(".ricercaResponsive .closeMenu").hide();$(".ricercaResponsive .cerca").hide();$("body").css({"overflow":"auto"});}function actionSubMenu (idSub){if ($('#'+idSub).css('display')=='none') $('#'+idSub).attr('style','display: block !important');else $('#'+idSub).attr('style','display: none !important');}function openRespMenu (){$('.menuResponsive').animate({"top":"0px"}, 500);$(".menuResponsive .lingueResp").show();$(".menuResponsive .closeMenu").show();$("body").css({"overflow":"hidden"});}function closeRespMenu (){$('.menuResponsive').animate({"top":"100vh"}, 500);$(".menuResponsive .lingueResp").hide();$(".menuResponsive .closeMenu").hide();$("body").css({"overflow":"auto"});}function actionHalfMap (divClass,actionMap,sezione){if (actionMap=="show"){$('.'+divClass+' .mappa').show();$('.immoHalfMap .closeHalfMap').css('display','block');$("body").css({"overflow":"hidden"});if (sezione=="immobili") ImmobiliMap();else if (sezione=="agenzie") AgenzieMap ();} else if (actionMap=="hide"){$('.'+divClass+' .mappa').hide();$('.immoHalfMap .closeHalfMap').css('display','none');$("body").css({"overflow":"auto"});}}function init_nascondi (){$(".nascondi").each(function(){numero = $(this).attr('href').replace("tel:", "");numero = numero.substring(0, 8)+" ...";$(this).html('<i class="la la-phone"></i> '+numero);});$(".nascondi").click(function(){numero = $(this).attr('href').replace("tel:", "");$(this).html('<i class="la la-phone"></i> '+numero);});$(".nascondi_wapp").each(function(){numero = $(this).attr('href').replace("https://wa.me/", "");numero = numero.substring(0, 8)+" ...";$(this).html('<i class="la la-whatsapp"></i> '+numero);});$(".nascondi_wapp").click(function(){numero = $(this).attr('href').replace("https://wa.me/", "");$(this).html('<i class="la la-whatsapp"></i> '+numero);});}function cambioVisualizzazione (divHide,divShow,divNormal,divActive,sezione,azione=''){windowWidth = $(window).width();zoomMappaElenco = $('#ZoomMappaAgenzie').data('zoom');if (azione=="hide"){$('.closeMapAgeUte').css('display','none');$("body").css({"overflow":"auto"});$('.'+divShow).hide();} else if (windowWidth<=resetHalfMap && sezione=="agenzie"){$('.closeMapAgeUte').css('display','block');$("body").css({"overflow":"hidden"});$('.'+divShow).show();if (sezione=="agenzie") AgenzieMap ();} else{$('.'+divNormal).removeClass('active');$('.'+divActive).addClass('active');$('.'+divHide).hide();$('.'+divShow).show();if (sezione=="agenzie") AgenzieMap ();}}function leggiCookie(nomeCookie){if (document.cookie.length > 0){var inizio = document.cookie.indexOf(nomeCookie + "=");if (inizio != -1){inizio = inizio + nomeCookie.length + 1;var fine = document.cookie.indexOf(";",inizio);if (fine == -1) fine = document.cookie.length;return unescape(document.cookie.substring(inizio,fine));}else{return "";}} return "";}function scriviCookie(nomeCookie,valoreCookie,durataCookie){var d = new Date();d.setTime(d.getTime() + (durataCookie*12*60*60*1000));var expires = d.toGMTString();document.cookie = nomeCookie + '=' + escape(valoreCookie) + ';expires=' + expires + ';path=/';}function removeImmoCookie(idImmobile,titAlert,txtAlert){swal({html: true, title: titAlert, text: txtAlert, icon: "warning", buttons:{cancel:{text: "No!", value: null, visible: true, closeModal: true,}, confirm:{text: "Si!", value: true, visible: true, closeModal: true}}}) .then((isConfirm) =>{if (isConfirm){setImmoCookie(idImmobile);$('#prefetiti_'+idImmobile).remove();return false;}});return false;}function setImmoCookie(idImmobile, event){if (event){event.preventDefault();} classOra = $('#pref_'+idImmobile).parent().attr('class');classScheda = $('#pref_'+idImmobile).attr('class');numPreferiti = parseInt($('.countPreferiti').html());$('#preferiti_top').removeClass("DispPreferiti");if (classOra=="immoPreferiti " || classOra=="immoPreferiti"){numPreferitiOra = numPreferiti+1;$('#pref_'+idImmobile).parent().removeClass(classOra);$('#pref_'+idImmobile).parent().addClass("immoPreferiti attivo");$('.countPreferiti').html(numPreferitiOra);if (classScheda=="far fa-heart"){$('#pref_'+idImmobile).removeClass(classScheda);$('#pref_'+idImmobile).addClass("fas fa-heart");} action="1";} else{numPreferitiOra = numPreferiti-1;$('#pref_'+idImmobile).parent().removeClass(classOra);$('#pref_'+idImmobile).parent().addClass("immoPreferiti ");$('.countPreferiti').html(numPreferitiOra);if (classScheda=="fas fa-heart"){$('#pref_'+idImmobile).removeClass(classScheda);$('#pref_'+idImmobile).addClass("far fa-heart");} action="0";} if (numPreferitiOra>"0"){$('#preferiti_top').addClass("DispPreferiti");} jQuery.ajax({scriptCharset: "UTF-8", type: "POST", url: link+'controller/app.php', dataType: "json", data:{type_request: 'immobili_cookie', idImmobile: idImmobile, action: action}, success: function(data){alertNew (data[0].testo,data[0].titolo,data[0].icona);}});}function init_zoomGallery(){$('body').on('click','.ClickZoomGallery', function(e){numFoto = $(this).attr('data-foto');$("#zoomGallery").css({"display":"block"});$("body").css({"overflow":"hidden"});if (startBxSlider==0) initZoomSlider();swZoom.slideTo(numFoto, 0);});$('body').on('click','.closeZoomGallery', function(e){$("#zoomGallery").css({"display":"none"});$("body").css({"overflow":"auto"});});$('body').on('click','#allThumb', function(e){$(".singleThumb").css({"display":"block"});$(".multipleThumb").css({"display":"block"});$(".allThumb").css({"display":"none"});$(".carouselThumb").css({"display":"none"});});$('body').on('click','#singleThumb', function(e){$(".singleThumb").css({"display":"none"});$(".multipleThumb").css({"display":"none"});$(".allThumb").css({"display":"block"});$(".carouselThumb").css({"display":"block"});});$('body').on('click','.ClickZoomGalleryThumb', function(e){$(".singleThumb").css({"display":"none"});$(".multipleThumb").css({"display":"none"});$(".allThumb").css({"display":"block"});$(".carouselThumb").css({"display":"block"});numFoto = $(this).attr('data-foto');swZoom.slideTo(numFoto, 0);});}function chiudiModal (){$('.btn-close').trigger('click');}function openSezScheda (sezioneScheda){if ($('#'+sezioneScheda).css('display')=='none'){$( '#'+sezioneScheda ).slideDown( "slow", function(){$('#'+sezioneScheda+'Ico').removeClass( "fa-angle-down" );$('#'+sezioneScheda+'Ico').addClass( "fa-angle-up" );$('#'+sezioneScheda+'Piu').hide();$('#'+sezioneScheda+'Meno').show();});if (sezioneScheda=="sezTour"){$('.iframeTour').each(function (index){$(this).attr('src',$(this).data('srcopen'));});} if (sezioneScheda=="sezMappa") initialize('map_canvas_immobile');} else $( '#'+sezioneScheda ).slideUp( "slow", function(){$('#'+sezioneScheda+'Ico').removeClass( "fa-angle-up" );$('#'+sezioneScheda+'Ico').addClass( "fa-angle-down" );$('#'+sezioneScheda+'Piu').show();$('#'+sezioneScheda+'Meno').hide();});}function showThumb (sezioneScheda){var HthumbMasonry = $('#'+sezioneScheda ).height();if (HthumbMasonry=='350'){$('#'+sezioneScheda ).css('height','auto');$('#'+sezioneScheda+'Ico').removeClass( "fa-angle-down" );$('#'+sezioneScheda+'Ico').addClass( "fa-angle-up" );$('#'+sezioneScheda+'Piu').hide();$('#'+sezioneScheda+'Meno').show();} else{$( '#'+sezioneScheda ).css('height','350px');$('#'+sezioneScheda+'Ico').removeClass( "fa-angle-up" );$('#'+sezioneScheda+'Ico').addClass( "fa-angle-down" );$('#'+sezioneScheda+'Piu').show();$('#'+sezioneScheda+'Meno').hide();$('html, body').animate({scrollTop: ($('#'+sezioneScheda+'').offset().top)-'230'}, 1000);}}function saveVisit (id_sezione){jQuery.ajax({scriptCharset: "UTF-8", type: "POST", url: link+'controller/app.php', data:{type_request: 'immobili_visti_cookie', idImmobile: id_sezione}});}function saveStats (id_sezione,id_agenzia,sezione){jQuery.ajax({scriptCharset: "UTF-8", type: "POST", url: link+'controller/app.php', data:{type_request: 'stats_schede', id_sezione: id_sezione, id_agenzia: id_agenzia, sezione: sezione}});}function controlloCercaAgenzieAgenti (){autoCompleteLocalitaAgenzie = $('#localita_agenzia').val();autoCompleteLocalitaAgenti = $('#localita_agente').val();if (autoCompleteLocalitaAgenzie!='' || autoCompleteLocalitaAgenti!=''){autoRegione = $('#autoAgeRegione').val();autoProvincia = $('#autoAgeProvincia').val();autoComune = $('#autoAgeComune').val();autoAgenzia = $('#autoAgeAgenzia').val();autoAgente = $('#autoAgeAgente').val();selezAutoCompleteAU=0;if (autoRegione!="0") selezAutoCompleteAU++;if (autoProvincia!="0") selezAutoCompleteAU++;if (autoComune!="0") selezAutoCompleteAU++;if (autoAgenzia!="0") selezAutoCompleteAU++;if (autoAgente!="0") selezAutoCompleteAU++;if (selezAutoCompleteAU==0){$( ".ui-menu-item" ).first().trigger("click");}} return true;}function controlloCercaImmobile (){autoCompleteLocalita = $('#localita').val();if (autoCompleteLocalita!=''){autoRegione = $('#autoRegione').val();autoProvincia = $('#autoProvincia').val();autoComune = $('#autoComune').val();autoZona = $('#autoZona').val();autoCodice = $('#autoCodice').val();selezAutoComplete=0;if (autoRegione!="0") selezAutoComplete++;if (autoProvincia!="0") selezAutoComplete++;if (autoComune!="0") selezAutoComplete++;if (autoZona!="0") selezAutoComplete++;if (autoCodice!="") selezAutoComplete++;if (selezAutoComplete==0){$( ".ui-menu-item" ).first().trigger("click");return false;}} return true;}
1function halfmapHover (markerCluster='no'){windowWidth = $(window).width();if (windowWidth>resetHalfMap){$(".halfMapEvent").on("mouseenter", ".list-halfmap-mappa", function(){idImmobileOver = $(this).data('idimmobile');tipoMappa = $('#halfmapImmobili').data('tipo');if (typeof(markers[idImmobileOver]) !== 'undefined'){if (tipoMappa=="google"){google.maps.event.trigger(markers[idImmobileOver], 'click');} else{var LNG = markers[idImmobileOver].getLatLng().lng;var LAT = (markers[idImmobileOver].getLatLng().lat)+0.002;if (LAT!="0" && LNG!="0"){if (markerCluster=="no") mymap.panTo([LAT, LNG]);else mymap.setView([LAT, LNG],16);markers[idImmobileOver].openPopup();markers[idImmobileOver].setIcon(icoMarkerIconRoll[idImmobileOver]);}}}});$(".halfMapEvent").on("mouseleave", ".list-halfmap-mappa", function(){idImmobileOver = $(this).data('idimmobile');tipoMappa = $('#halfmapImmobili').data('tipo');if (typeof(markers[idImmobileOver]) !== 'undefined'){if (tipoMappa=="google"){google.maps.event.trigger(markers[idImmobileOver], 'chiudi');} else{var LNG = markers[idImmobileOver].getLatLng().lng;var LAT = markers[idImmobileOver].getLatLng().lat;if (LAT!="0" && LNG!="0"){markers[idImmobileOver].closePopup();markers[idImmobileOver].setIcon(icoMarkerIcon[idImmobileOver]);}}}});}} function paginateAjax (urlLoad,moduloElenco,scroll='yes'){$('#'+moduloElenco+'').html('');$('#'+moduloElenco+'').load(urlLoad);if (scroll=="yes") scrollToNew('#'+moduloElenco+'','500','200');}function scrollToNew(divScroll,timeScroll=0,rimuoviPx=0){$('html, body').animate({scrollTop: ($(divScroll).offset().top)-rimuoviPx}, timeScroll);}function clickTel (pagina,sezione,idsezione,numero){jQuery.ajax({scriptCharset: "UTF-8", type: "POST", url: link+'controller/app.php', data:{type_request: 'save_tel', pagina: pagina, sezione: sezione, idsezione: idsezione, numero: numero}});}function clickWapp (pagina,sezione,idsezione,numero){jQuery.ajax({scriptCharset: "UTF-8", type: "POST", url: link+'controller/app.php', data:{type_request: 'save_wapp', pagina: pagina, sezione: sezione, idsezione: idsezione, numero: numero}});}function carica_agenzie (idRegione){jQuery.ajax({scriptCharset: "UTF-8", type: "POST", url: link+'controller/agenzie.php', data:{type_request: 'agenzie_lavora', idRegione: idRegione}, success: function(data){$('#lavoraConNoi').html(data);}});}function caricaBlog (divBlog,idBlog,urlBlog){url='moduli/'+idBlog+'.php';$('.'+divBlog).html('');if (url!=''){jQuery.ajax({scriptCharset: "UTF-8", type: "POST", url: link+url, data:{idBlog: idBlog, urlBlog: urlBlog}, success: function(data){$('.'+divBlog).html(data);}, error: function(data){alertNew(data);}});}}function caricaMappa (divMappa,idMappa,centro,zoom){url='plugin/mappe/'+idMappa+'.php';$('.'+divMappa).html('<div class="spinnermappa"><i class="fa fa-spinner fa-spin"></i></div>');if (url!=''){jQuery.ajax({scriptCharset: "UTF-8", type: "POST", url: link+url, data:{idMappa: idMappa, centro: centro, zoom: zoom}, success: function(data){$('.'+divMappa).html(data);}, error: function(data){alertNew(data);}});}}(function($){$.permalink = function(str){var parts = str.split(' ');var $permalink = [], len = parts.length, i = 0;for (i;i < len;i++){var part = parts[i];var $part = part.replace("'", ''). replace('à', 'a'). replace('è', 'e'). replace('é', 'e'). replace('ì', 'i'). replace('ù', 'u'). replace('ò', 'o'). replace('"', ''). replace('$', ''). replace('%', ''). replace('&', ''). replace('(', ''). replace(')', ''). replace('=', ''). replace('£', ''). replace('ç', ''). replace('§', ''). replace('^', ''). replace('|', ''). replace('!', ''). replace('’', ''). replace('“', ''). replace('”', ''). replace(':', ''). replace('?', ''). replace('<', ''). replace('>', ''). replace('\'', ''). replace(',', ''). replace('.', ''). replace('«', ''). replace('»', ''). replace('"', ''). replace('/', ''). replace('\\', ''). replace(' ', '-'). replace('[', ''). replace(']', ''). replace(';', ''). replace('–', '-'). replace('°', '');$permalink.push($part);} var $title = $permalink.join('-');return $title.toLowerCase();};})(jQuery);function crea_number_password(campoPassword){var chars = "0123456789";var passwordLength = 6;var password = "";for (var i = 0;i <= passwordLength;i++){var randomNumber = Math.floor(Math.random() * chars.length);password += chars.substring(randomNumber, randomNumber +1);} $("#"+campoPassword).val(password);}function crea_password(campoPassword){var elencoCaratteri="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";var minimoCaratteri=6;var massimoCaratteri=15;var differenzaCaratteri=massimoCaratteri-minimoCaratteri;var lunghezza=Math.round((Math.random()*differenzaCaratteri)+minimoCaratteri);var incremento=0;var password="";while(incremento<lunghezza){password+=elencoCaratteri.charAt(Math.round(Math.random()*elencoCaratteri.length));incremento++;} $("#"+campoPassword).val(password);}function addslashes (str){return (str + '').replace(/[\\"']/g, '\\$&').replace(/\u0000/g, '\\0');}function openDisegnoMappa(){statoDiv = $('.boxModalRicerca.disegnoMappa').css('display');if (statoDiv=="none"){$('.disegnoMappa').show();$('<iframe src="'+link+'layout/app/moduli/disegno_mappa.php?type=iframe&latDisp='+latDisp+'&lonDisp='+lonDisp+'" frameborder="0" scrolling="no" class="FrameDisegnoMappa"></iframe>').appendTo('#disegnoMappa');} else{$('.disegnoMappa').hide();$('#disegnoMappa').html('');}}function openDiv(diOpen){statoDiv = $('#'+diOpen).css('display');if (statoDiv=="none"){$('#'+diOpen).slideDown( "slow", function(){});if (diOpen=='avanzataDett') $('.arrowAvanzata').hide();} else{$('#'+diOpen).slideUp( "slow", function(){});if (diOpen=='avanzataDett') $('.arrowAvanzata').show();}}function init_autocomplete(){setTimeout(function(){$( "#localita_mobile" ).focus(function(){$('#localita_mobile').val('');$('#autoRegioneMobile').val('0');$('#autoProvinciaMobile').val('0');$('#autoComuneMobile').val('0');$('#autoZonaMobile').val('0');$('#autoCodiceMobile').val('');$('#sectionZoneMobile').html('');});$( "#localita" ).focus(function(){$('#localita').val('');$('#autoRegione').val('0');$('#autoProvincia').val('0');$('#autoComune').val('0');$('#autoZona').val('0');$('#autoCodice').val('');$('#sectionZone').html('');});$( "#localita_agenzia" ).focus(function(){$('#localita_agenzia').val('');$('#autoAgeProvincia').val('0');$('#autoAgeComune').val('0');$('#autoAgeAgenzia').val('0');$('#autoAgeAgente').val('0');});$( "#localita_agente" ).focus(function(){$('#localita_agente').val('');$('#autoAgeProvincia').val('0');$('#autoAgeComune').val('0');$('#autoAgeAgenzia').val('0');$('#autoAgeAgente').val('0');});},200);}
1function init_select (){if (windowWidth<=1){$('.select2-agenzieagenti') .on('change', function (e){valoreSelezionato = this.value;linkAction = $('#actionUrl_'+valoreSelezionato).val();$("#cercaFormAgenzieAgenti").attr("action", linkAction);$('#localita_agenzia').val('');$('#localita_agente').val('');$("#ricerca_agenzia").css("display","none");$("#ricerca_agente").css("display","none");$("#ricerca_"+valoreSelezionato).css("display","inline-block");});$('.select2-lavora') .on('change', function (e){valoreSelezionato = this.value;carica_agenzie (valoreSelezionato);$("#lavoraAfterShow").css("display","block");});$('.select2-basic').removeClass('select2-basic');$('.select2-search').removeClass('select2-search');} else{$('.select2-agenzieagenti').select2({minimumResultsForSearch: -1}) .on('change', function (e){valoreSelezionato = this.value;linkAction = $('#actionUrl_'+valoreSelezionato).val();$("#cercaFormAgenzieAgenti").attr("action", linkAction);$('#localita_agenzia').val('');$('#localita_agente').val('');$("#ricerca_agenzia").css("display","none");$("#ricerca_agente").css("display","none");$("#ricerca_"+valoreSelezionato).css("display","inline-block");});$('.select2-lavora').select2({minimumResultsForSearch: -1}) .on('change', function (e){valoreSelezionato = this.value;carica_agenzie (valoreSelezionato);$("#lavoraAfterShow").css("display","block");});$('.select2-basic').select2({minimumResultsForSearch: -1});$('.select2-search').select2();} $('.select2-ajax-loc').select2() .on('change', function (e){valore = $(this).val();idselect = this.id;testo = $('#'+idselect+' option:selected').text();campo = $(this).attr('rel');nome_campo = $(this).attr('name');placeSelected = $(this).data('selezionati');carica_localita (valore, campo, nome_campo);});$('.select2-search-multiple').select2({closeOnSelect : false, allowHtml: true, allowClear: false, tags: true}) .on('change', function (e){idselect = this.id;testo = $('#'+idselect+' option:selected').text();placeSelected = $(this).data('selezionati');var uldiv = $(this).siblings('span.select2').find('ul');var count = uldiv.find('li').length - 1;if (count>1) uldiv.html("<li><span>"+count+" "+placeSelected+"</span></li>");else if (count==1) uldiv.html("<li><span>"+testo+"</span></li>");});$('.select2-ajax-loc-multiple').select2({closeOnSelect : false, allowHtml: true, allowClear: false, tags: true}) .on('change', function (e){valore = $(this).val();idselect = this.id;testo = $('#'+idselect+' option:selected').text();campo = $(this).attr('rel');nome_campo = $(this).attr('name');placeSelected = $(this).data('selezionati');carica_localita (valore, campo, nome_campo);var uldiv = $(this).siblings('span.select2').find('ul');var count = uldiv.find('li').length - 1;if (count>1) uldiv.html("<li><span>"+count+" "+placeSelected+"</span></li>");else if (count==1) uldiv.html("<li><span>"+testo+"</span></li>");});$('.select2-ajax-loc-multiple, .select2-search-multiple').each(function (){idselect = this.id;testo = $('#'+idselect+' option:selected').text();placeSelected = $(this).data('selezionati');var uldiv = $(this).siblings('span.select2').find('ul');var count = uldiv.find('li').length - 1;if (count>1) uldiv.html("<li><span>"+count+" "+placeSelected+"</span></li>");else if (count==1) uldiv.html("<li><span>"+testo+"</span></li>");});}function carica_localita (valore, campo, nome_campo, divBlocco="sectionZone"){if (nome_campo == 'Nazione'){$(".naz_all").remove();if ($("[name='Regione[]']").length > 0) var selectCambio = "Regione";else if ($("[name='Provincia[]']").length > 0) var selectCambio = "Provincia";else if ($("[name='Comune[]']").length > 0) var selectCambio = "Comune";else if ($("[name='Zona[]']").length > 0) var selectCambio = "Zona";} if (nome_campo == 'Regione[]'){$(".reg_all").remove();$(".prov_all").remove();$(".com_all").remove();if ($("[name='Provincia[]']").length > 0) var selectCambio = "Provincia";else if ($("[name='Comune[]']").length > 0) var selectCambio = "Comune";else if ($("[name='Zona[]']").length > 0) var selectCambio = "Zona";} if (nome_campo == 'Provincia[]'){$(".prov_all").remove();$(".com_all").remove();if ($("[name='Comune[]']").length > 0) var selectCambio = "Comune";else if ($("[name='Zona[]']").length > 0) var selectCambio = "Zona";} if (nome_campo == 'Comune[]'){$(".com_all").remove();if ($("[name='Zona[]']").length > 0) var selectCambio = "Zona";} if (nome_campo == 'ComuneAuto[]'){$(".com_all").remove();selectCambio = "ZonaAuto";} if (valore!=0 && selectCambio!=''){var url = link+"layout/app/cerca_funzioni.php?selectCambio="+selectCambio+"&campo="+campo+"&nome_campo="+nome_campo+"&valore="+valore;jQuery.ajax({scriptCharset: "UTF-8" , type: "GET", url: url, success: function(data){if (selectCambio=="ZonaAuto"){if (data!=''){$('#'+divBlocco).html(data);modalRicerca('ComuneDett',divBlocco);}} else{eval(data);}}, error: function(data){alert(data);}});return false;}}function init_input(){$('.input__field').keyup(function(){if ($(this).val() !== '') $(this).parent().addClass("input--filled");$(this).on( "focus", function(){$(this).parent().addClass("input--filled");});$(this).on( "blur", function(){if ($(this).val() === '') $(this).parent().removeClass("input--filled");});});if (!String.prototype.trim){(function(){var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;String.prototype.trim = function(){return this.replace(rtrim, '');};})();} [].slice.call( document.querySelectorAll( 'input.input__field, textarea.input__field' ) ).forEach( function( inputEl ){if( inputEl.value.trim() !== '' ){classie.add( inputEl.parentNode, 'input--filled' );} inputEl.addEventListener( 'focus', onInputFocus );inputEl.addEventListener( 'blur', onInputBlur );} );function onInputFocus( ev ){classie.add( ev.target.parentNode, 'input--filled' );} function onInputBlur( ev ){if( ev.target.value.trim() === '' ){classie.remove( ev.target.parentNode, 'input--filled' );}}};function alertNew (txtAlert,titAlert='Attenzione!',iconAlert='warning'){if (typeof txtAlert !== 'object' && txtAlert !== null){swal({html: true, title: titAlert, text: txtAlert, icon: iconAlert, buttons:{confirm:{text: "Chiudi!", value: null, visible: true, closeModal: true,}}});return false;}}function confermaCron (elem,titAlert,txtAlert){swal({html: true, title: titAlert, text: txtAlert, icon: "warning", buttons:{cancel:{text: "No!", value: null, visible: true, closeModal: true,}, confirm:{text: "Si!", value: true, visible: true, closeModal: false}}}) .then((isConfirm) =>{if (isConfirm){linkAjax = $(elem).attr('href');returnPage = $(elem).attr('data-returnpage');jQuery.ajax({scriptCharset: "UTF-8" , type: "POST", url: linkAjax, success: function(data){if(data=="1"){window.location.href=returnPage;}}, error: function(data){alertNew(data);}});return false;}});return false;}function conferma (elem,titAlert,txtAlert){swal({html: true, title: titAlert, text: txtAlert, icon: "warning", buttons:{cancel:{text: "No!", value: null, visible: true, closeModal: true,}, confirm:{text: "Si!", value: true, visible: true, closeModal: false}}}) .then((isConfirm) =>{if (isConfirm) window.location.href = $(elem).attr('href');});return false;}(function($){$.fn.bmdModalIframe = function( options ){var self = this;$('body').on('click','.bmd-modalButtonIframe', function(e){e.preventDefault();var dataVideo ={'src': $(this).attr('data-bmdSrc')};$('.embed-responsive').css('background','#000000');$('.modal-dialog').css('width','96%');$('.modal-dialog').css('max-width','unset');$(self).find("iframe").attr(dataVideo);$("body").css({"overflow":"hidden"});});this.on('hidden.bs.modal', function(){$(this).find('iframe').html("").attr("src", "");$("body").css({"overflow":"auto"});});return this;};$.fn.bmdModal = function( options ){$('body').on('click','.bmd-modalButton', function(e){e.preventDefault();idDivContent = $(this).attr('data-bmdSrc');contDivModal = $(idDivContent).html();$('.embed-responsive').css({'background':'#ffffff','height':'100%','overflow':'auto','padding':'0px 0px 0px 0px'});$('.modal-body').css('min-height','400px');$('.embed-responsive').html(contDivModal);$("body").css({"overflow":"hidden"});});this.on('hidden.bs.modal', function(){$('.embed-responsive').html('');$("body").css({"overflow":"auto"});});return this;};})(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.