$(document).ready(function(){try{$(".ripples-water").ripples({resolution:512,dropRadius:20,perturbance:.04}),$(".main").ripples({resolution:512,dropRadius:10,perturbance:.01,interactive:!1})}catch(r){$(".error").show().text(r)}$(".js-ripples-disable").on("click",function(){$("body, .main").ripples("destroy"),$(this).hide()}),$(".js-ripples-play").on("click",function(){$(".ripples-water, .main").ripples("play")}),$(".js-ripples-pause").on("click",function(){$(".ripples-water, .main").ripples("pause")}),setInterval(function(){var r=$(".main"),e=Math.random()*r.outerWidth(),i=Math.random()*r.outerHeight(),p=.04+.04*Math.random();r.ripples("drop",e,i,20,p)},400)});