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
<p class='caixa' > | |
<button class="excluir button">Excluir</button> | |
<button class="aceitar button">Aceitar</button> | |
<span class="titulo" > | |
Titulo | |
</span> | |
</p> |
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
<p class='caixa' > | |
<button class="excluir button">Excluir</button> | |
<button class="aceitar button">Aceitar</button> | |
<span class="titulo" > | |
Titulo | |
</span> | |
</p> |
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
<p class='caixa' > | |
<button class="excluir button">Excluir</button> | |
<button class="aceitar button">Aceitar</button> | |
<span class="titulo" > | |
Titulo | |
</span> | |
</p> |
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
.button { | |
cursor: pointer; | |
position: absolute; | |
top:100px; | |
} | |
.aceitar { | |
margin-left: 170px; | |
} | |
.excluir { | |
margin-left: 20px; |
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
.aceitar:hover + .titulo { | |
transition: 1s; | |
background-color: green | |
} |
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
.excluir:hover ~ .titulo { | |
transition: 1s; | |
background-color: red | |
} |
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
$(".interno").click (function (e) { | |
e.preventDefault(); | |
var id = $(this).attr("href"), | |
targetOffset = $(id).offset().top; | |
$("html, body").animate({ | |
scrollTop: targetOffset -70 | |
},500) | |
}) |
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
const express = require('express') | |
const app = express() | |
app.listen(3000, () => { | |
console.log('Servidor de exemplo aberto na porta: 3000') | |
}) |
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
const express = require('express') | |
const router = express.Router() | |
const path = require('path') | |
router.get('/', (req, res, next) => { | |
res.sendFile(path.join(__dirname, '../', 'views', 'produtos', 'produtos.html')) | |
}) |
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
router.get('/', (req, res, next) => { | |
res.sendFile(path.join(__dirname, '../', 'views', 'produtos', 'produtos.html')) | |
}) |
OlderNewer