-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfor-input-output.html
executable file
·125 lines (111 loc) · 2.93 KB
/
for-input-output.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
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html>
<head>
<title>Double Typer</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(77, 23, 53);
--light1: rgb(197, 190, 170);
--light2: rgb(222, 223, 223);
}
body {
color: var(--dark1);
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: var(--light2);
min-height: 100%;
width: auto;
/* 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: 3rem;
border: solid white 0.8rem;
height: 28rem;
margin: auto 4rem;
display: flex; /*(1)VERT*/
flex-direction: column; /*(1)VERT*/
align-items: center; /*(1)VERT*/
justify-content: center; /*(2)HORIZ*/
}
.square-small {
border-radius: 3rem;
border: solid var(--dark1) 0.8rem;
margin: auto 5rem;
height: 15rem;
min-width: 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;
margin: 1rem auto;
overflow-wrap: break-word;
}
.stripe {
height: 8rem;
width: 15rem;
background-color: var(--dark1);
color: yellow;
border: solid white 0.1rem;
overflow: scroll;
}
.brand {
position: absolute;
right: 2rem;
bottom: 2rem;
}
</style>
<script type="text/javascript">
let grub = (s)=>{
let now = new Date();
now = now.toLocaleString();
console.log(`At {now} here is: {str1}`);
return s + "-" + s;
}
</script>
</head>
<body >
<div class="monde">
<div class="square-large">
<h1>Twins</h1>
<p>When you type in the box, the text will appear, twinned, below.</p>
<div class="square-small">
<!-- /*==============================*/ -->
<form oninput="out1.value = grub(str1.value)">
<input class="core" type="textarea" name="str1" /><br>
<div class="core stripe"><output name="out1" for="str1">void</output></div>
</form>
<!-- /*==============================*/ -->
</div>
</div>
<div class="brand"><img src="images/hope.png">
</div>
</div>
</body></html>