mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Removed unnecessary console.log
This commit is contained in:
parent
13655d68f5
commit
439ece656c
@ -1,4 +1,4 @@
|
|||||||
{#-
|
{#-
|
||||||
This file was automatically generated - do not edit
|
This file was automatically generated - do not edit
|
||||||
-#}
|
-#}
|
||||||
<script>var consent=__md_get("__consent");if(consent)for(var input of document.forms.consent.elements)input.name&&(input.checked=consent[input.name]||!1);else"file:"!==location.protocol&&setTimeout(function(){document.querySelector("[data-md-component=consent]").hidden=!1},250);var action,form=document.forms.consent;for(action of["submit","reset"])form.addEventListener(action,function(e){if(e.preventDefault(),"reset"===e.type)for(var n of document.forms.consent.elements)n.name&&(n.checked=!1);console.log(new FormData(form)),__md_set("__consent",Object.fromEntries(Array.from(new FormData(form).keys()).map(function(e){return[e,!0]}))),location.hash="",location.reload()})</script>
|
<script>var consent=__md_get("__consent");if(consent)for(var input of document.forms.consent.elements)input.name&&(input.checked=consent[input.name]||!1);else"file:"!==location.protocol&&setTimeout(function(){document.querySelector("[data-md-component=consent]").hidden=!1},250);var action,form=document.forms.consent;for(action of["submit","reset"])form.addEventListener(action,function(e){if(e.preventDefault(),"reset"===e.type)for(var n of document.forms.consent.elements)n.name&&(n.checked=!1);__md_set("__consent",Object.fromEntries(Array.from(new FormData(form).keys()).map(function(e){return[e,!0]}))),location.hash="",location.reload()})</script>
|
||||||
|
@ -49,7 +49,6 @@
|
|||||||
input.checked = false
|
input.checked = false
|
||||||
|
|
||||||
/* Grab and serialize form data */
|
/* Grab and serialize form data */
|
||||||
console.log(new FormData(form))
|
|
||||||
__md_set("__consent", Object.fromEntries(
|
__md_set("__consent", Object.fromEntries(
|
||||||
Array.from(new FormData(form).keys())
|
Array.from(new FormData(form).keys())
|
||||||
.map(function(key) { return [key, true] })
|
.map(function(key) { return [key, true] })
|
||||||
|
Loading…
Reference in New Issue
Block a user