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 livros = [{ | |
"tipo" : "Ebook", | |
"nome" : "Memórias de Um Sargento de Milícias", | |
"preco" : 7.90, | |
"imagem" : "milicias.jpg", | |
"autor" : "De Almeida, Manuel Antônio", | |
"editora" : "Saraiva de Bolso", | |
"ISBN" : "3658548"}, | |
{ |
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
// Evento disparado ao pressionar ESC | |
$(document).keyup(function(e) { | |
if (e.keyCode == 27) { alert(''Você pressionou ESC'); } // esc | |
}); |
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
// Exemplo de código css para telas de no mínimo 580px e no máximo 680px | |
@media screen and (min-width: 580px) and (max-width: 680px){ | |
body{ | |
width: 95%; | |
} | |
} |
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
// Fluidez no corpo da página | |
body{ | |
width: 95%; | |
} | |
// Exemplo de um elemento com fluidez | |
.box{ | |
position:relative; | |
width: 35%; | |
} |
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> | |
<head> | |
<title>Graduation Ceremony Summer 2022</title> | |
</head> | |
<body> | |
<header>The Lawson Academy: | |
<nav> | |
<ul> |
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
<?php | |
// Arquivo que abre conexão com bd | |
require("conecta.php"); | |
// Sql | |
$sql = mysql_query("SELECT p.idproduto, | |
21 p.nome_produto, | |
p.descricao_produto, | |
p.preco_produto, | |
p.imagem_produto |
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
$(document).ready(function () { | |
// Captura o scroll do mouse | |
$(window).scroll(function() { | |
// Se o valor da rolagem for maior que a div que você apontar: | |
if ($(window).scrollTop() >= $("#divQueVocêQuer").position().top) { | |
// Mostra a barra, ou modifica os atributos | |
}); | |
} |
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
// Busca o último associado no banco | |
$associadoOrm = ORM::factory('associado')->limit(1)->order_by('id', 'DESC')->find(); |
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
<select name="estado" id="estado"> | |
<option value="">Selecione o estado</option> | |
<option <?php if ($cadastro['estado'] == "AC"){ echo "selected";} ?> value="AC">Acre</option> | |
<option <?php if ($cadastro['estado'] == "AL"){ echo "selected";} ?> value="AL">Alagoas</option> | |
<option <?php if ($cadastro['estado'] == "AP"){ echo "selected";} ?> value="AP">Amapá</option> | |
<option <?php if ($cadastro['estado'] == "AM"){ echo "selected";} ?> value="AM">Amazonas</option> | |
<option <?php if ($cadastro['estado'] == "BA"){ echo "selected";} ?> value="BA">Bahia</option> | |
<option <?php if ($cadastro['estado'] == "CE"){ echo "selected";} ?> value="CE">Ceará</option> | |
<option <?php if ($cadastro['estado'] == "DF"){ echo "selected";} ?> value="DF">Distrito Federal</option> | |
<option <?php if ($cadastro['estado'] == "ES"){ echo "selected";} ?> value="ES">Espirito Santo</option> |
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{ | |
width: 0px; | |
height: 0px; | |
border-style: solid; | |
border-width: 9px 9px 0 9px; | |
border-color: #EFEEEE rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0); | |
margin: auto auto; | |
} |
OlderNewer