<!-- https://github.com/squidfunk/mkdocs-material/blob/master/src/templates/base.html -->
{% extends "base.html" %}

{% block extrahead %}
  <script defer data-domain="tqdm.github.io" src="https://plausible.cdcl.ml/js/script.js"></script>
  <script async src="https://media.ethicalads.io/media/client/ethicalads.min.js" crossorigin="anonymous"></script>
  <meta name="google-site-verification" content="n_D8n0G1f7KHMv7VVD1_heCOPL-MLaG-5jtv17fXmIQ" />
{% endblock %}

{% block footer %}
  {% include "partials/footer.html" %}
  <div class="adaptive flat" data-ea-publisher="tqdmgithubio" data-ea-type="text" data-ea-style="fixedfooter" id="foot"></div>
  <script>
    function docReady(fn) {
      if (document.readyState === "complete" || document.readyState === "interactive") {
        setTimeout(fn, 1);  // call on next available tick
      } else {
        document.addEventListener("DOMContentLoaded", fn);
      }
    }

    docReady(function() {
      ethicalads.wait.then((placements) => {
        if (!placements.length) {
          console.debug('EthicalAds disabled');
          div = document.querySelector('[data-ea-publisher]#manual')
          div.innerHTML = '<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5970675603981498" data-ad-slot="6206662262" data-ad-format="auto" data-full-width-responsive="true"></ins>'
          (adsbygoogle = window.adsbygoogle || []).push({});
          console.debug('GoogleAds loaded');
        } else {
          console.debug('EthicalAds loaded');
        }
      });
    });
    </script>
{% endblock %}
