1try { 2 // For some reason cloud front refuses to serve this object correctly, so if we ever match knowledge base here directly redirect the user to the actual KB docs 3 if (window.location.pathname.match('knowledge-base')) { 4 window.open('https://authress.io/knowledge-base/docs/category/introduction', '_self') 5 } 6} catch (error) { 7 /* */ 8} 9 10function setup() { 11 /** 12 * Navbar Dropdown 13 */ 14 let mainNav = document.getElementById('js-menu'); 15 let navBarToggle = document.getElementById('js-navbar-toggle'); 16 17 navBarToggle.addEventListener('click', function () { 18 mainNav.classList.toggle('active'); 19 mainNav.classList.toggle('peekaboo'); 20 }); 21 22 // Pass CTA query parameters to app 23 try { 24 const queryParams = new URLSearchParams(window.location.search); 25 document.getElementsByName('signup').forEach(element => { 26 if (element) { 27 element.href = `/app/?${queryParams.toString()}#/signup` 28 } 29 }); 30 } catch (error) { 31 /* */ 32 } 33 34 const animationObserver = new IntersectionObserver(entries => { 35 entries.forEach(entry => { 36 if (entry.isIntersecting) { 37 if (!entry.target.classList.contains('animate-start')) { 38 entry.target.classList.add('animate-start'); 39 return; 40 } 41 } 42 }); 43 }); 44 45 document.querySelectorAll('.animated').forEach(element => { 46 if (element) { 47 animationObserver.observe(element); 48 } 49 }); 50 51 let contactButton = document.querySelectorAll('.contact-button'); 52 let contentBoxExpanded = false; 53 contactButton[0].addEventListener('click', function () {
54 let contactGroup = document.querySelectorAll('.contact-group'); 55 if (contentBoxExpanded) { 56 contactGroup[0].classList.remove('expanded'); 57 contactGroup[0].classList.add('collapsed'); 58 contentBoxExpanded = false; 59 } 60 else { 61 contactGroup[0].classList.remove('collapsed'); 62 contactGroup[0].classList.add('expanded'); 63 contentBoxExpanded = true; 64 } 65 }); 66} 67 68const domReady = cb => { 69 document.readyState === 'interactive' || document.readyState === 'complete' 70 ? cb() 71 : document.addEventListener('DOMContentLoaded', cb); 72}; 73 74domReady(() => { 75 setup(); 76 document.body.style.visibility = 'visible'; 77});
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.