Skip to content

Commit

Permalink
fix: corrigido erro de redirecionamento de páginas
Browse files Browse the repository at this point in the history
  • Loading branch information
zolppy committed May 19, 2024
1 parent 5ab760d commit 3eed8f8
Show file tree
Hide file tree
Showing 8 changed files with 224 additions and 38 deletions.
4 changes: 4 additions & 0 deletions dist/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/style.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions dist/js/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
var inputs = document.querySelectorAll("input");
var textareas = document.querySelectorAll("textarea");
var button = document.querySelector("button");
var form = document.querySelector("form");
document.addEventListener("DOMContentLoaded", function () {
inputs.forEach(function (input) {
input.value = "";
Expand All @@ -11,7 +11,6 @@ document.addEventListener("DOMContentLoaded", function () {
textarea.value = "";
});
});
button.addEventListener("click", function () {
var el = document.querySelector("main");
el.innerHTML = "\n <div class=\"app__container\">\n <img\n src=\"dist/img/header.png\"\n alt=\"imagem interiamente de cor roxa, de uma flor roxa\"\n title=\"flor roxa\"\n class=\"app__header\"\n />\n <div class=\"app__form-container p-relative\">\n <h1 class=\"app__title\">Formul\u00E1rio de Cadastro de Magos</h1>\n <p class=\"app__description\">\n Obrigado por compartilhar seus segredos m\u00E1gicos conosco! Que as\n energias arcanas continuem fluindo em seu caminho!\n </p>\n <div class=\"app__decoration\"></div>\n </div>\n </div>";
form.addEventListener("submit", function () {
window.open("../submit.html");
});
2 changes: 1 addition & 1 deletion dist/js/main.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3eed8f8

Please sign in to comment.