1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-27 23:03:13 +01:00
mkdocs-material/material/templates/partials/javascripts/content.html

8 lines
627 B
HTML
Raw Normal View History

{#-
This file was automatically generated - do not edit
-#}
{% if "content.tabs.link" in features %}
2024-08-26 10:57:35 +02:00
<script>var tabs=__md_get("__tabs");if(Array.isArray(tabs))e:for(var set of document.querySelectorAll(".tabbed-set")){var labels=set.querySelector(".tabbed-labels");for(var tab of tabs)for(var label of labels.getElementsByTagName("label"))if(label.innerText.trim()===tab){var input=document.getElementById(label.htmlFor);input.checked=!0;continue e}}</script>
{% endif %}
<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>