Skip to content

Commit a7a2a47

Browse files
committed
Code cleanup
1 parent 2d0f3f0 commit a7a2a47

9 files changed

+159
-150
lines changed

.editorconfig

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
[*]
22
end_of_line = lf
33
insert_final_newline = true
4+
ij_javascript_use_double_quotes = false
5+
ij_scss_use_double_quotes = false
6+
ij_css_use_double_quotes = false
7+
ij_html_quote_style = single
8+
ij_html_enforce_quotes = true

delete/index.html

+33-33
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang='en'>
33

44
<head>
5-
<meta charset="UTF-8">
6-
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
<meta charset='UTF-8'>
6+
<meta name='viewport' content='width=device-width, initial-scale=1'>
77
<title>TmpFiles</title>
8-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css"
9-
integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg=="
10-
crossorigin="anonymous" referrerpolicy="no-referrer"/>
11-
<link rel="stylesheet" href="/css/main.css">
12-
<link rel="icon" href="/img/favicon.svg" type="image/svg+xml"/>
13-
<link rel="manifest" href="/manifest.json" type="application/manifest+json"/>
8+
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css'
9+
integrity='sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg=='
10+
crossorigin='anonymous' referrerpolicy='no-referrer'/>
11+
<link rel='stylesheet' href='/css/main.css'>
12+
<link rel='icon' href='/img/favicon.svg' type='image/svg+xml'/>
13+
<link rel='manifest' href='/manifest.json' type='application/manifest+json'/>
1414
</head>
1515

1616
<body>
17-
<nav class="navbar navbar-static-top navbar-expand-sm">
18-
<div class="container">
19-
<a class="d-none d-lg-block" href="/">
20-
<svg id="logo" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 859 464"><path d="M120.8 309.3c-13.3 0-20.8-10.7-20.8-24V140h63v-38h-63V28H47v74H0v38h47v151.5c0 44.9 26.8 63.2 71.2 63.2 8.6 0 20.2-2.4 31.7-5.5l16.6-48.4c-11.9 3.4-33.6 8.5-45.7 8.5zM225 102v28.9l9.6-28.9zm271.5-5.9c-29.6 0-61.8 21.9-75.1 46.9-7.6-36.2-35.2-46.4-71.4-46.4-30.6 0-62.2 19.4-75.5 45.4l-1.3-7L224 277.5V352h53V202.2c0-28.6 25.5-59.7 55.7-59.7 30.6 0 41.3 17.8 41.3 48.4V352h53V203.2c0-31.6 24.3-59.7 56.4-59.7 31.6 0 42.6 16.3 42.6 48.4V352h53V177.7c0-55.6-26.4-81.6-82.5-81.6zm266.7.5c-32.1 0-54.1 12.4-72.9 35.4l-10.7-30H640v362h53V325.1c16 24 39.4 31.6 70 31.6 57.1 0 96-38.2 96-94.3v-74.5c0-55.1-38.7-91.3-95.8-91.3zM806 262.4c0 31.6-27.7 47.4-55.8 47.4-30.6-.5-57.3-17.3-57.3-47.4v-73.9c0-27 27.7-44.9 57.3-44.9 30.1 0 55.8 13.3 55.8 46.4v72.4zm-639.4 38.4c4.4-1.3 7.4-2.3 8.1-2.7l11.7 38.3c-6.7 3.2-21.4 9-36.5 13.1L125.4 421h50.1L225 277.6V130.9l-58.4 169.9zm107-165.5L320.1 0h-50.6l-34.9 102H269"/></svg>
17+
<nav class='navbar navbar-static-top navbar-expand-sm'>
18+
<div class='container'>
19+
<a class='d-none d-lg-block' href='/'>
20+
<svg id='logo' xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 859 464'><path d='M120.8 309.3c-13.3 0-20.8-10.7-20.8-24V140h63v-38h-63V28H47v74H0v38h47v151.5c0 44.9 26.8 63.2 71.2 63.2 8.6 0 20.2-2.4 31.7-5.5l16.6-48.4c-11.9 3.4-33.6 8.5-45.7 8.5zM225 102v28.9l9.6-28.9zm271.5-5.9c-29.6 0-61.8 21.9-75.1 46.9-7.6-36.2-35.2-46.4-71.4-46.4-30.6 0-62.2 19.4-75.5 45.4l-1.3-7L224 277.5V352h53V202.2c0-28.6 25.5-59.7 55.7-59.7 30.6 0 41.3 17.8 41.3 48.4V352h53V203.2c0-31.6 24.3-59.7 56.4-59.7 31.6 0 42.6 16.3 42.6 48.4V352h53V177.7c0-55.6-26.4-81.6-82.5-81.6zm266.7.5c-32.1 0-54.1 12.4-72.9 35.4l-10.7-30H640v362h53V325.1c16 24 39.4 31.6 70 31.6 57.1 0 96-38.2 96-94.3v-74.5c0-55.1-38.7-91.3-95.8-91.3zM806 262.4c0 31.6-27.7 47.4-55.8 47.4-30.6-.5-57.3-17.3-57.3-47.4v-73.9c0-27 27.7-44.9 57.3-44.9 30.1 0 55.8 13.3 55.8 46.4v72.4zm-639.4 38.4c4.4-1.3 7.4-2.3 8.1-2.7l11.7 38.3c-6.7 3.2-21.4 9-36.5 13.1L125.4 421h50.1L225 277.6V130.9l-58.4 169.9zm107-165.5L320.1 0h-50.6l-34.9 102H269'/></svg>
2121
</a>
22-
<ul class="navbar-nav col-12 col-md-4">
23-
<li class="nav-item"><a class="nav-link" href="/" accesskey="U">Upload</a></li>
24-
<li class="nav-item"><a class="nav-link" href="/download/" accesskey="D">Download</a></li>
25-
<li class="nav-item"><a class="nav-link" href="/delete/" accesskey="R">Delete</a></li>
22+
<ul class='navbar-nav col-12 col-md-4'>
23+
<li class='nav-item'><a class='nav-link' href='/' accesskey='U'>Upload</a></li>
24+
<li class='nav-item'><a class='nav-link' href='/download/' accesskey='D'>Download</a></li>
25+
<li class='nav-item'><a class='nav-link' href='/delete/' accesskey='R'>Delete</a></li>
2626
</ul>
2727
</div>
2828
</nav>
2929

30-
<main class="center col-12 col-md-7 col-xl-5">
31-
<h1 class="display-4 col" id="title">Delete</h1>
32-
<form id="delete-form">
33-
<div class="input-group mb-3">
34-
<label class="input-group-text" for="id">ID</label>
35-
<input class="form-control" id="id" type="text" minlength="14" maxlength="14" pattern="^D+[A-Za-z0-9]{13}$" required/>
30+
<main class='center col-12 col-md-7 col-xl-5'>
31+
<h1 class='display-4 col' id='title'>Delete</h1>
32+
<form id='delete-form' action='/'>
33+
<div class='input-group mb-3'>
34+
<label class='input-group-text' for='id'>ID</label>
35+
<input class='form-control' id='id' type='text' minlength='14' maxlength='14' pattern='^D+[A-Za-z0-9]{13}$' required/>
3636
</div>
37-
<div class="input-group mb-3">
38-
<label class="input-group-text" for="password">Deletion Password</label>
39-
<input class="form-control" id="password" type="password" autocomplete="current-password" required/>
37+
<div class='input-group mb-3'>
38+
<label class='input-group-text' for='password'>Deletion Password</label>
39+
<input class='form-control' id='password' type='password' autocomplete='current-password' required/>
4040
</div>
41-
<div class="d-grid gap-2 d-md-flex justify-content-between">
42-
<div id="failure" class="text-danger"></div>
43-
<button type="submit" class="btn btn-lg btn-danger">Delete</button>
41+
<div class='d-grid gap-2 d-md-flex justify-content-between'>
42+
<div id='failure' class='text-danger'></div>
43+
<button type='submit' class='btn btn-lg btn-danger'>Delete</button>
4444
</div>
4545
</form>
46-
<div id="success">
47-
<p class="lead">File deleted</p>
48-
<a class="btn btn-lg btn-success" href="/">Go back</a>
46+
<div id='success'>
47+
<p class='lead'>File deleted</p>
48+
<a class='btn btn-lg btn-success' href='/'>Go back</a>
4949
</div>
5050
</main>
51-
<script defer src="/js/remove.js"></script>
51+
<script defer src='/js/remove.js'></script>
5252
</body>

download/index.html

+30-30
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang='en'>
33

44
<head>
5-
<meta charset="UTF-8">
6-
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
<meta charset='UTF-8'>
6+
<meta name='viewport' content='width=device-width, initial-scale=1'>
77
<title>TmpFiles</title>
8-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css"
9-
integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg=="
10-
crossorigin="anonymous" referrerpolicy="no-referrer"/>
11-
<link rel="stylesheet" href="/css/main.css">
12-
<link rel="icon" href="/img/favicon.svg" type="image/svg+xml"/>
13-
<link rel="manifest" href="/manifest.json" type="application/manifest+json"/>
8+
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css'
9+
integrity='sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg=='
10+
crossorigin='anonymous' referrerpolicy='no-referrer'/>
11+
<link rel='stylesheet' href='/css/main.css'>
12+
<link rel='icon' href='/img/favicon.svg' type='image/svg+xml'/>
13+
<link rel='manifest' href='/manifest.json' type='application/manifest+json'/>
1414
</head>
1515

1616
<body>
17-
<nav class="navbar navbar-static-top navbar-expand-sm">
18-
<div class="container">
19-
<a class="d-none d-lg-block" href="/">
20-
<svg id="logo" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 859 464"><path d="M120.8 309.3c-13.3 0-20.8-10.7-20.8-24V140h63v-38h-63V28H47v74H0v38h47v151.5c0 44.9 26.8 63.2 71.2 63.2 8.6 0 20.2-2.4 31.7-5.5l16.6-48.4c-11.9 3.4-33.6 8.5-45.7 8.5zM225 102v28.9l9.6-28.9zm271.5-5.9c-29.6 0-61.8 21.9-75.1 46.9-7.6-36.2-35.2-46.4-71.4-46.4-30.6 0-62.2 19.4-75.5 45.4l-1.3-7L224 277.5V352h53V202.2c0-28.6 25.5-59.7 55.7-59.7 30.6 0 41.3 17.8 41.3 48.4V352h53V203.2c0-31.6 24.3-59.7 56.4-59.7 31.6 0 42.6 16.3 42.6 48.4V352h53V177.7c0-55.6-26.4-81.6-82.5-81.6zm266.7.5c-32.1 0-54.1 12.4-72.9 35.4l-10.7-30H640v362h53V325.1c16 24 39.4 31.6 70 31.6 57.1 0 96-38.2 96-94.3v-74.5c0-55.1-38.7-91.3-95.8-91.3zM806 262.4c0 31.6-27.7 47.4-55.8 47.4-30.6-.5-57.3-17.3-57.3-47.4v-73.9c0-27 27.7-44.9 57.3-44.9 30.1 0 55.8 13.3 55.8 46.4v72.4zm-639.4 38.4c4.4-1.3 7.4-2.3 8.1-2.7l11.7 38.3c-6.7 3.2-21.4 9-36.5 13.1L125.4 421h50.1L225 277.6V130.9l-58.4 169.9zm107-165.5L320.1 0h-50.6l-34.9 102H269"/></svg>
17+
<nav class='navbar navbar-static-top navbar-expand-sm'>
18+
<div class='container'>
19+
<a class='d-none d-lg-block' href='/'>
20+
<svg id='logo' xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 859 464'><path d='M120.8 309.3c-13.3 0-20.8-10.7-20.8-24V140h63v-38h-63V28H47v74H0v38h47v151.5c0 44.9 26.8 63.2 71.2 63.2 8.6 0 20.2-2.4 31.7-5.5l16.6-48.4c-11.9 3.4-33.6 8.5-45.7 8.5zM225 102v28.9l9.6-28.9zm271.5-5.9c-29.6 0-61.8 21.9-75.1 46.9-7.6-36.2-35.2-46.4-71.4-46.4-30.6 0-62.2 19.4-75.5 45.4l-1.3-7L224 277.5V352h53V202.2c0-28.6 25.5-59.7 55.7-59.7 30.6 0 41.3 17.8 41.3 48.4V352h53V203.2c0-31.6 24.3-59.7 56.4-59.7 31.6 0 42.6 16.3 42.6 48.4V352h53V177.7c0-55.6-26.4-81.6-82.5-81.6zm266.7.5c-32.1 0-54.1 12.4-72.9 35.4l-10.7-30H640v362h53V325.1c16 24 39.4 31.6 70 31.6 57.1 0 96-38.2 96-94.3v-74.5c0-55.1-38.7-91.3-95.8-91.3zM806 262.4c0 31.6-27.7 47.4-55.8 47.4-30.6-.5-57.3-17.3-57.3-47.4v-73.9c0-27 27.7-44.9 57.3-44.9 30.1 0 55.8 13.3 55.8 46.4v72.4zm-639.4 38.4c4.4-1.3 7.4-2.3 8.1-2.7l11.7 38.3c-6.7 3.2-21.4 9-36.5 13.1L125.4 421h50.1L225 277.6V130.9l-58.4 169.9zm107-165.5L320.1 0h-50.6l-34.9 102H269'/></svg>
2121
</a>
22-
<ul class="navbar-nav col-12 col-md-4">
23-
<li class="nav-item"><a class="nav-link" href="/" accesskey="U">Upload</a></li>
24-
<li class="nav-item"><a class="nav-link" href="/download/" accesskey="D">Download</a></li>
25-
<li class="nav-item"><a class="nav-link" href="/delete/" accesskey="R">Delete</a></li>
22+
<ul class='navbar-nav col-12 col-md-4'>
23+
<li class='nav-item'><a class='nav-link' href='/' accesskey='U'>Upload</a></li>
24+
<li class='nav-item'><a class='nav-link' href='/download/' accesskey='D'>Download</a></li>
25+
<li class='nav-item'><a class='nav-link' href='/delete/' accesskey='R'>Delete</a></li>
2626
</ul>
2727
</div>
2828
</nav>
2929

30-
<main class="center col-12 col-md-7 col-xl-5">
31-
<h1 class="display-4 col" id="title">Download</h1>
32-
<form id="download-form">
33-
<div class="input-group mb-3">
34-
<label class="input-group-text" for="id">ID</label>
35-
<input class="form-control" id="id" type="text" minlength="14" maxlength="14" pattern="^D+[A-Za-z0-9]{13}$" required/>
30+
<main class='center col-12 col-md-7 col-xl-5'>
31+
<h1 class='display-4 col' id='title'>Download</h1>
32+
<form id='download-form' action='/'>
33+
<div class='input-group mb-3'>
34+
<label class='input-group-text' for='id'>ID</label>
35+
<input class='form-control' id='id' type='text' minlength='14' maxlength='14' pattern='^D+[A-Za-z0-9]{13}$' required/>
3636
</div>
37-
<div class="input-group mb-3">
38-
<label class="input-group-text" for="password">Password</label>
39-
<input class="form-control" id="password" type="password" autocomplete="current-password" required/>
37+
<div class='input-group mb-3'>
38+
<label class='input-group-text' for='password'>Password</label>
39+
<input class='form-control' id='password' type='password' autocomplete='current-password' required/>
4040
</div>
41-
<div class="d-grid gap-2 d-md-flex justify-content-between">
42-
<div id="failure" class="text-danger"></div>
43-
<button type="submit" class="btn btn-lg btn-success">Download</button>
41+
<div class='d-grid gap-2 d-md-flex justify-content-between'>
42+
<div id='failure' class='text-danger'></div>
43+
<button type='submit' class='btn btn-lg btn-success'>Download</button>
4444
</div>
4545
</form>
4646
</main>
47-
<script defer src="/js/download.js"></script>
47+
<script defer src='/js/download.js'></script>
4848
</body>

index.html

+48-45
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,73 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang='en'>
33

44
<head>
5-
<meta charset="UTF-8">
6-
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
<meta charset='UTF-8'>
6+
<meta name='viewport' content='width=device-width, initial-scale=1'>
77
<title>TmpFiles</title>
8-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css"
9-
integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg=="
10-
crossorigin="anonymous" referrerpolicy="no-referrer"/>
11-
<link rel="stylesheet" href="/css/main.css">
12-
<link rel="icon" href="/img/favicon.svg" type="image/svg+xml"/>
13-
<link rel="manifest" href="/manifest.json" type="application/manifest+json"/>
8+
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css'
9+
integrity='sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg=='
10+
crossorigin='anonymous' referrerpolicy='no-referrer'/>
11+
<link rel='stylesheet' href='/css/main.css'>
12+
<link rel='icon' href='/img/favicon.svg' type='image/svg+xml'/>
13+
<link rel='manifest' href='/manifest.json' type='application/manifest+json'/>
1414
</head>
1515

1616
<body>
17-
<nav class="navbar navbar-static-top navbar-expand-sm">
18-
<div class="container">
19-
<a class="d-none d-lg-block" href="/">
20-
<svg id="logo" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 859 464"><path d="M120.8 309.3c-13.3 0-20.8-10.7-20.8-24V140h63v-38h-63V28H47v74H0v38h47v151.5c0 44.9 26.8 63.2 71.2 63.2 8.6 0 20.2-2.4 31.7-5.5l16.6-48.4c-11.9 3.4-33.6 8.5-45.7 8.5zM225 102v28.9l9.6-28.9zm271.5-5.9c-29.6 0-61.8 21.9-75.1 46.9-7.6-36.2-35.2-46.4-71.4-46.4-30.6 0-62.2 19.4-75.5 45.4l-1.3-7L224 277.5V352h53V202.2c0-28.6 25.5-59.7 55.7-59.7 30.6 0 41.3 17.8 41.3 48.4V352h53V203.2c0-31.6 24.3-59.7 56.4-59.7 31.6 0 42.6 16.3 42.6 48.4V352h53V177.7c0-55.6-26.4-81.6-82.5-81.6zm266.7.5c-32.1 0-54.1 12.4-72.9 35.4l-10.7-30H640v362h53V325.1c16 24 39.4 31.6 70 31.6 57.1 0 96-38.2 96-94.3v-74.5c0-55.1-38.7-91.3-95.8-91.3zM806 262.4c0 31.6-27.7 47.4-55.8 47.4-30.6-.5-57.3-17.3-57.3-47.4v-73.9c0-27 27.7-44.9 57.3-44.9 30.1 0 55.8 13.3 55.8 46.4v72.4zm-639.4 38.4c4.4-1.3 7.4-2.3 8.1-2.7l11.7 38.3c-6.7 3.2-21.4 9-36.5 13.1L125.4 421h50.1L225 277.6V130.9l-58.4 169.9zm107-165.5L320.1 0h-50.6l-34.9 102H269"/></svg>
17+
<nav class='navbar navbar-static-top navbar-expand-sm'>
18+
<div class='container'>
19+
<a class='d-none d-lg-block' href='/'>
20+
<svg id='logo' xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 859 464'>
21+
<path
22+
d='M120.8 309.3c-13.3 0-20.8-10.7-20.8-24V140h63v-38h-63V28H47v74H0v38h47v151.5c0 44.9 26.8 63.2 71.2 63.2 8.6 0 20.2-2.4 31.7-5.5l16.6-48.4c-11.9 3.4-33.6 8.5-45.7 8.5zM225 102v28.9l9.6-28.9zm271.5-5.9c-29.6 0-61.8 21.9-75.1 46.9-7.6-36.2-35.2-46.4-71.4-46.4-30.6 0-62.2 19.4-75.5 45.4l-1.3-7L224 277.5V352h53V202.2c0-28.6 25.5-59.7 55.7-59.7 30.6 0 41.3 17.8 41.3 48.4V352h53V203.2c0-31.6 24.3-59.7 56.4-59.7 31.6 0 42.6 16.3 42.6 48.4V352h53V177.7c0-55.6-26.4-81.6-82.5-81.6zm266.7.5c-32.1 0-54.1 12.4-72.9 35.4l-10.7-30H640v362h53V325.1c16 24 39.4 31.6 70 31.6 57.1 0 96-38.2 96-94.3v-74.5c0-55.1-38.7-91.3-95.8-91.3zM806 262.4c0 31.6-27.7 47.4-55.8 47.4-30.6-.5-57.3-17.3-57.3-47.4v-73.9c0-27 27.7-44.9 57.3-44.9 30.1 0 55.8 13.3 55.8 46.4v72.4zm-639.4 38.4c4.4-1.3 7.4-2.3 8.1-2.7l11.7 38.3c-6.7 3.2-21.4 9-36.5 13.1L125.4 421h50.1L225 277.6V130.9l-58.4 169.9zm107-165.5L320.1 0h-50.6l-34.9 102H269'/>
23+
</svg>
2124
</a>
22-
<ul class="navbar-nav col-12 col-md-4">
23-
<li class="nav-item"><a class="nav-link" href="/" accesskey="U">Upload</a></li>
24-
<li class="nav-item"><a class="nav-link" href="/download/" accesskey="D">Download</a></li>
25-
<li class="nav-item"><a class="nav-link" href="/delete/" accesskey="R">Delete</a></li>
25+
<ul class='navbar-nav col-12 col-md-4'>
26+
<li class='nav-item'><a class='nav-link' href='/' accesskey='U'>Upload</a></li>
27+
<li class='nav-item'><a class='nav-link' href='/download/' accesskey='D'>Download</a></li>
28+
<li class='nav-item'><a class='nav-link' href='/delete/' accesskey='R'>Delete</a></li>
2629
</ul>
2730
</div>
2831
</nav>
2932

30-
<main class="center col-12 col-md-7 col-xl-5">
31-
<h1 class="display-4 col" id="title">Upload</h1>
32-
<form id="upload-form">
33-
<div class="input-group mb-3">
34-
<label for="file" aria-hidden="false" class="visually-hidden">File</label>
35-
<input name="file" class="form-control" type="file" id="file" required>
33+
<main class='center col-12 col-md-7 col-xl-5'>
34+
<h1 class='display-4 col' id='title'>Upload</h1>
35+
<form id='upload-form' action='https://1.tmpfil.es/'>
36+
<div class='input-group mb-3'>
37+
<label for='file' aria-hidden='false' class='visually-hidden'>File</label>
38+
<input name='file' class='form-control' type='file' id='file' required>
3639
</div>
37-
<div class="row">
38-
<div class="input-group mb-3">
39-
<label class="input-group-text" for="password">Password</label>
40-
<input class="form-control" name="password" type="password" id="password" autocomplete="new-password"
41-
minlength="4"
42-
maxlength="500" aria-label="password" placeholder="Optional">
40+
<div class='row'>
41+
<div class='input-group mb-3'>
42+
<label class='input-group-text' for='password'>Password</label>
43+
<input class='form-control' name='password' type='password' id='password' autocomplete='new-password'
44+
minlength='4'
45+
maxlength='500' aria-label='password' placeholder='Optional'>
4346
</div>
44-
<div class="d-grid gap-2 d-md-flex justify-content-between">
45-
<div id="failure" class="text-danger"></div>
46-
<button class="btn btn-success btn-lg" type="submit">Upload</button>
47+
<div class='d-grid gap-2 d-md-flex justify-content-between'>
48+
<div id='failure' class='text-danger'></div>
49+
<button class='btn btn-success btn-lg' id='submit' disabled type='submit'>Upload</button>
4750
</div>
4851
</div>
49-
<div id="captcha"></div>
52+
<div id='captcha'></div>
5053
</form>
5154

52-
<div id="success">
55+
<div id='success'>
5356
<form>
54-
<div class="input-group mb-3">
55-
<label class="input-group-text" for="url">URL</label>
56-
<input class="form-control" id="url" readonly autofocus/>
57+
<div class='input-group mb-3'>
58+
<label class='input-group-text' for='url'>URL</label>
59+
<input class='form-control' id='url' readonly autofocus/>
5760
</div>
58-
<div class="input-group mb-3">
59-
<label class="input-group-text" for="deletion-password">Deletion Password</label>
60-
<input class="form-control" id="deletion-password" readonly/>
61+
<div class='input-group mb-3'>
62+
<label class='input-group-text' for='deletion-password'>Deletion Password</label>
63+
<input class='form-control' id='deletion-password' readonly/>
6164
</div>
62-
<button class="btn btn-success btn-lg" type="reset" onclick="location.reload()">Back</button>
65+
<button class='btn btn-success btn-lg' type='reset' onclick='location.reload()'>Back</button>
6366
</form>
6467
</div>
6568
</main>
66-
<div id="popup"></div>
67-
<script defer src="/js/encryption.js"></script>
68-
<script defer src="/js/upload.js"></script>
69-
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onloadTurnstileCallback" defer></script>
69+
<div id='popup'></div>
70+
<script defer src='/js/encryption.js'></script>
71+
<script defer src='/js/upload.js'></script>
72+
<script src='https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onloadTurnstileCallback' defer></script>
7073
</body>

0 commit comments

Comments
 (0)