<!doctype html>

<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="mobile-web-app-capable" content="yes">
        <meta name="theme-color" content="#D3DEE4">

        <title>ascribe</title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="<%= BASE_URL %>static/css/main.css">
        <% DEBUG && print('<link rel="stylesheet" href="' + BASE_URL + 'static/css/maps/main.css.map">') %>

        <!-- This is for sluice -->
        <link href='//fonts.googleapis.com/css?family=Nunito:400,700,300' rel='stylesheet' type='text/css'>
        <script>
            window.BASE_URL = '<%= BASE_URL %>';
            window.SERVER_URL = '<%= SERVER_URL %>';
            window.API_ENDPOINT = '<%= API_ENDPOINT %>';
            <% DEBUG && print('window.DEBUG = true'); %>
            <% DEBUG && print('window.CREDENTIALS = \'' + CREDENTIALS + '\''); %>
        </script>
        <!-- Typekit gibson font -->
        <script src="https://use.typekit.net/gma2yhj.js"></script>
        <script>
            try {Typekit.load({ async: true });}
            catch(e){}
        </script>
    </head>
    <body>
        <div id="main"></div>

        <!-- Google Analytics tracking code -->
        <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','//www.google-analytics.com/analytics.js','ga');
        </script>

        <!-- Intercom library -->
        <script>
            (function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;
            s.src='https://widget.intercom.io/widget/{app_id}';
            var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()
        </script>
        
        <!-- actual app -->
        <script src="<%= BASE_URL %>static/js/app.js"></script>
    </body>
</html>