1function decode_html(encoded) { 2 encoded = replaceAll("&gt;", ">", encoded); 3 encoded = replaceAll("&lt;", "<", encoded); 4 encoded = replaceAll("\\\'", "\'", encoded); 5 encoded = replaceAll(""", "\"", encoded); 6 encoded = replaceAll("<br />", "\n", encoded); 7 encoded = replaceAll("&", "&", encoded); 8 encoded = replaceAll("\\\\", "\\", encoded); 9 return encoded; 10} 11 12function replaceAll(find, replace, str) { 13 return str.replace(new RegExp(find, 'g'), replace); 14} 15 16function br(text) { 17 18 var brRegex = new RegExp("(<br\\s\/>|<br>)", "g"); 19 var str = text 20 .replace(/>/g, ">") 21 .replace(/</g, "<") 22 .replace(/&/g, "&") 23 .replace(/"/g, "\"") 24 .replace(/>/g, ">") 25 .replace(/</g, "<") 26 .replace(/&/g, "&") 27 .replace(/"/g, "\"") 28 .replace(/\r/g, "") 29 .replace(/\n/g, "") 30 .replace(brRegex, "<br>"); 31 32 return str; 33} 34 35function hoverbutton_pluginAppObj_164() { 36 37 var container_btn = $('#pluginAppObj_164_container'); 38 var button = $('#pluginAppObj_164 .pluginAppObj_164-button'); 39 40 x5engine.boot.push(function(){ 41 if("Misure Anti-Covid" != ""){ 42 $("#pluginAppObj_164 .div-txt").html(br("Misure Anti-Covid")); 43 } 44 45 var isMobile = x5engine.responsive.isMobileDevice !== 'undefined' && typeof x5engine.responsive.isMobileDevice === "function"; 46 if(isMobile && navigator.userAgent.toLowerCase().indexOf("android") > -1){ 47 $(container_btn).addClass("rem-highlight"); 48 } 49 50 var eff = ""; 51 switch(eff) { 52 case "fade": 53 fade(); 54 break; 55 case "sweep-top": 56 case "sweep-bottom": 57 case "sweep-right": 58 case "sweep-left": 59 sweep(); 60 break; 61 case "shutter-out-vertical": 62 case "shutter-out-horizontal": 63 case "shutter-radial-out": 64 shutter(); 65 break; 66 case "rotate-over": 67 rotate_over(); 68 break; 69 case "rotate-under": 70 rotate_under(); 71 break; 72 } 73 }); 74 75 function fade(){ 76 77 var timeout = 0; 78 container_btn.on('mouseenter', function() { 79 clearTimeout(timeout); 80 var overElem = $('#pluginAppObj_164 .button-wrapper-over'); 81 if (overElem.length == 0) overElem = button.clone().addClass('button-wrapper-over fade').removeAttr('id').attr('id','pluginAppObj_164_overElem'). appendTo(container_btn); 82 setTimeout(function() { 83 overElem.addClass('animated'); 84 }, 10); 85 }).on('mouseleave', function() { 86 var overElem = $('#pluginAppObj_164 .button-wrapper-over'); 87 overElem.removeClass('animated'); 88 timeout = setTimeout(function() { 89 overElem.remove(); 90 }, 300); 91 }); 92 } 93 94 function sweep(){ 95 96 var timeout = 0; 97 container_btn.on('mouseenter', function() { 98 clearTimeout(timeout); 99 var overElem = container_btn.children('.sweeper'); 100 if (overElem.length == 0) overElem = button.clone().removeAttr('id').attr('id','pluginAppObj_164_overElem').appendTo(container_btn).wrap('<div class="sweeper"></div>').addClass('button-wrapper-over sweep').removeAttr('id').attr('id','pluginAppObj_164_overElemWrapper').css('width',button.css('width')).parent(); 101 setTimeout(function() { 102 overElem.addClass('animated'); 103 }, 10); 104 }).on('mouseleave', function() { 105 var overElem = container_btn.children('.sweeper'); 106 overElem.removeClass('animated'); 107 timeout = setTimeout(function() { 108 overElem.remove(); 109 }, 300); 110 }); 111 } 112 113 function shutter(){ 114 115 var timeout = 0; 116 container_btn.on('mouseenter', function() { 117 clearTimeout(timeout); 118 var overElem = container_btn.children('.shutter'); 119 var cloneButton = button.clone(); 120 cloneButton.css('width', container_btn.css('width')); 121 122 if (overElem.length == 0) overElem = cloneButton.clone().removeAttr('id').attr('id','pluginAppObj_164_overElem').appendTo(container_btn).wrap('<div class="shutter"></div>').addClass('button-wrapper-over').removeAttr('id').attr('id','pluginAppObj_164_overElemWrapper').parent(); 123 setTimeout(function() { 124 overElem.addClass('animated'); 125 }, 10); 126 }).on('mouseleave', function() { 127 var overElem = container_btn.children('.shutter'); 128 overElem.removeClass('animated'); 129 timeout = setTimeout(function() { 130 overElem.remove(); 131 }, 300); 132 }); 133 } 134 135 function rotate_under(){ 136 137 var timeout = 0; 138 button.addClass('rotate-u'); 139 container_btn.on('mouseenter', function() { 140 clearTimeout(timeout); 141 var overElem = container_btn.children('.rotate-under'); 142 if (overElem.length == 0) button.clone().addClass('button-wrapper-over rotate-under').removeAttr('id').attr('id','pluginAppObj_164_overElem').appendTo(container_btn); 143 setTimeout(function() { 144 button.addClass('animated'); 145 }, 10); 146 }).on('mouseleave', function() { 147 var overElem = container_btn.children('.rotate-under'); 148 button.removeClass('animated'); 149 timeout = setTimeout(function() { 150 overElem.remove(); 151 }, 300); 152 }); 153 } 154 155 function rotate_over(){ 156 157 var timeout = 0; 158 container_btn.on('mouseenter', function() { 159 clearTimeout(timeout); 160 var overElem = container_btn.children('.rotate-over'); 161 if (overElem.length == 0) button.clone().addClass('button-wrapper-over rotate-over').removeAttr('id').attr('id','pluginAppObj_164_overElem').appendTo(container_btn); 162 setTimeout(function() { 163 container_btn.children('.rotate-over').addClass('animated'); 164 }, 10); 165 }).on('mouseleave', function() { 166 var overElem = container_btn.children('.rotate-over'); 167 overElem.removeClass('animated'); 168 timeout = setTimeout(function() { 169 overElem.remove(); 170 }, 300); 171 }); 172 } 173}
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.