Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
DOCTYPE html>
<!-- Tiffany Marie Foster
Mobile Version March 2016
Submitted for Credit for Web Programming I -->
<!--References: http://www.responsivegridsystem.com for the idea of columns for the
responsive change from mobile to desktop-->
<html>
<head>
<!-- For this to work on mobile, need initial scaling of 1.0 -->
<meta name="viewport" content="width-device-width, initial-scale=1.0">
function make_a_order()
{
var firstname= prompt("Please type in your first name.");
var lastname= prompt("Please type in your last name.");
var phone= prompt("Please type in your phone number in the format 0123456789 with no
spaces. We will use your phone number to call you when your order is ready to be picked up.");
var flavor= prompt("What flavor you would like to order?");
var size = prompt("Please type in the size from the options of pint, quart or gallon.");
var quantity = prompt("Please type in the number you would like to order.");
var wafflecones= prompt("Please type in the number of waffle cones you would like to
order.");
var wc= parseInt(wafflecones);
var sugarcones= prompt("Please type in the number of sugar cones you would like to order.");
var sc= parseInt(sugarcones);
//User selects pint as ice cream size and then the icecream subtotal is determined by number
purchase times $5 each. Additionally,the total is determined by adding in the number of waffle
cones purchased at $2 each and sugar cones at $3 each. //
if(size =="pint")
{
icecreamtotal= quantity*5;
total = icecreamtotal + (wc*2)+(sc*3);
}
//User selects quare as ice cream size and then the icecream subtotal is determined by number
purchase times $10 each. Additionally,the total is determined by adding in the number of waffle
cones purchased at $2 each and sugar cones at $3 each. //
else if(size=="quart")
{
icecreamtotal = quantity*10;
total = icecreamtotal + (wc*2)+(sc*3);
}
//User selects gallon as ice cream size and then the icecream subtotal is determined by number
purchase times $25 each. Additionally,the total is determined by adding in the number of waffle
cones purchased at $2 each and sugar cones at $3 each. //
else if(size=="gallon")
{
icecreamtotal = quantity*25;
total = icecreamtotal + (wc*2)+(sc*3);
}
conetotal=(wc*2)+(sc*3);
</head>
<!--Logo for Mobile Version-->
<div id="stephanslogo">
<div class="logomobile">
<a href="stephanssugarshackresponsivefinal.html">
<img src="logo.png" alt="Stephans Sugar Shack A Taste of Summer Luray Virginia">
</a>
</div>
</div>
<div id="container">
<!-- Each image is 350px by 233px -->
<div class="photobanner">
<img class="first" src="icecream2.jpg" alt="" />
<img src="cookies.jpg" alt="" />
<img src="dippindot1.jpg" alt="" />
<img src="icecream1.jpg" alt="" />
<img src="Stephanandgirls.jpg" alt="" />
<img src="icecream2.jpg" alt="" />
<img src="dippindot2.jpg" alt="" />
<img src="privatebeach.jpg" alt="" />
<img src="icecream2.jpg" alt="" />
<img src="cookies.jpg" alt="" />
<img src="dippindot1.jpg" alt="" />
<img src="icecream1.jpg" alt="" />
<img src="Stephanandgirls.jpg" alt="" />
</div>
</div>
<!--Section Description-->
<div id="icecreamselection"> Our Selection</div>
<!--Set up the flexible three column structure for the options-->
<!--DippinDots Option-->
<!--Hersheys Option-->
<div class="col span_1_of_3">
<a target="_blank" href="hersheysresponsive.html">
<img src="hersheysoption.gif" alt="">
</a>
<h2>Do you have a favorite flavor of Hershey's Ice Cream that you would like to order in
bulk? Order online and pick up in store!
</h2>
</div>
<!--Contact Us Option-->
<div class="col span_1_of_3">
<h1> About Us </h1>
<h2> We are located in the beautiful Blue Ridge Mountains of Page County, Virginia at 40
East Main Street, Luray, VA 22835.
<br>
<br>
<center>Store Hours</center>
<br>
<br>
Sunday 11am to 9pm
<br>
<br>
Monday through Thursday 2pm to 9pm
<br>
<br>
Friday through Saturday 11am to 11pm
</h2>
<a target="_blank" href="contactusresponsive.html">
<img src="contactus.jpeg" alt="">
</a>
</div>
</div>
<div id="footer">
<ul>
<li>40 E Main Luray, VA (540)743-4777</li>
</ul>
</div>
</html>