PageSourceSearch

https://stroymaster-70.ru/wp-content/themes/Impreza/common/js/base/ripple.min.js

js stroymaster-70.ru collected 2026-09-24 11:52:51 UTC 2,384 bytes, 5 lines download raw bytes

1jQuery(function($){"use strict";var $body=document.body||document.documentElement,$bodyStyle=$body.style,isTransitionsSupported=$bodyStyle.transition!==undefined||$bodyStyle.WebkitTransition!==undefined,duration=400,diff,delay;var removeRipple=function($ripple){$ripple.off();diff=Date.now()-Number($ripple.data('ripple-time'));delay=diff<duration?duration-diff:100;if(isTransitionsSupported){setTimeout(function(){$ripple.addClass("ripple-out")},delay)}else{$ripple.animate({"opacity":0},100,function(){$ripple.trigger("transitionend")})}
2$ripple.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){setTimeout(function(){$ripple.remove()},300)})};$.fn.mdRipple=function(){return this.each(function(){var $element=$(this),$container,containerOffset;if(!$element.find('.ripple-container').length){$element.append('<span class="ripple-container"></span>')}
3$container=$element.find(".ripple-container");var lastTouch=null;if($.isMobile){$element.on('touchstart touchmove',function(e){e=e.originalEvent;if(e.touches.length===1){lastTouch=e.touches[0]}})}
4$element.on($.isMobile?'touchstart':'mousedown',function(e){if(e.button===2)return!1;var offsetLeft,offsetTop,offsetRight,$ripple=$('<span class="ripple"></span>'),rippleSize=Math.max($element.outerWidth(),$element.outerHeight())/Math.max(20,$ripple.outerWidth())*2.5;containerOffset=$container.offset();$container.append($ripple);if(!$.isMobile){offsetLeft=e.pageX-containerOffset.left;offsetTop=e.pageY-containerOffset.top}else if(lastTouch!==null){offsetLeft=lastTouch.pageX-containerOffset.left;offsetTop=lastTouch.pageY-containerOffset.top;lastTouch=null}else{return}
5if($('body').hasClass('rtl')){offsetRight=$container.width()-offsetLeft;$ripple.css({right:offsetRight,top:offsetTop})}else{$ripple.css({left:offsetLeft,top:offsetTop})}(function(){return window.getComputedStyle($ripple[0]).opacity})();$element.on($.isMobile?'touchend':'mouseup mouseleave',function(e){removeRipple($ripple)});$ripple.css({"transform":"scale("+rippleSize+")"});$ripple.addClass('ripple-on');$ripple.data('ripple-time',Date.now())})})};jQuery('.w-btn[href], a.w-nav-anchor[href], .w-grid-item-anchor[rel], .w-image-h[href],  .w-gallery-item[href], .g-filters-item, .w-iconbox.style_circle a[href] .w-iconbox-icon, .w-socials-item-link[href], .w-sharing-item[href], .w-tabs-item, .w-message-close').mdRipple()})

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.