diff options
author | 2017-05-12 18:33:00 +0800 | |
---|---|---|
committer | 2017-05-17 16:43:12 +0800 | |
commit | a1a745b4820ec46a2e707d77f6178cf9e97654f6 (patch) | |
tree | 08521a4c07d8f06a28e3c026c2614ecf6d97e2f7 /utils/test/testapi/3rd_party/static/swagger/lib/jquery.wiggle.min.js | |
parent | f1415796efec4984962f9817639a5ff2cd9ecd41 (diff) |
refactor static_path to accomodate web portal
move tornado_swagger/static to opnfv_testapi/static
move swagger related 3rd libs to 3rd_party/swagger
Change-Id: I32bba10584c99d13687b93f32577e37581db0c63
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/testapi/3rd_party/static/swagger/lib/jquery.wiggle.min.js')
-rw-r--r-- | utils/test/testapi/3rd_party/static/swagger/lib/jquery.wiggle.min.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/test/testapi/3rd_party/static/swagger/lib/jquery.wiggle.min.js b/utils/test/testapi/3rd_party/static/swagger/lib/jquery.wiggle.min.js new file mode 100644 index 000000000..2adb0d6d5 --- /dev/null +++ b/utils/test/testapi/3rd_party/static/swagger/lib/jquery.wiggle.min.js @@ -0,0 +1,8 @@ +/* +jQuery Wiggle +Author: WonderGroup, Jordan Thomas +URL: http://labs.wondergroup.com/demos/mini-ui/index.html +License: MIT (http://en.wikipedia.org/wiki/MIT_License) +*/ +jQuery.fn.wiggle=function(o){var d={speed:50,wiggles:3,travel:5,callback:null};var o=jQuery.extend(d,o);return this.each(function(){var cache=this;var wrap=jQuery(this).wrap('<div class="wiggle-wrap"></div>').css("position","relative");var calls=0;for(i=1;i<=o.wiggles;i++){jQuery(this).animate({left:"-="+o.travel},o.speed).animate({left:"+="+o.travel*2},o.speed*2).animate({left:"-="+o.travel},o.speed,function(){calls++;if(jQuery(cache).parent().hasClass('wiggle-wrap')){jQuery(cache).parent().replaceWith(cache);} +if(calls==o.wiggles&&jQuery.isFunction(o.callback)){o.callback();}});}});};
\ No newline at end of file |