-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathInputWallPricingScript.html
99 lines (86 loc) · 2.92 KB
/
InputWallPricingScript.html
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>HTML Grasshopper Interface</title>
<meta name="author" content="Petr Mitev">
<style>
html,
body {
margin: 5px;
padding: 0;
}
.grid-container {
display: grid;
grid-template-columns: auto auto;
padding: 10px;
}
.grid-container-results {
display: grid;
grid-template-columns: auto auto auto;
padding: 10px;
}
.label-container {
display: flex;
align-items: center
}
label {
margin-right: 10px;
}
#app {
font-family: "Avenir", Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: #2c3e50;
}
</style>
</head>
<body>
<br>
<div id="app">
<img width="200"
src="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fmaxcdn.icons8.com%2FShare%2Ficon%2Fdotty%2FScience%2Fcalculator1600.png&f=1&nofb=1"
alt="App Logo">
<h1>Wall Pricing Calculator</h1>
<div class="grid-container">
<div class="label-container">
<label for="length">Wall Length</label>
<input type="range" id="length" min="1" max="200" step="1" value="50">
</div>
<div class="label-container">
<label for="width">Wall Width</label>
<input type="range" id="width" min="1" max="10" step="1" value="2">
</div>
</div>
<div class="grid-container">
<div class="label-container">
<label for="studSpace">Stud Spacing</label>
<input type="range" id="studSpace" min="1" max="10" step="0.1" value="4">
</div>
<div class="label-container">
<label for="studSize">Stud Sizing</label>
<input type="range" id="studSize" min="0.1" max="2" step="0.1" value="0.5">
</div>
</div>
<!-- RESULTS -->
<h2 style="margin-bottom: 0px;">Results</h2>
<div class="grid-container-results">
<div class="label-container">
<label for="wallAreaLabel">Wall Area</label>
<p id="wallAreaLabel">100</p>
</div>
<div class="label-container">
<label for="wallVolumeLabel">Wall Volume</label>
<p id="wallVolumeLabel">100</p>
</div>
<div class="label-container">
<label for="studCountLabel">Stud Count</label>
<p id="studCountLabel">100</p>
</div>
</div>
<div>
<input type="button" id="exportButton" value="Export Results">
</div>
</div>
</body>
</html>