1function animatedimage_pluginAppObj_344() { 2 3 //WXPA-897. Control variable if i clicked on mobile the side div 4 var hoverEvent_pluginAppObj_344; 5 6 $(document).ready(function(){ 7 //Triggering the back side visibility 8 switch("mouseover"){ 9 case "click": 10 $('#iandt_pluginAppObj_344 .wrapper').click( function(){ 11 $(this).toggleClass('back-visible'); 12 }); 13 break; 14 case "timer": 15 setInterval(function() { 16 $('#iandt_pluginAppObj_344 .wrapper').toggleClass('back-visible'); 17 },2000); 18 break; 19 case "mouseover": 20 $('#iandt_pluginAppObj_344 .wrapper').hover(function(e){ 21 hoverEvent_pluginAppObj_344 = true; 22 $(this).addClass('back-visible'); 23 setTimeout(function(){ 24 hoverEvent_pluginAppObj_344 = false; 25 }, 100); 26 }, function(){ 27 hoverEvent_pluginAppObj_344 = false;
28 $(this).removeClass('back-visible'); 29 }); 30 break; 31 } 32 33 var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); 34 if(isMobile && "zoom" == "none"){ 35 //WXPA-897. Fix mobile hover/click. I need to manage click only for "none" effect 36 $('#iandt_pluginAppObj_344 .wrapper a').each(function(){ 37 // Cache event 38 var existing_event = this.onclick; 39 // Remove the event from the link 40 this.onclick = null; 41 // Add a check in for the class wrapper if present back-visible 42 $(this).click(function(){ 43 if(!hoverEvent_pluginAppObj_344 && 44 $('#iandt_pluginAppObj_344 .wrapper').hasClass('back-visible')) { 45 // Reattach your original onclick 46 if(existing_event) $(this).click(existing_event); 47 } 48 else{ 49 hoverEvent_pluginAppObj_344 = false;
50 return false; 51 } 52 }); 53 }); 54 55 } 56 }); 57}
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.