github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/website/_includes/footer.html (about)

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