text: window.onload = () => {
      if (window.location.search.includes('full-screen=true')) document.body.classList.add('full-screen');
      const loader = window.top.document.querySelector('.loader');
      if (loader) loader.style.display = 'none';
      document.querySelector('form').addEventListener('submit', e => {
          e.preventDefault();
          let name = document.getElementsByName('name')[0], email = document.getElementsByName('email')[0], msg = document.getElementsByName('message')[0];
          if (!msg || !msg.value) return msg.focus();
  
          document.body.classList.add('done');
          fetch('/contact', {
              method: 'POST',
              headers: { 'Content-Type': 'application/json' },
              body: JSON.stringify({
                  type: 'contact',
                  name: name.value || 'name not given',
                  email: email.value || 'not given',
                  msg: msg.value,
                  id: userID || 'not provided'
              })
          })
              .then(res => res.ok && document.body.classList.add('done'));
   
      });
      
  }
  
    