forked from maandree/ponypipe
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplayground.html
192 lines (166 loc) · 3.97 KB
/
playground.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=800, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>PonyTranslator Playground</title>
</head>
<body>
<style>
*, *:before, *:after {
border-collapse: collapse;
border-spacing: 0;
border: 0;
box-sizing: border-box;
font-size: 100%;
font-weight: normal;
height: auto;
list-style: none;
margin: 0;
max-width: 100%;
padding: 0;
padding: 0;
text-align: left;
}
</style>
<style>
.absolute {
position: absolute;
}
.disable {
display: none;
}
.max {
min-width: 100%;
min-height: 100%;
}
.maxHeight {
height: 100%;
}
.noresize {
resize: none;
}
.relative {
position: relative;
}
.transparent {
background: none;
}
.under {
z-index: -1;
}
.underunder {
z-index: -2;
}
</style>
<style>
* {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}
h1, h2, h3, h4 {
text-align: center;
font-size: 2rem;
}
html, body {
height: 100%;
}
.wrapper {
min-height: 100%;
display: grid;
grid-template-columns: 1fr 1fr;
grid-column-gap: 2px;
grid-template-rows: 3em 1fr 3em 1fr;
padding: 2px 1px;
}
.wrapper>* {
justify-self: stretch;
}
.wrapper .heading {
grid-column: span 2
}
.input, .output {
border-width: 2px;
padding: 2em;
}
.input {
border-style: inset;
}
.output {
border-style: outset;
}
.thumb {
max-height: 250px;
max-width: 250px;
}
/* https://stackoverflow.com/questions/43126465/gradient-opacity-on-borders-of-image */
.gradiantBorders {
background:
linear-gradient(180deg,
rgba(255,255,255,1) 20%,
rgba(255,255,255,0) 30%,
rgba(255,255,255,0) 85%,
rgba(255,255,255,1) 90%
),
linear-gradient(90deg,
rgba(255,255,255,1),
rgba(255,255,255,0) 15%,
rgba(255,255,255,0) 85%,
rgba(255,255,255,1) 95%
);
}
</style>
<div class="wrapper">
<h2 class="heading">Ponification</h2>
<div class="relative">
<textarea
class="input forward max noresize transparent jsForward jsInput"
>Once Doctor who had come done to Earth, people rejoiced at their sudden liberation.</textarea>
<img
class="absolute thumb under"
alt= "human twilight with a book"
src="//derpicdn.net/img/2018/5/19/1736188/thumb.png"
style="bottom: 2px; left: 2px; height: 50%;"
/>
</div>
<div class="relative" xCssAssist="width">
<div class="output forward max"><div class="jsForward jsOutput"></div></div>
<div
class="absolute under xWidthDestination"
style="bottom: -6px; right: 2px; height: 55%"
>
<div class="gradiantBorders" style="height: 100%">
<img
class="relative under xWidthSource"
alt= "unicorn Twilight falling, along with many books"
src="//derpicdn.net/img/2018/5/10/1728768/thumb.png"
style="height: 100%"
/>
</div>
</div>
</div>
<h2 class="heading">Deponification</h2>
<div class="relative">
<textarea
class="input backward max noresize transparent jsBackward jsInput"
>Gentlecolts and fillies praise Celestia; except at nightmare night where they praise the night, for Luna's sake!</textarea>
<img
class="absolute thumb under"
alt= "happy pony Sunset Shimmer"
src="//derpicdn.net/img/2015/10/29/1011909/thumb.png"
style="bottom: 2px; right: 2px; height: 45%;"
/>
</div>
<div class="relative">
<div class="output max"><div class="jsBackward jsOutput"></div></div>
<img
class="absolute thumb under maxHeight"
alt= "human Sunset Shimmer holding a book and a pen"
src="//derpicdn.net/img/2016/5/19/1157606/thumb.png"
style="bottom: 2px; right: 6px; height: 55%;"
/>
</div>
</div>
<script type="module" src="playground.ts"></script>
</body>
</html>