1 2 jQuery(document).ready(function() { 3 var mxnAddon = jQuery(".mxn-addon-textblock-15caee2db6c4e5"); 4 5 // monitor spousteni animaci podrizenych boxu 6 var mxnChildBoxAnimationTrigger = function (addon) { 7 8 var ANIM_DEAFULT = "mxn-animated"; 9 10 var objectsToAnimate; 11 objectsToAnimate = addon 12 .find("[data-mxn-child-box-animation]"); 13 14 for (i=0, size=objectsToAnimate.length; i<size; i++) 15 { 16 objectToAnimate = jQuery(objectsToAnimate[i]); 17 18 anim = mxnGetChildBoxAnim(objectToAnimate); 19 animDelay = mxnGetChildBoxAnimDelay(objectToAnimate); 20 21 (function (thisObj, thisAnim) { 22 23 setTimeout(function () { 24 25 thisObj 26 .css('visibility', 'visible') 27 .addClass(thisAnim) 28 .addClass(ANIM_DEAFULT) 29 .one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend", function () { 30 31 thisObj 32 .removeClass(thisAnim) 33 .removeClass(ANIM_DEAFULT) 34 .attr("style", jQuery.mxnJsFactory.removeOpacity(thisObj.attr("style"))); 35 36 }); 37 38 }, Number(animDelay)); 39 40 })(objectToAnimate, anim); 41 42 } 43 44 } 45 46 var mxnGetChildBoxAnim = function (animObj) { 47 return animObj.attr("data-mxn-child-box-animation"); 48 } 49 50 var mxnGetChildBoxAnimDelay = function (animObj) { 51 return animObj.attr("data-mxn-child-box-animation-delay"); 52 } 53 54 55 56 // 57 if (mxnAddon.attr('mxn-box-is-animated')) 58 mxnAddon.css('visibility', 'visible'); 59 60 jQuery(window).on('scroll', function() { 61 function mxnIsScrolledIntoView(elem) 62 { 63 if (!jQuery(elem).length) 64 return false; 65 66 var elemTop = jQuery(elem).offset().top; 67 var elemHeight = jQuery(elem).outerHeight(true); 68 69 var winHeight = jQuery(window).height(); 70 var winScrollTop = jQuery(window).scrollTop(); 71 72 var winBreakingPoint = (winScrollTop + winHeight / 1.3); 73 74 return (elemTop <= winBreakingPoint || (elemTop + elemHeight) <= (winScrollTop + winHeight))||elemTop<winHeight; 75 76 }; 77 jQuery.each(mxnAddon, function( key, value ) { 78 var addon = jQuery(value); 79 if (mxnIsScrolledIntoView(addon)) 80 { 81 if (!addon.attr('mxn-box-is-animated')) 82 { 83 84 addon 85 .attr('mxn-box-is-animated', true); 86 87 // monitor spousteni animaci podrizenych boxu 88 mxnChildBoxAnimationTrigger(addon); 89 } 90 91 addon.css('visibility', 'visible'); 92 } 93 }); 94 }).scroll(); 95 });
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.