This file contains 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> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Exemplo SVG</title> | |
<style> | |
svg:not(:root) { |
This file contains 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 array = [ 'Bom Dia', 'Boa Noite', 'Boa Tarde'], | |
posicao = Math.floor(array.length * Math.random()), | |
texto = array[posicao]; | |
console.log(texto); |
This file contains 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
module.exports = function (grunt) { | |
'user strict'; | |
// Configurando Tarefas | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
// Inicia um server estático | |
connect: { | |
server: { |
This file contains 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
module.exports = function (grunt) { | |
'user strict'; | |
// Configurando Tarefas | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
// Inicia um server estático | |
connect: { | |
server: { |
This file contains 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 dialog = document.createElement('div'), | |
ie6Launch = 2001, | |
ie7Launch = 2006, | |
currentYear = new Date().getFullYear(), | |
ieVersion = head.browser.version, | |
timeAgo = ieVersion <= 6 ? currentYear - ie6Launch : currentYear - ie7Launch; | |
dialog.className = 'dialog-fixed browsers'; | |
dialog.innerHTML = '\ | |
<div class="out-box"> \ |
This file contains 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
#arrow{ | |
float:left; | |
margin:0 1px 0 0; | |
width:0; | |
height:0; | |
border-width:10px 0px 10px 20px; | |
border-style:solid; | |
border-color:transparent; | |
border-left-color:#000; | |
display:block; |
This file contains 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
.video { | |
position: relative; | |
padding-bottom: 56.25%; /* 16:9 */ | |
padding-top: 25px; | |
height: 0; | |
overflow: hidden; | |
} | |
.video > iframe, | |
.video > object, | |
.video > embed{ |