go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/milo/ui/index.html (about)

     1  <!DOCTYPE html>
     2  <head>
     3    <meta http-equiv="Content-Security-Policy" content="require-trusted-types-for 'script';">
     4    <!-- The tag manager to inject a GA4 tag with a proper measurement ID base on
     5      the host. This allows us to differentiate prod and staging/dev traffics.
     6  
     7      TODO: The current tag manager container is created under an account not
     8      linked to the Google corp organization. We should replace it with a
     9      container created under a corp organization associated account for better
    10      account ownership/ACL management. -->
    11    <!-- Google Tag Manager -->
    12    <script>
    13      const gtmJs = 'https://www.googletagmanager.com/gtm.js?id=GTM-5SMGXGB';
    14      const trustedGtmJs = self.trustedTypes
    15        ?.createPolicy('luci-ui-gtm-js', { createScriptURL: (_) => gtmJs })
    16        .createScriptURL('') || gtmJs;
    17  
    18    // The script is modified to support trusted types.
    19    (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    20    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    21    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=trustedGtmJs;f.parentNode.insertBefore(j,f);
    22    })(window,document,'script','dataLayer','GTM-5SMGXGB');</script>
    23    <!-- End Google Tag Manager -->
    24  
    25    <meta charset="utf-8">
    26    <title>LUCI Milo</title>
    27    <link id="favicon" href="/src/common/assets/favicons/milo-32.png" rel="icon">
    28    <link href="/src/common/styles/style.css" rel="stylesheet">
    29    <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet">
    30  
    31    <script type="module" src="/src/main.tsx" defer></script>
    32  </head>
    33  <body>
    34    <!-- Google Tag Manager (noscript) -->
    35    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5SMGXGB"
    36    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    37    <!-- End Google Tag Manager (noscript) -->
    38    <script async defer src="https://apis.google.com/js/api.js" onload="gapiLoad()"></script>
    39    <script>
    40      // Load GAPI client.
    41      function gapiLoad(){
    42        gapi.load('client', function(){
    43          gapi.client.init({})
    44        })
    45      }
    46    </script>
    47    <div id="app-root"></div>
    48  </body>