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="pt-br"> | |
<head> | |
<title>Tutorial - Code4Coders</title> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport" /> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> |
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
@import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700); | |
body { | |
margin: 0; | |
background: #000; | |
overflow: hidden; | |
} | |
.intro { | |
position: absolute; |
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
@import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700); | |
body { | |
margin: 0; | |
background: #000; | |
overflow: hidden; | |
} | |
.intro { | |
position: absolute; |
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 width = window.innerWidth; | |
var height = window.innerHeight; | |
var intro = document.getElementsByClassName("intro")[0]; | |
intro.style.fontSize = width / 30 + "px"; | |
window.addEventListener("resize", function() { | |
width = canvas.width = window.innerWidth; | |
height = canvas.height = window.innerHeight; |
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 width = window.innerWidth; | |
var height = window.innerHeight; | |
var intro = document.getElementsByClassName("intro")[0]; | |
var historia = document.getElementsByClassName("historia")[0]; | |
var paragrafos = document.getElementsByClassName("paragrafos")[0]; | |
intro.style.fontSize = width / 30 + "px"; | |
historia.style.fontSize = width / 20 + "px"; | |
paragrafos.style.height = height + "px"; |
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 width = window.innerWidth; | |
var height = window.innerHeight; | |
var intro = document.getElementsByClassName("intro")[0]; | |
var historia = document.getElementsByClassName("historia")[0]; | |
var paragrafos = document.getElementsByClassName("paragrafos")[0]; | |
var som = document.getElementById("som"); | |
intro.style.fontSize = width / 30 + "px"; | |
historia.style.fontSize = width / 20 + "px"; |
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 width = window.innerWidth; | |
var height = window.innerHeight; | |
var intro = document.getElementsByClassName("intro")[0]; | |
var historia = document.getElementsByClassName("historia")[0]; | |
var paragrafos = document.getElementsByClassName("paragrafos")[0]; | |
var som = document.getElementById("som"); | |
intro.style.fontSize = width / 30 + "px"; | |
historia.style.fontSize = width / 20 + "px"; |
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
<div *ngIf="produtos.length > 0; else empty"><h2>Produtos</h2></div> | |
<ng-template #empty><h2>Não tem produtos.</h2></ng-template> |
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
<div *ngFor="let dog of dogs | slice:0:2 as total; index as = i"> | |
{{i+1}}/{{total.length}}: {{dog.name}} | |
</div> |
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
<div *ngIf="produto | async as produtoModel"> | |
<h2>{{ produtoModel.nome }}</h2> | |
<small>{{ produtoModel.data }}</small> | |
</div> |