diff --git a/dist/js/main.js b/dist/js/main.js index 304f12d..69c19cb 100644 --- a/dist/js/main.js +++ b/dist/js/main.js @@ -1,6 +1,7 @@ "use strict"; var inputs = document.querySelectorAll("input"); var textareas = document.querySelectorAll("textarea"); +var button = document.querySelector("button"); document.addEventListener("DOMContentLoaded", function () { inputs.forEach(function (input) { input.value = ""; @@ -10,3 +11,7 @@ document.addEventListener("DOMContentLoaded", function () { textarea.value = ""; }); }); +button.addEventListener("click", function () { + var el = document.querySelector("main"); + el.innerHTML = "\n
\n \n
\n

Formul\u00E1rio de Cadastro de Magos

\n

\n Obrigado por compartilhar seus segredos m\u00E1gicos conosco! Que as\n energias arcanas continuem fluindo em seu caminho!\n

\n
\n
\n
"; +}); diff --git a/dist/js/main.min.js b/dist/js/main.min.js index 5f9b2dd..38c3f5b 100644 --- a/dist/js/main.min.js +++ b/dist/js/main.min.js @@ -1 +1 @@ -"use strict";var inputs=document.querySelectorAll("input");var textareas=document.querySelectorAll("textarea");document.addEventListener("DOMContentLoaded",function(){inputs.forEach(function(input){input.value="";input.checked=false});textareas.forEach(function(textarea){textarea.value=""})}); \ No newline at end of file +"use strict";var inputs=document.querySelectorAll("input");var textareas=document.querySelectorAll("textarea");var button=document.querySelector("button");document.addEventListener("DOMContentLoaded",function(){inputs.forEach(function(input){input.value="";input.checked=false});textareas.forEach(function(textarea){textarea.value=""})});button.addEventListener("click",function(){var el=document.querySelector("main");el.innerHTML='\n
\n \n
\n

Formulário de Cadastro de Magos

\n

\n Obrigado por compartilhar seus segredos mágicos conosco! Que as\n energias arcanas continuem fluindo em seu caminho!\n

\n
\n
\n
'}); \ No newline at end of file