Skip to content

Commit b4c215f

Browse files
committed
/dist/ folder now has minified versions. Minify script included.
1 parent 498dbf9 commit b4c215f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+7549
-8
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33

44
# Docs folder
55
docs/
6+
7+
# Node packages. Not sure if this even helps.
8+
package.json
9+
package-lock.json

TODO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
+ [x] Desktop
77
+ [x] Tablet
88
+ [x] Mobile
9-
- [ ] Look for a minifying option for HTML
9+
- [x] Look for a minifying option for HTML
1010
- [x] Create compression script for `/src/` folder.
1111
- [x] Create `/dist/` folder for converted HTML files to live.
1212

dist/400.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html><meta charset="utf-8"><title>400 - Bad Request</title><meta http-equiv="X-UA-Compatible"content="IE=edge"><meta name="viewport"content="width=device-width,initial-scale=1"><link rel="stylesheet"href="css/fontawesome-all.css"><link rel="stylesheet"href="css/main.css"><link rel="stylesheet"href="css/breakpoints.css"><div id="container"><div id="echoerror"><i class="fas fa-exclamation-triangle orange"></i></div></div><div id="errormsg">:~$ Error 400!<br>Bad Request<br><br>The server cannot or will not process the request due to an apparent client error.</div><script>var charIndex = -1;
2+
var stringLength = 0;
3+
var inputText;
4+
function writeContent()
5+
{
6+
inputText = document.getElementById('errormsg').innerHTML;
7+
if (charIndex === -1) {
8+
charIndex = 0;
9+
stringLength = inputText.length;
10+
}
11+
var initString = document.getElementById('echoerror').innerHTML;
12+
initString = initString.replace(/<span.*$/gi,"");
13+
14+
var theChar = inputText.charAt(charIndex);
15+
var nextFourChars = inputText.substr(charIndex,4);
16+
17+
if (nextFourChars === '<br>') {
18+
theChar = '<br>';
19+
charIndex+=3;
20+
}
21+
22+
initString = initString + theChar + "<span id='blink'>▌</span>";
23+
document.getElementById('echoerror').innerHTML = initString;
24+
25+
time = 35;
26+
charIndex = charIndex/1 +1;
27+
if (charIndex <= stringLength) {
28+
setTimeout('writeContent(false)',time);
29+
}
30+
}
31+
writeContent();</script>

dist/401.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html><meta charset="utf-8"><title>401 - Unauthorized</title><meta http-equiv="X-UA-Compatible"content="IE=edge"><meta name="viewport"content="width=device-width,initial-scale=1"><link rel="stylesheet"href="css/fontawesome-all.css"><link rel="stylesheet"href="css/main.css"><link rel="stylesheet"href="css/breakpoints.css"><div id="container"><div id="echoerror"><i class="fas fa-exclamation-triangle red"></i></div></div><div id="errormsg">:~$ Error 401!<br>Unauthorized<br><br>The response must include a WWW-Authenticate header field containing a challenge applicable to the requested resource.</div><script>var charIndex = -1;
2+
var stringLength = 0;
3+
var inputText;
4+
function writeContent()
5+
{
6+
inputText = document.getElementById('errormsg').innerHTML;
7+
if (charIndex === -1) {
8+
charIndex = 0;
9+
stringLength = inputText.length;
10+
}
11+
var initString = document.getElementById('echoerror').innerHTML;
12+
initString = initString.replace(/<span.*$/gi,"");
13+
14+
var theChar = inputText.charAt(charIndex);
15+
var nextFourChars = inputText.substr(charIndex,4);
16+
17+
if (nextFourChars === '<br>') {
18+
theChar = '<br>';
19+
charIndex+=3;
20+
}
21+
22+
initString = initString + theChar + "<span id='blink'>▌</span>";
23+
document.getElementById('echoerror').innerHTML = initString;
24+
25+
time = 35;
26+
charIndex = charIndex/1 +1;
27+
if (charIndex <= stringLength) {
28+
setTimeout('writeContent(false)',time);
29+
}
30+
}
31+
writeContent();</script>

dist/403.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html><meta charset="utf-8"><title>403 - Forbidden</title><meta http-equiv="X-UA-Compatible"content="IE=edge"><meta name="viewport"content="width=device-width,initial-scale=1"><link rel="stylesheet"href="css/fontawesome-all.css"><link rel="stylesheet"href="css/main.css"><link rel="stylesheet"href="css/breakpoints.css"><div id="container"><div id="echoerror"><i class="fas fa-exclamation-triangle red"></i></div></div><div id="errormsg">:~$ Error 403!<br>Forbidden<br><br>The request was valid, but the server is refusing action.<br>The user might not have the necessary permissions for a resource, or may need an account of some sort.</div><script>var charIndex = -1;
2+
var stringLength = 0;
3+
var inputText;
4+
function writeContent()
5+
{
6+
inputText = document.getElementById('errormsg').innerHTML;
7+
if (charIndex === -1) {
8+
charIndex = 0;
9+
stringLength = inputText.length;
10+
}
11+
var initString = document.getElementById('echoerror').innerHTML;
12+
initString = initString.replace(/<span.*$/gi,"");
13+
14+
var theChar = inputText.charAt(charIndex);
15+
var nextFourChars = inputText.substr(charIndex,4);
16+
17+
if (nextFourChars === '<br>') {
18+
theChar = '<br>';
19+
charIndex+=3;
20+
}
21+
22+
initString = initString + theChar + "<span id='blink'>▌</span>";
23+
document.getElementById('echoerror').innerHTML = initString;
24+
25+
time = 35;
26+
charIndex = charIndex/1 +1;
27+
if (charIndex <= stringLength) {
28+
setTimeout('writeContent(false)',time);
29+
}
30+
}
31+
writeContent();</script>

dist/404.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/404.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html><meta charset="utf-8"><title>404 - Resource not found</title><meta http-equiv="X-UA-Compatible"content="IE=edge"><meta name="viewport"content="width=device-width,initial-scale=1"><link rel="stylesheet"href="css/fontawesome-all.css"><link rel="stylesheet"href="css/main.css"><link rel="stylesheet"href="css/breakpoints.css"><div id="container"><div id="echoerror"><i class="fas fa-times-circle red"></i></div></div><div id="errormsg">:~$ Error 404!<br>Resource not found<br><br>The requested resource could not be found but may be available again in the future.</div><script>var charIndex = -1;
2+
var stringLength = 0;
3+
var inputText;
4+
function writeContent()
5+
{
6+
inputText = document.getElementById('errormsg').innerHTML;
7+
if (charIndex === -1) {
8+
charIndex = 0;
9+
stringLength = inputText.length;
10+
}
11+
var initString = document.getElementById('echoerror').innerHTML;
12+
initString = initString.replace(/<span.*$/gi,"");
13+
14+
var theChar = inputText.charAt(charIndex);
15+
var nextFourChars = inputText.substr(charIndex,4);
16+
17+
if (nextFourChars === '<br>') {
18+
theChar = '<br>';
19+
charIndex+=3;
20+
}
21+
22+
initString = initString + theChar + "<span id='blink'>▌</span>";
23+
document.getElementById('echoerror').innerHTML = initString;
24+
25+
time = 35;
26+
charIndex = charIndex/1 +1;
27+
if (charIndex <= stringLength) {
28+
setTimeout('writeContent(false)',time);
29+
}
30+
}
31+
writeContent();</script>

dist/405.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html><meta charset="utf-8"><title>405 - Method Not Allowed</title><meta http-equiv="X-UA-Compatible"content="IE=edge"><meta name="viewport"content="width=device-width,initial-scale=1"><link rel="stylesheet"href="css/fontawesome-all.css"><link rel="stylesheet"href="css/main.css"><link rel="stylesheet"href="css/breakpoints.css"><div id="container"><div id="echoerror"><i class="fas fa-exclamation-circle red"></i></div></div><div id="errormsg">:~$ Error 405!<br>Method Not Allowed<br><br>A request method is not supported for the requested resource; for example, a GET request on a form that requires data to be presented via POST, or a PUT request on a read-only resource.</div><script>var charIndex = -1;
2+
var stringLength = 0;
3+
var inputText;
4+
function writeContent()
5+
{
6+
inputText = document.getElementById('errormsg').innerHTML;
7+
if (charIndex === -1) {
8+
charIndex = 0;
9+
stringLength = inputText.length;
10+
}
11+
var initString = document.getElementById('echoerror').innerHTML;
12+
initString = initString.replace(/<span.*$/gi,"");
13+
14+
var theChar = inputText.charAt(charIndex);
15+
var nextFourChars = inputText.substr(charIndex,4);
16+
17+
if (nextFourChars === '<br>') {
18+
theChar = '<br>';
19+
charIndex+=3;
20+
}
21+
22+
initString = initString + theChar + "<span id='blink'>▌</span>";
23+
document.getElementById('echoerror').innerHTML = initString;
24+
25+
time = 35;
26+
charIndex = charIndex/1 +1;
27+
if (charIndex <= stringLength) {
28+
setTimeout('writeContent(false)',time);
29+
}
30+
}
31+
writeContent();</script>

dist/406.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html><meta charset="utf-8"><title>406 - Not Acceptable</title><meta http-equiv="X-UA-Compatible"content="IE=edge"><meta name="viewport"content="width=device-width,initial-scale=1"><link rel="stylesheet"href="css/fontawesome-all.css"><link rel="stylesheet"href="css/main.css"><link rel="stylesheet"href="css/breakpoints.css"><div id="container"><div id="echoerror"><i class="fas fa-exclamation-circle orange"></i></div></div><div id="errormsg">:~$ Error 406!<br>Not Acceptable<br><br>The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.</div><script>var charIndex = -1;
2+
var stringLength = 0;
3+
var inputText;
4+
function writeContent()
5+
{
6+
inputText = document.getElementById('errormsg').innerHTML;
7+
if (charIndex === -1) {
8+
charIndex = 0;
9+
stringLength = inputText.length;
10+
}
11+
var initString = document.getElementById('echoerror').innerHTML;
12+
initString = initString.replace(/<span.*$/gi,"");
13+
14+
var theChar = inputText.charAt(charIndex);
15+
var nextFourChars = inputText.substr(charIndex,4);
16+
17+
if (nextFourChars === '<br>') {
18+
theChar = '<br>';
19+
charIndex+=3;
20+
}
21+
22+
initString = initString + theChar + "<span id='blink'>▌</span>";
23+
document.getElementById('echoerror').innerHTML = initString;
24+
25+
time = 35;
26+
charIndex = charIndex/1 +1;
27+
if (charIndex <= stringLength) {
28+
setTimeout('writeContent(false)',time);
29+
}
30+
}
31+
writeContent();</script>

dist/407.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html><meta charset="utf-8"><title>407 - Proxy Authentication Required</title><meta http-equiv="X-UA-Compatible"content="IE=edge"><meta name="viewport"content="width=device-width,initial-scale=1"><link rel="stylesheet"href="css/fontawesome-all.css"><link rel="stylesheet"href="css/main.css"><link rel="stylesheet"href="css/breakpoints.css"><div id="container"><div id="echoerror"><i class="fas fa-info-circle green"></i></div></div><div id="errormsg">:~$ Error 407!<br>Proxy Authentication Required<br><br>The client must first authenticate itself with the proxy.</div><script>var charIndex = -1;
2+
var stringLength = 0;
3+
var inputText;
4+
function writeContent()
5+
{
6+
inputText = document.getElementById('errormsg').innerHTML;
7+
if (charIndex === -1) {
8+
charIndex = 0;
9+
stringLength = inputText.length;
10+
}
11+
var initString = document.getElementById('echoerror').innerHTML;
12+
initString = initString.replace(/<span.*$/gi,"");
13+
14+
var theChar = inputText.charAt(charIndex);
15+
var nextFourChars = inputText.substr(charIndex,4);
16+
17+
if (nextFourChars === '<br>') {
18+
theChar = '<br>';
19+
charIndex+=3;
20+
}
21+
22+
initString = initString + theChar + "<span id='blink'>▌</span>";
23+
document.getElementById('echoerror').innerHTML = initString;
24+
25+
time = 35;
26+
charIndex = charIndex/1 +1;
27+
if (charIndex <= stringLength) {
28+
setTimeout('writeContent(false)',time);
29+
}
30+
}
31+
writeContent();</script>

0 commit comments

Comments
 (0)