if (/MSIE \d|Trident.*rv:/.test(navigator.userAgent)) {
  document.write("<div style='height: 100%;width: 100%;text-align: center;background-color: #1f1f1f;color: #fcf9cf;position: fixed;padding-top: 20%;font-size: 20px;line-height: 1.4285;font-weight: bold;'><p>Internet Explorer non e' supportato.</p><p>Si prega di verificare i <a href='https://jace.energysoftware.it/Req'>requisiti minimi</a> per l'utilizzo della suite Jace</p></div>");
  var interval = setInterval(function () {
    var app = document.getElementsByTagName("app-root")[0];
    if (app) app.parentNode.removeChild(app);
    clearInterval(interval);
  }, 15);
}

window.paceOptions = {
  // In pace bisogna staccare il listening da signalr altrimenti boom
  ajax: {
    trackMethods: ['GET', 'POST'],
    ignoreURLs: ['err', 'notificationHub', '__browserLink', 'browserLinkSignalR', 'signalr']
  },
  eventLag: false,
  document: false,
  target: ".main-wrapper",
  ghostTime: 750
};

// Serve l'inizializzazione globale
myconfig = {};

// Tengo sta roba lato infra, wink wink
document.getElementsByTagName('app-root')[0].innerHTML = `
<div class="spin-outher">
  <div class="spin-container">
    <div class="spin-inner">
      <div class="spin-cube-grid">
        <div class="spin-cube spin-cube1" style="background: url('./assets/img/logo/cube-1.jpg'); background-size: cover;"></div>
        <div class="spin-cube spin-cube2" style="background: url('./assets/img/logo/cube-2.jpg'); background-size: cover;"></div>
        <div class="spin-cube spin-cube3" style="background: url('./assets/img/logo/cube-3.jpg'); background-size: cover;"></div>
        <div class="spin-cube spin-cube4" style="background: url('./assets/img/logo/cube-4.jpg'); background-size: cover;"></div>
        <div class="spin-cube spin-cube5" style="background: url('./assets/img/logo/cube-5.jpg'); background-size: cover;"></div>
        <div class="spin-cube spin-cube6" style="background: url('./assets/img/logo/cube-6.jpg'); background-size: cover;"></div>
        <div class="spin-cube spin-cube7" style="background: url('./assets/img/logo/cube-7.jpg'); background-size: cover;"></div>
        <div class="spin-cube spin-cube8" style="background: url('./assets/img/logo/cube-8.jpg'); background-size: cover;"></div>
        <div class="spin-cube spin-cube9" style="background: url('./assets/img/logo/cube-9.jpg'); background-size: cover;"></div>
      </div>
    </div>
  </div>
</div>
`

document.getElementsByTagName('head')[0].innerHTML = ` 
  <meta charset="utf-8">
  <base href="/">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
  <meta name="theme-color" content="#1976d2">
` + document.getElementsByTagName('head')[0].innerHTML