Sha256: 5e8997b6f365c6078b7c47f137fe8a965aee611801de42434711b9f51ae7b2ff
Contents?: true
Size: 727 Bytes
Versions: 10
Compression:
Stored size: 727 Bytes
Contents
"use strict";(self.webpackChunklanding_page_gem=self.webpackChunklanding_page_gem||[]).push([[321],{321:function(e,t){function n(e){return Math.floor(e.getBoundingClientRect().top)}function o(e){const t=e.target.getAttribute("href").replace(/^#/,""),o=document.getElementById(t),r=n(o);e.preventDefault(),window.scrollBy({top:r,left:0,behavior:"smooth"});const a=setInterval((()=>{const e=window.innerHeight+window.pageYOffset>=document.body.offsetHeight-2;(0===n(o)||e)&&('.inputWrapper input[placeholder="First Name"]',document.querySelector('.inputWrapper input[placeholder="First Name"]').select(),clearInterval(a))}),100)}t.default=function(){document.querySelector('a[href="#page-top"]').addEventListener("click",o)}}}]);
Version data entries
10 entries across 10 versions & 1 rubygems