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