This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
const regex = /[?&]([^=#]+)=([^&#]*)/g, | |
url = window.location.href, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style type="text/css"> | |
html { | |
margin: 0; | |
overflow: hidden; | |
} | |
</style> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head></head> | |
<body> | |
<script> | |
const regex = /[?&]([^=#]+)=([^&#]*)/g, | |
url = window.location.href, | |
params = {}; | |
var match; | |
while(match = regex.exec(url)) { | |
params[match[1]] = match[2]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var controller = (function controller_declaration(library, library...) { | |
// Namespace de elementos com regras de negócio | |
var ... = {...} | |
⋮ | |
// Controller da página em questao | |
var controller = {...} | |
// Roteador de ações efetuadas na página, geralmente para o controller | |
var router = {...} |