-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (70 loc) · 2.33 KB
/
index.html
File metadata and controls
74 lines (70 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!--
Length, Girth, Price of Food/kg, Food, Selling Price, Butcher's Price, Abbatiour Price, Other Costs.
Weight, Turnover, Profit, Expenditure -->
<html>
<head>
<title>This Little Pig</title>
<script src="js/calculate.js"></script>
<script src="js/jquery.js"></script>
<script src="js/slider.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>This Little Piggy</h1>
<div id="welcome">
<h2>Welcome</h2>
<p>Here's some text. It's a filler. And it repeats.ere's some text. It's a filler. And it repeats.ere's some text. It's a filler. And it repeats.ere's. It's a filler. And it repeats.ere's some text. It's a filler. And it repeats.</p>
<button id="gogo">Let's Go!</button>
</div>
<form id="calculate">
<div class="field--wrapper">
<label>Length<span id="unit">Inch</span></label><input type="number" name="fname" id="length" value="1">
</div>
<br>
<div class="field--wrapper">
<label>Girth<span id="unit">Inch</span></label><input type="number" id="girth" >
</div>
<br>
<div id="preferences">
<div class="field--wrapper">
<label>Price of Food<span id="unit">£/kg</span></label><input type="number" id="foodPrice" value="3">
</div>
<br>
<div class="field--wrapper">
<label>Food Used<span id="unit">/kg/day</span></label><input type="number" id="foodAmount" value="1">
</div>
<br>
<div class="field--wrapper">
<label>Selling Price<span id="unit">£/kg</span></label><input type="number" id="sellPrice">
</div>
<br>
<div class="field--wrapper">
<label>Butchering Fee<span id="unit">£</span></label><input type="number" id="butcherPrice">
</div>
<br>
<div class="field--wrapper">
<label>Abattoir Fee<span id="unit">£</span></label><input type="number" id="abPrice">
</div>
<br>
<div class="field--wrapper">
<label>Other Costs<span id="unit">£</span></label><input type="number" id="otherPrice">
</div>
<button id="savePreferences">Save</button>
</div>
<br>
<button id="submit">Calculate</button><button id="showPreferences">Preferences</button>
</form>
<p id="result">
<span id="weight"></span>
<br>
<span id="profit"> </span>
<br>
<span id="turnover"> </span>
<br>
<span id="expenditure"> </span>
<br>
<button id="back">Go Back</button>
</p>
<div id="menu">
</body>
</html>