Skip to content
Open

🔨 #829

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5502
}
10 changes: 7 additions & 3 deletions starter-code/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title>Pizza Builder</title>
<title>Pizza Builder ErnestO</title>
<link rel="stylesheet" href="pizza.css">
</head>

<body>
<!-- Begin Header -->
<header>
<h1>Pizza Builder</h1>
<h1>Pizza Builder ErnestO</h1>
<p class="description">Build your own HTML and CSS pizza.</p>
</header>
<!-- End Header -->
Expand Down Expand Up @@ -221,7 +221,7 @@ <h2>Your pizza's price</h2>
</section>

<section class="mushroom thirty">
<div class="cap">30</div>
<div class="cap"><strong>30</strong></div>
<div class="stem"></div>
</section>

Expand Down Expand Up @@ -289,6 +289,10 @@ <h2>Your pizza's price</h2>
</footer>
<!-- Footer -->

<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"></script>
<script src="jquery-2.1.4.js"></script>
<script src="pizza.js"></script>
</body>
Expand Down
4 changes: 2 additions & 2 deletions starter-code/pizza.css
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,12 @@ p.description {
text-indent: -9999px;
color: #fff;
}
/*.pep:hover{
pep:hover{
-moz-transform: scale(1.3);
-webkit-transform: scale(1.3);
-o-transform: scale(1.3);
transform: scale(1.3);
} */
}
.pep.one {
margin: 60px 0 0 305px;
}
Expand Down
35 changes: 35 additions & 0 deletions starter-code/pizza.js
Original file line number Diff line number Diff line change
@@ -1 +1,36 @@
// Write your Pizza Builder JavaScript in this file.


//buttons
//1
$('.btn-pepperonni').click(function () {
$('.btn-pepperonni').toggleClass('active') //Obtiene boton peperoni
$('.pep').toggle();//LE da la propiedad de toggle
$('li:contains("$1 pepperonni")').toggle(1000); //le da un aspecto de transición

});
//2

$('.btn-mushrooms').click(function () {
$('.btn-mushrooms').toggleClass('active')
$('.mushroom').toggle();
$('li:contains("$1 mushrooms")').toggle(1000);
});
//3
$('.btn-green-peppers').click(function () {
$('.btn-green-peppers').toggleClass('active')
$('.green-pepper').toggle();
$('li:contains("$1 green peppers")').toggle(1000);
});
//4
$('.btn-sauce').click(function () {
$('.btn-sauce').toggleClass('active')
$('.sauce').toggle();
$('li:contains("$3 white sauce")').toggle(1000);
});
//5
$('.btn-crust').click(function () {
$('.btn-crust').toggleClass('active')
$('.crust').toggle();
$('li:contains("$5 gluten-free crust")').toggle(1000);
});