<!DOCTYPE html>
<html>
  <head>
    <title>Home Assistant Cast</title>
    <link rel="manifest" href="/manifest.json" />
    <link rel="icon" href="/images/ha-cast-icon.png" type="image/png" />
    <%= renderTemplate("../../../src/html/_style_base.html.template") %>
    <style>
      body {
        background-color: #e5e5e5;
      }
    </style>
    <%= renderTemplate("_social_meta.html.template") %>
  </head>
  <body>
    <hc-connect></hc-connect>
    <%= renderTemplate("../../../src/html/_js_base.html.template") %>
    <%= renderTemplate("../../../src/html/_script_loader.html.template") %>
    <script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

    ga('create', 'UA-57927901-9', 'auto');
    ga('send', 'pageview', location.pathname.includes("auth_callback") === -1 ? location.pathname : "/");
    </script>
  </body>
</html>
