Skip to content

Instantly share code, notes, and snippets.

hunted-down-developer / request.js
Last active Apr 8, 2019
Request (GET) wrapped numa promise
View request.js
return new Promise((resolve, reject) => {
let xhr = new XMLHttpRequest();'GET', url);
xhr.onload = () => {
View navResponsive.css
/*Menu responsivo e efeito de fading*/
.navResponsive {
position: absolute;
top: 0; bottom: 0; left: 0;
display: flex;
flex-direction: column;
align-items: center;
width: 70%;
hunted-down-developer / error-message.css
Last active Apr 8, 2019
Animação nativa pra mensagens de erro
View error-message.css
display: block;
margin: 0 auto;
width: 80%;
font-size: 1rem;
line-height: 3rem;
text-align: center;
font-family: sans-serif;