Text file tour/template/index.tmpl

     1  <!doctype html>
     2  <html lang="en" ng-app="tour" data-theme="auto">
     3  
     4  <head>
     5  {{.AnalyticsHTML}}    <meta charset="utf-8">
     6      <title>A Tour of Go</title>
     7      <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
     8      <meta name="apple-mobile-web-app-capable" content="yes">
     9      <meta name="mobile-web-app-capable" content="yes">
    10      <script>
    11        (function() {
    12          const theme = document.cookie.match(/prefers-color-scheme=(light|dark|auto)/)?.[1]
    13          if (theme) {
    14            document.querySelector('html').setAttribute('data-theme', theme);
    15          }
    16        }())
    17      </script>
    18      <link rel="stylesheet" href="/tour/static/css/app.css" />
    19      <link rel="stylesheet" href="/tour/static/lib/codemirror/lib/codemirror.css">
    20      <link href='https://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
    21      <link rel="icon" href="/images/favicon-gopher.png" sizes="any">
    22      <link rel="apple-touch-icon" href="/images/favicon-gopher-plain.png"/>
    23      <link rel="icon" href="/images/favicon-gopher.svg" type="image/svg+xml">
    24  </head>
    25  
    26  <body>
    27      <div class="bar top-bar">
    28          <div class="left">
    29          <a href="/"><img src="/images/go-logo-white.svg" class="gopherlogo"></a>
    30          <a class="logo" href="/tour/list">A Tour of Go</a>
    31          </div>
    32          <div class="right">
    33              <button class="header-toggleTheme js-toggleTheme" aria-label="Toggle theme">
    34                <img
    35                  data-value="auto"
    36                  class="go-Icon go-Icon--inverted"
    37                  height="24"
    38                  width="24"
    39                  src="/images/icons/brightness_6_gm_grey_24dp.svg"
    40                  alt="System theme">
    41                <img
    42                  data-value="dark"
    43                  class="go-Icon go-Icon--inverted"
    44                  height="24"
    45                  width="24"
    46                  src="/images/icons/brightness_2_gm_grey_24dp.svg"
    47                  alt="Dark theme">
    48                <img
    49                  data-value="light"
    50                  class="go-Icon go-Icon--inverted"
    51                  height="24"
    52                  width="24"
    53                  src="/images/icons/light_mode_gm_grey_24dp.svg"
    54                  alt="Light theme">
    55              </button>
    56              <div table-of-contents-button=".toc"></div>
    57              <div feedback-button></div>
    58          </div>
    59      </div>
    60  
    61      <div table-of-contents></div>
    62  
    63      <div ng-view ng-cloak class="ng-cloak"></div>
    64  
    65      <script src="/tour/script.js"></script>
    66  </body>
    67  
    68  </html>
    69  

View as plain text