Skip to content

Commit 8b893ec

Browse files
committed
Refactor HTTP subdomains and add textarea. Closes #320.
1 parent 46bf142 commit 8b893ec

23 files changed

+87
-16
lines changed

common/input/textarea/index.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: textarea
3+
layout: page
4+
favicon: gray
5+
background: gray
6+
---
7+
8+
<style>
9+
#content textarea {
10+
font-size: 4vw;
11+
}
12+
</style>
13+
14+
<div id="content">
15+
<h1 style="font-size: 5vw;">
16+
textarea
17+
</h1>
18+
<br><br><br>
19+
<textarea placeholder="Type here." autofocus></textarea>
20+
</div>
21+
22+
<div id="footer">
23+
This page contains a <code>&lt;textarea&gt;</code> input.
24+
</div>

domains/input/http-credit-card.conf domains/http/http-credit-card.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ server {
66

77
include {{ site.serving-path }}/common/common.conf;
88

9-
root {{ site.serving-path }}/domains/input/http-credit-card;
9+
root {{ site.serving-path }}/domains/http/http-credit-card;
1010
}
1111

1212
server {

domains/input/http-dynamic-login.conf domains/http/http-dynamic-login.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ server {
66

77
include {{ site.serving-path }}/common/common.conf;
88

9-
root {{ site.serving-path }}/domains/input/http-dynamic-login;
9+
root {{ site.serving-path }}/domains/http/http-dynamic-login;
1010

1111
location /submit {
1212
error_page 405 =200 $uri;

domains/input/http-login.conf domains/http/http-login.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ server {
66

77
include {{ site.serving-path }}/common/common.conf;
88

9-
root {{ site.serving-path }}/domains/input/http-login;
9+
root {{ site.serving-path }}/domains/http/http-login;
1010

1111
location /submit {
1212
error_page 405 =200 $uri;
File renamed without changes.

domains/input/http-password.conf domains/http/http-password.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ server {
66

77
include {{ site.serving-path }}/common/common.conf;
88

9-
root {{ site.serving-path }}/domains/input/http-password;
9+
root {{ site.serving-path }}/domains/http/http-password;
1010
}
1111

1212
server {
File renamed without changes.

domains/http/http-textarea.conf

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
---
3+
server {
4+
listen 80;
5+
server_name http-textarea.{{ site.domain }};
6+
7+
include {{ site.serving-path }}/common/common.conf;
8+
9+
root {{ site.serving-path }}/domains/http/http-textarea;
10+
}
11+
12+
server {
13+
listen 443;
14+
server_name http-textarea.{{ site.domain }};
15+
16+
include {{ site.serving-path }}/nginx-includes/wildcard-normal.conf;
17+
include {{ site.serving-path }}/nginx-includes/tls-defaults.conf;
18+
19+
return 301 http://$server_name$request_uri;
20+
}

domains/http/http-textarea/index.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
subdomain: textarea
3+
layout: page
4+
favicon: red
5+
background: red
6+
---
7+
8+
<style>
9+
#content textarea {
10+
font-size: 4vw;
11+
}
12+
</style>
13+
14+
<div id="content">
15+
<h1 style="font-size: 5vw;">
16+
{{ page.subdomain }}.<br>{{ site.domain }}
17+
</h1>
18+
<br><br><br>
19+
<textarea placeholder="Type here." autofocus></textarea>
20+
</div>
21+
22+
<div id="footer">
23+
This page contains a <code>&lt;textarea&gt;</code> input.
24+
</div>

domains/misc/http.conf domains/http/http.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ server {
1414
error_page 405 =200 $uri;
1515
}
1616

17-
root {{ site.serving-path }}/domains/misc/http;
17+
root {{ site.serving-path }}/domains/http/http;
1818
}
1919

2020
server {
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
subdomain: http
33
layout: page
4-
favicon: gray
5-
background: gray
4+
favicon: red
5+
background: red
66
---
77

88
<div id="content">
9-
<h1 style="font-size: 10vw;">
9+
<h1 style="font-size: 8vw;">
1010
{{ page.subdomain }}.{{ site.domain }}
1111
</h1>
1212
</div>
File renamed without changes.
File renamed without changes.
File renamed without changes.

domains/misc/badssl.com/index.css

+8-3
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ div.group {
3838
}
3939

4040
h2 {
41-
margin: 16px 0px 8px 8px;
42-
padding-top: 8px;
41+
margin: 8px 0px 0px 0px;
42+
padding: 8px 8px 8px;
4343
line-height: 1.5em;
4444
box-sizing: border-box;
4545

@@ -48,6 +48,11 @@ h2 {
4848
font-weight: normal;
4949
}
5050

51+
h2:target {
52+
font-weight: bold;
53+
background: rgba(0, 0, 0, 0.1);
54+
}
55+
5156
h2 .emoji {
5257
width: 16px;
5358
margin-right: 8px;
@@ -162,4 +167,4 @@ hr {
162167
.chrome-icon {
163168
vertical-align: -5%;
164169
width: 1em;
165-
}
170+
}

domains/misc/badssl.com/index.html

+3-5
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ <h2 id="mixed-content"><span class="emoji">🖼</span>Mixed Content</h2>
6767
<a href="https://mixed-form.{{ site.domain }}/" class="dubious"><span class="icon"></span>mixed-form</a>
6868
</div>
6969
<div class="group">
70-
<h2 id="http-input"><span class="emoji">✏️</span>HTTP Input</h2>
70+
<h2 id="http"><span class="emoji">✏️</span>HTTP</h2>
71+
<a href="http://http.{{ site.domain }}/" class="bad"><span class="icon"></span>http</a>
72+
<a href="http://http-textarea.{{ site.domain }}/" class="bad"><span class="icon"></span>http-textarea</a>
7173
<a href="http://http-password.{{ site.domain }}/" class="bad"><span class="icon"></span>http-password</a>
7274
<a href="http://http-login.{{ site.domain }}/" class="bad"><span class="icon"></span>http-login</a>
7375
<a href="http://http-dynamic-login.{{ site.domain }}/" class="bad"><span class="icon"></span>http-dynamic-login</a>
@@ -119,10 +121,6 @@ <h2 id="upgrade"><span class="emoji">⬆️</span>Upgrade</h2>
119121
<hr>
120122
<a href="https://https-everywhere.{{ site.domain }}/" class="good"><span class="icon"></span>https-everywhere</a>
121123
</div>
122-
<div class="group">
123-
<h2 id="miscellaneous"><span class="emoji">💬</span>Miscellaneous</h2>
124-
<a href="http://http.{{ site.domain }}/" class="dubious"><span class="icon"></span>http</a>
125-
</div>
126124
<div class="group">
127125
<h2 id="ui"><span class="emoji">👀</span>UI</h2>
128126
<a href="https://spoofed-favicon.{{ site.domain }}/" class="dubious"><span class="icon"></span>spoofed-favicon</a>

0 commit comments

Comments
 (0)