Skip to content

Commit

Permalink
Pizza now prints
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek-pai committed Jan 18, 2015
1 parent 29144ef commit b49f4ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Binary file added public/images/pizza.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions routes/pizza.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ router.get('/', function(req, res, next) {
console.log(body2);

var data = {
duration : "60",
fee : "5"
duration : body["duration"],
fee : body2["fee"]
};

res.render("pizza.html", data);
Expand Down
8 changes: 4 additions & 4 deletions views/pizza.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<div class="content">
<h1>PIZZA DELIVERY</h1>
<div class="wrapper">
<img id="w-image" src="/images/thunder.png" alt="">
<img id="w-image" src="/images/pizza.png" alt="">
<div id="w-text">
<span id="weather">??</span>
<h2><%= duration %> minutes</h2>
<p>$<%= fee %></p>
<span id="weather"><%= duration %> minutes</span>
<h2>$<%= fee %> FEE</h2>
<!--<p>Fee: $</p> -->
</div>
</div>
</div>
Expand Down

0 comments on commit b49f4ad

Please sign in to comment.