You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<script>// Reload page if reached via back button (history in general)// @TODO - deprecated see https://stackoverflow.com/questions/58652880/what-is-the-replacement-for-performance-navigation-type-in-angularif(performance.navigation.type==2){location.reload(true);}// ScrollIntoView polyfill https://www.npmjs.com/package/smoothscroll-polyfill!function(){"use strict";functiono(){varo=window,t=document;if(!("scrollBehavior"int.documentElement.style&&!0!==o.__forceSmoothScrollPolyfill__)){varl,e=o.HTMLElement||o.Element,r=468,i={scroll:o.scroll||o.scrollTo,scrollBy:o.scrollBy,elementScroll:e.prototype.scroll||n,scrollIntoView:e.prototype.scrollIntoView},s=o.performance&&o.performance.now?o.performance.now.bind(o.performance):Date.now,c=(l=o.navigator.userAgent,newRegExp(["MSIE ","Trident/","Edge/"].join("|")).test(l)?1:0);o.scroll=o.scrollTo=function(){void0!==arguments[0]&&(!0!==f(arguments[0])?h.call(o,t.body,void0!==arguments[0].left?~~arguments[0].left:o.scrollX||o.pageXOffset,void0!==arguments[0].top?~~arguments[0].top:o.scrollY||o.pageYOffset):i.scroll.call(o,void0!==arguments[0].left?arguments[0].left:"object"!=typeofarguments[0]?arguments[0]:o.scrollX||o.pageXOffset,void0!==arguments[0].top?arguments[0].top:void0!==arguments[1]?arguments[1]:o.scrollY||o.pageYOffset))},o.scrollBy=function(){void0!==arguments[0]&&(f(arguments[0])?i.scrollBy.call(o,void0!==arguments[0].left?arguments[0].left:"object"!=typeofarguments[0]?arguments[0]:0,void0!==arguments[0].top?arguments[0].top:void0!==arguments[1]?arguments[1]:0):h.call(o,t.body,~~arguments[0].left+(o.scrollX||o.pageXOffset),~~arguments[0].top+(o.scrollY||o.pageYOffset)))},e.prototype.scroll=e.prototype.scrollTo=function(){if(void0!==arguments[0])if(!0!==f(arguments[0])){varo=arguments[0].left,t=arguments[0].top;h.call(this,this,void0===o?this.scrollLeft:~~o,void0===t?this.scrollTop:~~t)}else{if("number"==typeofarguments[0]&&void0===arguments[1])thrownewSyntaxError("Value could not be converted");i.elementScroll.call(this,void0!==arguments[0].left?~~arguments[0].left:"object"!=typeofarguments[0]?~~arguments[0]:this.scrollLeft,void0!==arguments[0].top?~~arguments[0].top:void0!==arguments[1]?~~arguments[1]:this.scrollTop)}},e.prototype.scrollBy=function(){void0!==arguments[0]&&(!0!==f(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.elementScroll.call(this,void0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},e.prototype.scrollIntoView=function(){if(!0!==f(arguments[0])){varl=function(o){for(;o!==t.body&&!1===(e=p(l=o,"Y")&&a(l,"Y"),r=p(l,"X")&&a(l,"X"),e||r);)o=o.parentNode||o.host;varl,e,r;returno}(this),e=l.getBoundingClientRect(),r=this.getBoundingClientRect();l!==t.body?(h.call(this,l,l.scrollLeft+r.left-e.left,l.scrollTop+r.top-e.top),"fixed"!==o.getComputedStyle(l).position&&o.scrollBy({left:e.left,top:e.top,behavior:"smooth"})):o.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}elsei.scrollIntoView.call(this,void0===arguments[0]||arguments[0])}}functionn(o,t){this.scrollLeft=o,this.scrollTop=t}functionf(o){if(null===o||"object"!=typeofo||void0===o.behavior||"auto"===o.behavior||"instant"===o.behavior)return!0;if("object"==typeofo&&"smooth"===o.behavior)return!1;thrownewTypeError("behavior member of ScrollOptions "+o.behavior+" is not a valid value for enumeration ScrollBehavior.")}functionp(o,t){return"Y"===t?o.clientHeight+c<o.scrollHeight:"X"===t?o.clientWidth+c<o.scrollWidth:void0}functiona(t,l){vare=o.getComputedStyle(t,null)["overflow"+l];return"auto"===e||"scroll"===e}functiond(t){varl,e,i,c,n=(s()-t.startTime)/r;c=n=n>1?1:n,l=.5*(1-Math.cos(Math.PI*c)),e=t.startX+(t.x-t.startX)*l,i=t.startY+(t.y-t.startY)*l,t.method.call(t.scrollable,e,i),e===t.x&&i===t.y||o.requestAnimationFrame(d.bind(o,t))}functionh(l,e,r){varc,f,p,a,h=s();l===t.body?(c=o,f=o.scrollX||o.pageXOffset,p=o.scrollY||o.pageYOffset,a=i.scroll):(c=l,f=l.scrollLeft,p=l.scrollTop,a=n),d({scrollable:c,method:a,startTime:h,startX:f,startY:p,x:e,y:r})}}"object"==typeofexports&&"undefined"!=typeofmodule?module.exports={polyfill:o}:o()}();</script>
{%- if page_options.title %}
<title>{{ page_options.title }}</title>
{%- else %}
<title>JustPy</title>
{%- endif %}
{%- if page_options.favicon %}
{% if page_options.favicon.startswith('http') %}
<linkrel="shortcut icon" href={{page_options.favicon}}>
{% else %}
<linkrel="shortcut icon" href={{url_for(options.static_name,path=page_options.favicon)}}>
{% endif %}
{%- else %}
<linkrel="shortcut icon" href='https://elimintz.github.io/favicon.png'>
{%- endif %}
and integrate to template.py html generation and move javascript code to javascript directory
The text was updated successfully, but these errors were encountered:
continue #479 and as part of #519 get rid of
and integrate to template.py html generation and move javascript code to javascript directory
The text was updated successfully, but these errors were encountered: