PageSourceSearch

https://www.intel.co.jp/etc.clientlibs/settings/wcm/designs/ver/26…/intel/externallibs/scrollToPlugin.min.js

js intel.co.jp collected 2026-09-24 08:41:35 UTC 3,404 bytes, 18 lines download raw bytes

1/*
2 VERSION: 1.9.0
3 DATE: 2017-06-19
4 UPDATES AND DOCS AT: http://greensock.com
5
6 @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
7 This work is subject to the terms at http://greensock.com/standard-license or for
8 Club GreenSock members, the software agreement that was issued with your membership.
9
10 @author: Jack Doyle, [email protected]
11*/
12var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;
13(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){var f=(_gsScope.document||{}).documentElement,d=_gsScope,k=function(a,b){b="x"===b?"Width":"Height";var c="scroll"+b,e="client"+b,g=document.body;return a===d||a===f||a===g?Math.max(f[c],g[c])-(d["inner"+b]||f[e]||g[e]):a[c]-a["offset"+b]},l=function(a,b){var c="scroll"+("x"===b?"Left":"Top");return a===d&&(null!=a.pageXOffset?c="page"+b.toUpperCase()+"Offset":a=null!=f[c]?f:document.body),function(){return a[c]}},m=function(a,b){var c=a;
14a=("string"==typeof c&&(c=TweenLite.selector(c)),c.length&&c!==d&&c[0]&&c[0].style&&!c.nodeType&&(c=c[0]),c===d||c.nodeType&&c.style?c:null).getBoundingClientRect();c=!b||b===d||b===document.body;var e=(c?f:b).getBoundingClientRect();a={x:a.left-e.left,y:a.top-e.top};return!c&&b&&(a.x+=l(b,"x")(),a.y+=l(b,"y")()),a},n=function(a,b,c){var e=typeof a;return isNaN(a)?"number"===e||"string"===e&&"\x3d"===a.charAt(1)?a:"max"===a?k(b,c):Math.min(k(b,c),m(a,b)[c]):parseFloat(a)},h=_gsScope._gsDefine.plugin({propName:"scrollTo",
15API:2,global:!0,version:"1.9.0",init:function(a,b,c){return this._wdw=a===d,this._target=a,this._tween=c,"object"!=typeof b?(b={y:b},"string"==typeof b.y&&"max"!==b.y&&"\x3d"!==b.y.charAt(1)&&(b.x=b.y)):b.nodeType&&(b={y:b,x:b}),this.vars=b,this._autoKill=!1!==b.autoKill,this.getX=l(a,"x"),this.getY=l(a,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=b.x?(this._addTween(this,"x",this.x,n(b.x,a,"x")-(b.offsetX||0),"scrollTo_x",!0),this._overwriteProps.push("scrollTo_x")):this.skipX=
16!0,null!=b.y?(this._addTween(this,"y",this.y,n(b.y,a,"y")-(b.offsetY||0),"scrollTo_y",!0),this._overwriteProps.push("scrollTo_y")):this.skipY=!0,!0},set:function(a){this._super.setRatio.call(this,a);a=this._wdw||!this.skipX?this.getX():this.xPrev;var b=this._wdw||!this.skipY?this.getY():this.yPrev,c=b-this.yPrev,e=a-this.xPrev,g=h.autoKillThreshold;0>this.x&&(this.x=0);0>this.y&&(this.y=0);this._autoKill&&(!this.skipX&&(e>g||-g>e)&&a<k(this._target,"x")&&(this.skipX=!0),!this.skipY&&(c>g||-g>c)&&
17b<k(this._target,"y")&&(this.skipY=!0),this.skipX&&this.skipY&&(this._tween.kill(),this.vars.onAutoKill&&this.vars.onAutoKill.apply(this.vars.onAutoKillScope||this._tween,this.vars.onAutoKillParams||[])));this._wdw?d.scrollTo(this.skipX?a:this.x,this.skipY?b:this.y):(this.skipY||(this._target.scrollTop=this.y),this.skipX||(this._target.scrollLeft=this.x));this.xPrev=this.x;this.yPrev=this.y}}),p=h.prototype;h.max=k;h.getOffset=m;h.buildGetter=l;h.autoKillThreshold=7;p._kill=function(a){return a.scrollTo_x&&
18(this.skipX=!0),a.scrollTo_y&&(this.skipY=!0),this._super._kill.call(this,a)}});_gsScope._gsDefine&&_gsScope._gsQueue.pop()();(function(f){var d=function(){return(_gsScope.GreenSockGlobals||_gsScope)[f]};"undefined"!=typeof module&&module.exports?(require("../TweenLite.min.js"),module.exports=d()):"function"==typeof define&&define.amd&&define(["TweenLite"],d)})("ScrollToPlugin");

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.