diff options
author | 2017-05-04 07:48:42 -0400 | |
---|---|---|
committer | 2017-05-04 12:28:17 -0400 | |
commit | b54df0ddd0c6a0372327c5aa3668e5a6458fcd64 (patch) | |
tree | e69cfa9b314a801bd187cf0145d1d4306436229c /ecomp-portal-FE/client/bower_components/jquery.newstape/dist/jquery.newstape.min.js | |
parent | 39d1e62c84041831bfc52cca73b5ed5efaf57d27 (diff) |
[PORTAL-7] Rebase
This rebasing includes common libraries and common overlays projects
abstraction of components
Change-Id: I9a24a338665c7cd058978e8636bc412d9e2fdce8
Signed-off-by: st782s <statta@research.att.com>
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/jquery.newstape/dist/jquery.newstape.min.js')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jquery.newstape/dist/jquery.newstape.min.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jquery.newstape/dist/jquery.newstape.min.js b/ecomp-portal-FE/client/bower_components/jquery.newstape/dist/jquery.newstape.min.js deleted file mode 100644 index f42e320e..00000000 --- a/ecomp-portal-FE/client/bower_components/jquery.newstape/dist/jquery.newstape.min.js +++ /dev/null @@ -1 +0,0 @@ -"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),function(e,t,n){var o={$elem:null,$content:null,options:{},height:0,contentHeight:0,dragstartPos:0,dragDeltaY:0,dragDeltaYReduce:0,timer:null,pos:0,init:function(t,n){var o=this;o.$elem=e(n),o.$content=e(".newstape-content",o.$elem),o.options=e.extend({},e.fn.newstape.options,o.$elem.data(),t);var a=function(){o.height=o.$elem.outerHeight(),o.contentHeight=o.$content.outerHeight()};o.options.heightSpy&&setInterval(a,1e3),a();var s=function(){o.timer=setInterval(function(){o.move()},o.options.period)};o.$elem.bind("mouseover.newstape",function(){clearInterval(o.timer)}),o.$elem.bind("mouseout.newstape",function(){s()}),o.options.mousewheel&&o.$elem.bind("mousewheel.newstape",function(e){e.preventDefault(),o.pos=e.deltaY>0?o.pos+o.options.mousewheelRate:o.pos-o.options.mousewheelRate,o.move()}),e("a",o.$elem).focus(function(t){o.$elem.scrollTop(0),o.pos=o.height-e(this).position().top-e(this).outerHeight(),o.move()}),o.options.dragable&&o.$elem.bind("dragstart.newstape",function(e,t){o.dragDeltaY=0,o.dragDeltaYReduce=0,o.dragstartPos=o.pos,o.$elem.addClass("newstape-drag")}).bind("drag.newstape",function(e,t){o.dragDeltaY=t.deltaY,o.pos=o.dragstartPos+(t.deltaY-o.dragDeltaYReduce),o.move()}).bind("dragend.newstape",function(e,t){o.$elem.removeClass("newstape-drag")}),s()},move:function(){var e=this,t=function(){e.dragstartPos=e.pos,e.dragDeltaYReduce=e.dragDeltaY,e.dragDeltaY=0};e.pos<=-1*e.contentHeight&&(e.pos=e.height,t()),e.pos>=e.height+e.options.offset&&(e.pos=-1*e.contentHeight,t()),e.$elem.hasClass("newstape-drag")||(e.pos=e.pos-e.options.offset),e.$content.css("top",parseInt(e.pos)+"px")}};e.fn.newstape=function(t){return this.each(function(){if(e(this).data("newstape-init")===!0)return!1;e(this).data("newstape-init",!0);var n=Object.create(o);n.init(t,this),e.data(this,"newstape",n)})},e.fn.newstape.options={period:30,offset:1,mousewheel:!0,dragable:!0,mousewheelRate:30,heightSpy:!0}}(jQuery,window,document);
\ No newline at end of file |