Skip to content

Instantly share code, notes, and snippets.

View eliabeleal's full-sized avatar
🎯
Focusing

Eliabe Leal eliabeleal

🎯
Focusing
View GitHub Profile
@eliabeleal
eliabeleal / primeiro_exemplo.html
Last active March 24, 2017 11:36
Estrutura semântica do HTML
<div id = header>
<!-- Conteúdo do cabeçalho -->
</div>
<div id = nav>
<!-- Conteúdo de navegação -->
</div>
<div id = article>
<!-- Conteúdo do artigo -->
</div>
<div id = footer>
@eliabeleal
eliabeleal / segundo_exemplo.html
Last active March 24, 2017 11:55
Estrutura semântica do HTML
<header>
<!-- Conteúdo do cabeçalho -->
</header>
<nav>
<!-- Conteúdo de navegação -->
</nav>
<article>
<!-- Conteúdo do artigo -->
</article>
<footer>
@eliabeleal
eliabeleal / CD_em_SGML.html
Last active March 24, 2017 10:59
Estrutura semântica do HTML
<fig id=angelfig>
<figbody>
<artwork depth=24p>
</artwork>
</figbody>
<figcap>Three Angels Dancing</figcap>
</fig>
@eliabeleal
eliabeleal / CD_em_SGML_DTD.html
Created March 24, 2017 11:02
Estrutura semântica do HTML
<fig id=angelfig>
<figbody>
<artwork depth=24p>
<figcap>Three Angels Dancing
</fig>
<figure>
<img src="#" alt="#">
<figcaption>Three Angels Dancing</figcaption>
</figure>
@eliabeleal
eliabeleal / HTML5Shiv.html
Created March 24, 2017 12:24
Estrutura semântica do HTML
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
const addressInput = document.querySelector('#address-input')
const ipInfoBtn = document.querySelector('#ip-info-btn')
const ipInfoField = document.querySelector('#ip-info')
ipInfoBtn.addEventListener('click', () => {
ipInfoField.innerHTML = '<img src="img/loading.gif">'
let address = addressInput.value
let url = `https://ipinfo.io/${address}/json`
fetch(url)
([param] …) => {
statements
}
function ([param] …) expression
function nomeDaFuncao ([param] …) {
expressions
}