gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/website/_includes/footer.html (about)

     1  <footer class="footer">
     2    {% include footer-links.html %}
     3  </footer>
     4  
     5  {% if site.analytics %}
     6  <script>
     7  var doNotTrack = false;
     8  if (!doNotTrack) {
     9    window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
    10    ga('create', '{{ site.analytics }}', 'auto');
    11    ga('send', 'pageview');
    12  }
    13  </script>
    14  <script async src='https://www.google-analytics.com/analytics.js'></script>
    15  {% endif %}
    16  
    17  <script>
    18    var shiftWindow = function() {
    19      if (location.hash.length !== 0) {
    20        window.scrollBy(0, -50);
    21      }
    22    };
    23    window.addEventListener("hashchange", shiftWindow);
    24  
    25    $(document).ready(function() {
    26      // Scroll to anchor of location hash, adjusted for fixed navbar.
    27      window.setTimeout(function() {
    28        shiftWindow();
    29      }, 1);
    30  
    31      // Flip the caret when submenu toggles are clicked.
    32      $(".sidebar-submenu").on("show.bs.collapse", function() {
    33        var toggle = $('[href$="#' + $(this).attr('id') + '"]');
    34        if (toggle) {
    35          toggle.addClass("dropup");
    36        }
    37      });
    38      $(".sidebar-submenu").on("hide.bs.collapse", function() {
    39        var toggle = $('[href$="#' + $(this).attr('id') + '"]');
    40        if (toggle) {
    41          toggle.removeClass("dropup");
    42        }
    43      });
    44    });
    45  </script>