-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfor-is-VARS.html
executable file
·113 lines (96 loc) · 2.69 KB
/
for-is-VARS.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html>
<head>
<title>Seed Calculator</title>
<meta charset="UTF-8"><meta>
<link rel="icon" href="./images/dryer.png" type="image/png">
<style type="text/css">
:root {
/* from https://creativexcorner.wordpress.com/2018/03/07/jean-michel-basquiat-one-of-the-last-natural-born-artists/ */
--vivid3: rgb(227, 191, 39);
--vivid1: rgb(29, 60, 171);
--vivid2: rgb(213, 90, 34 );
--dark1: rgb(7, 23, 53);
--light1: rgb(197, 190, 170);
--light2: rgb(222, 223, 223);
}
body {
color: white;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
font-weight: 100;
}
form {
margin: auto 5rem;
}
.monde {
/*==f=i=l=l==s=c=r=e=e=n==================*/
background-color: rgb(32, 110, 0);
min-height: 100%;
xmin-width: 1024px;
/* Set up proportionate scaling */
width: 100%;
height: auto;
/* Set up positioning */
position: fixed;
/*==f=i=l=l==s=c=r=e=e=n==END============*/
display: flex; /*(1)VERT*/
flex-direction: row; /*(1)VERT*/
align-items: center; /*(1)VERT*/
justify-content: center; /*(2)HORIZ*/
}
.square-large {
border-radius: 2rem;
border: solid 0.4rem rgb(255, 255, 0);
height: 28rem;
xwidth: 28rem;
display: flex; /*(1)VERT*/
flex-direction: column; /*(1)VERT*/
align-items: center; /*(1)VERT*/
justify-content: center; /*(2)HORIZ*/
}
.square-small {
border-radius: 2rem;
border: solid 0.4rem rgb(255, 255, 0);
margin: auto 5rem;
height: 12rem;
xwidth: 12rem;
display: flex; /*(1)VERT*/
flex-direction: row; /*(1)VERT*/
align-items: center; /*(1)VERT*/
justify-content: center; /*(2)HORIZ*/
text-align: center;
}
.core {
color: #f66;
text-align: center;
}
.brand {
position: absolute;
bottom: 2rem;
left: 2rem;
}
</style>
</head>
<body >
<div class="monde">
<div class="brand"><a href="https://en.wikipedia.org/wiki/John_deere"><img src="images/deere.png"></a></div>
<div class="square-large">
<h1>Time to buy seeds!</h1>
<div class="square-small">
<form oninput="x.value = parseInt(seeds.value) * parseInt(crate.value)">
Seeds Per Fruit:<br>0
<input type="range" name="seeds" label="seeds" value="50"/>100
<br>Fruits Per Crate:
<input type="textarea" value="33" label="crate" name="crate"/>
<!-- /*==============================*/ -->
<!-- /*==============================*/ -->
<br>Total Seeds:<br>
<output name="x"></output>
</form>
</div>
</div>
</div>
</body>
</html>