Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERRORS CORRECTED. #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Binary file added nEW/dough (1).jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
88 changes: 88 additions & 0 deletions nEW/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<html>
<head>
<title>jQuery</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<script type="text/javascript" src='http://code.jquery.com/jquery-1.10.2.min.js'></script>
<script type="text/javascript">
$(document).ready(function(){
$('p, h3, li').hover(function(){
$(this).css('color', 'white');
}, function(){
$(this).css('color', 'black');
});
$('a').click(function(){
alert("we don't actually serve pizza...");
})
$('img').click(function(){
$(this).slideUp();
})
$('h5').click(function(){
$('img').slideDown();
})
$('button').click(function(){
var result = $('input:checked').val()
alert("Thank you for your input, we like " + result + " too!");
})
});

</script>
</head>
<body>
<div id='wrapper'>
<div id='top_headers'>
<h1>The Codingdojo Pizzeria!</h1>
<h2>The best slice in the valley!</h2>
</div> <!--end of top headers -->
<div id='survey'>
Question of the month: What is your favorite pizza topping?
<input type='radio' name='topping' value='pepperoni'>Pepperoni
<input type='radio' name='topping' value='bacon'>Bacon
<input type='radio' name='topping' value='pineapple'>Pineapple
<button>Tell us!</button>
</div>
<div id='left_content'>
<div class='box'>
<h3>About us!</h3>
<p>
We know that writing code works up an appetite, that's why Codingdojo is proud to announce that we are opening a
pizza kitchen inside our mountain view location! Head chef Michael "spumoni" Choi has lots of delicious family recipes
to share with our customers! Whether you like flat crust or deep dish so deep you can't cut through it,
the Codingdojo pizzeria has something you and all of your friends can agree on. Using only the
freshest ingredients the Bay area has to offer, the Codingdojo pie will be sure to debug your hunger!
</p>
</div>
<div class='box'>
<h3>Thin Crust Pizza</h3>
<ul>
<li>Small: $10.00</li>
<li>Medium: $15.00</li>
<li>Large: $20.00</li>
<li>Dojo size: $30.00 (feeds 10 ninjas)</li>
<li>Toppings: $2.00 per small, $2.50 per medium, $2.75 per large, $3.00 per Dojo</li>
</ul>
<h3>Deep dish, 'Dojo style' Pizza</h3>
<ul>
<li>Small: $12.00</li>
<li>Medium: $17.00</li>
<li>Large: $24.00</li>
<li>Dojo size: $34.00 (feeds 10 ninjas)</li>
<li>Toppings: $2.00 per small, $2.50 per medium, $2.75 per large, $3.00 per Dojo</li>
</ul>
<a href="#">Click here to order!</a>
</div>

</div> <!--end of left content -->
<div id='right_content'>
<img src="pizza (1).jpg">
<h5>Our pizza runs on all browsers!</h5>
<img src='logo (1).PNG'>
<h5>Made from the freshest ingredients!</h5>
</div> <!--end of right content -->
</div> <!--end of wrapper -->
</body>
</html>

<!-- Contact GitHub API Training Shop Blog About

© 2017 GitHub, Inc. Terms Privacy Security Status Help
-->
Binary file added nEW/logo (1).PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nEW/pizza (1).jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions nEW/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
body
{
background-image: url('dough.jpg');
font-family: sans-serif;
}

h2, h1, a
{
color: white;
}

#wrapper
{
background-color: rgba(2,2,2, .5);
width: 1200px;
margin: 0px auto;
}

#top_headers, #survey, ul, h3
{
display: inline-block;
}

li
{
max-width: 350px;
}

#left_content
{
width: 650px;
display: inline-block;
background-color: rgba(220, 0, 0, .6);
height: 520px;
vertical-align: top;
margin-left: 40px;
}

#right_content
{
width: 450px;
display: inline-block;
background-color: rgba(0, 220, 0, .6);
height: 520px;
vertical-align: top;
}

.box
{
vertical-align: top;
display: inline-block;
width: 300px;
padding: 10px;
}

img
{
width: 310px;
height: 200px;
display: block;
margin: 5px auto;
}