1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-28 15:23:09 +01:00
mkdocs-material/material/templates/partials/javascripts/palette.html
2024-08-26 10:58:56 +02:00

5 lines
763 B
HTML

{#-
This file was automatically generated - do not edit
-#}
<script>var palette=__md_get("__palette");if(palette&&palette.color){if("(prefers-color-scheme)"===palette.color.media){var media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent")}for(var[key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>