| Server IP : 68.183.124.220 / Your IP : 216.73.216.141 Web Server : Apache/2.4.18 (Ubuntu) System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : gavin ( 1000) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/gavin/ninja-forms/assets/js/lib/ |
Upload File : |
/*!
* jQuery ClassyWiggle
* vox.SPACE
*
* Written by Marius Stanciu - Sergiu <marius@vox.space>
* Licensed under the MIT license https://vox.SPACE/LICENSE-MIT
* Version 1.2.1
*
*/(function(b){b.fn.ClassyWiggle=function(g,c){c=b.extend({degrees:"2 4 2 0 -2 -4 -2 0".split(" "),delay:35,limit:null,randomStart:!0,onWiggle:function(a){},onWiggleStart:function(a){},onWiggleStop:function(a){}},c);var f={wiggle:function(a,d){void 0===d&&(d=c.randomStart?Math.floor(Math.random()*c.degrees.length):0);b(a).hasClass("wiggling")||b(a).addClass("wiggling");var e=c.degrees[d];b(a).css({"-webkit-transform":"rotate("+e+"deg)","-moz-transform":"rotate("+e+"deg)","-ms-transform":"rotate("+e+ "deg)","-o-transform":"rotate("+e+"deg)","-sand-transform":"rotate("+e+"deg)",transform:"rotate("+e+"deg)"});d===c.degrees.length-1&&(d=0,void 0===b(a).data("wiggles")?b(a).data("wiggles",1):b(a).data("wiggles",b(a).data("wiggles")+1),c.onWiggle(a));if(c.limit&&b(a).data("wiggles")==c.limit)return f.stop(a);a.timeout=setTimeout(function(){f.wiggle(a,d+1)},c.delay)},stop:function(a){b(a).data("wiggles",0);b(a).css({"-webkit-transform":"rotate(0deg)","-moz-transform":"rotate(0deg)","-ms-transform":"rotate(0deg)", "-o-transform":"rotate(0deg)","-sand-transform":"rotate(0deg)",transform:"rotate(0deg)"});b(a).hasClass("wiggling")&&b(a).removeClass("wiggling");clearTimeout(a.timeout);a.timeout=null;c.onWiggleStop(a)},isWiggling:function(a){return a.timeout?!0:!1}};if("isWiggling"===g&&1===this.length)return f.isWiggling(this[0]);this.each(function(){"start"!==g&&void 0!==g||this.timeout?"stop"===g&&f.stop(this):(f.wiggle(this),c.onWiggleStart(this))});return this}})(jQuery);