PageSourceSearch

https://www.templetonprize.org/wp-content/themes/push10-templeton-prize/assets/dist/smooth.js?ver=1790201815

js templetonprize.org collected 2026-09-24 18:15:25 UTC 2,036 bytes, 5 lines download raw bytes

1var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(c){return c.raw=c};$jscomp.createTemplateTagFirstArgWithRaw=function(c,g){c.raw=g;return c};
2function smoothScrollInit(){var c={map:function(a,b,f,h,l){return(a-b)*(l-h)/(f-b)+h},lerp:function(a,b,f){return(1-f)*a+f*b}},g=document.body,e=function(){return{width:window.innerWidth,height:window.innerHeight}};e();window.addEventListener("resize",e);var k;e=function(){return k=window.pageYOffset||document.documentElement.scrollTop};window.addEventListener("scroll",e);var d=function(){var a=this;this.DOM={main:document.querySelector("main[data-main]")};this.DOM.scrollable=this.DOM.main.querySelector("div[data-scroll]");
3this.renderedStyles={translationY:{previous:0,current:0,ease:.1,setValue:function(){return k}}};this.setSize();this.update();this.style();this.initEvents();requestAnimationFrame(function(){return a.render()})};d.prototype.update=function(){for(var a in this.renderedStyles)this.renderedStyles[a].current=this.renderedStyles[a].previous=this.renderedStyles[a].setValue();this.layout()};d.prototype.layout=function(){this.DOM.scrollable.style.transform="translate3d(0,"+-1*this.renderedStyles.translationY.previous+
4"px,0)"};d.prototype.setSize=function(){g.style.height=this.DOM.scrollable.scrollHeight+"px"};d.prototype.style=function(){this.DOM.main.style.position="fixed";this.DOM.main.style.width=this.DOM.main.style.height="100%";this.DOM.main.style.top=this.DOM.main.style.left=0;this.DOM.main.style.overflow="hidden"};d.prototype.initEvents=function(){var a=this;window.addEventListener("resize",function(){return a.setSize()})};d.prototype.render=function(){var a=this,b;for(b in this.renderedStyles)this.renderedStyles[b].current=
5this.renderedStyles[b].setValue(),this.renderedStyles[b].previous=c.lerp(this.renderedStyles[b].previous,this.renderedStyles[b].current,this.renderedStyles[b].ease);this.layout();requestAnimationFrame(function(){return a.render()})};e();new d}767<jQuery(window).width()&&smoothScrollInit();

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.