Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Commit

Permalink
added a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
hodss committed Apr 22, 2022
1 parent 12acc62 commit 7b43a59
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 16 deletions.
22 changes: 18 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const express = require('express');
//express function
const app = express();
//Deprecation of res.sendfile is invalid, "sendFile" is currently not working, so ignore the console log, as it's not true.
loadstring1 = 'functions are correct if ur seeing this'


// GET / file/index landing /
app.get('/', (req, res) => {
Expand All @@ -27,11 +29,11 @@ app.get('/imagedesigners', (req, res) => {
});

app.get('/src/cdn/', (req, res) => {
res.sendfile('')
res.sendfile('src/misc/srcdir.html')
});

app.get('/src/', (req, res) => {
res.sendfile('')
res.sendfile('src/misc/srcdir.html')
});

app.get('/new', (req, res) => {
Expand All @@ -45,23 +47,35 @@ app.get('/tsscac', (req, res) => {
app.get('/privacy', (req, res) => {
res.sendfile('src/views/pages/privacy.html')
});

app.get('/terms', (req, res) => {
res.sendfile('src/views/pages/terms.html')
});

//src/misc/tsscac/agr0001.md
// Call Public Static
app.use('/public', express.static(process.cwd() + '/public'));
app.use('/public/style.css', express.static(process.cwd() + '/public/style.css'));
app.use('/public/front.js', express.static(process.cwd() + '/public/front.js'));
// Call Public Static
app.use('/src/cdn', express.static(process.cwd() + '/src/cdn'));
app.use('/src/misc', express.static(process.cwd() + '/src/misc'));
app.use('/index.js', express.static(process.cwd() + '/index.js'));
app.use('/src/errors/404.htm', express.static(process.cwd() + '/src/errors/404.htm'));
app.use('/src/errors/500.htm', express.static(process.cwd() + '/src/errors/500.htm'));

// Handle 404
app.use(function(req, res) {
res.sendfile('src/errorshandlers/404.htm', 404);
res.sendfile('src/errors/404.htm', 404);
});

// Handle 500
app.use(function(error, req, res, next) {
res.sendfile('src/errors/404.htm', 500);
res.sendfile('src/errors/500.htm', 500);
});
//listen on ports and give serverstart and serverready
app.listen(3000, () => {
console.log('Server Started, await res.sendfile');

console.log(loadstring1)
});
17 changes: 15 additions & 2 deletions public/front.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
//frontend JavaScript, does not affect the server or the index
console.log('frontend file succcessfully patched')

function fyuTrigger() {
var r = confirm("SEVERE epilepsy warning! clicking confirm will unleash hell, if you can't handle it then click off.");
if (r == true) {
makeItHell();
}
}

function runawayelements() {
var r = confirm("this will make the elements run away, there should be no warnings but be careful.");
if (r == true) {
loadElems()
runAway()
}
}
Binary file removed src/misc/evon.zip
Binary file not shown.
10 changes: 0 additions & 10 deletions src/misc/evondown.htm

This file was deleted.

66 changes: 66 additions & 0 deletions src/misc/srcdir.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!doctype html>
<html>
<head>
<meta name="description" content="hodss.xyz src source directory - src/misc/scrdir.html" />
</head>

server source :
<br>
<a href="/index.js" target="_blank">/index.js</a>
<br>
public source :
<br>
<a href="/public/style.css" target="_blank">public/style.css</a>
<br>
<a href="/public/front.js" target="_blank">public/front.js</a>
<br>
src source file directory :
<br>
views :
<br>
<a href="/" target="_blank">src/views/pages/landing.htm</a>
<br>
<a href="/imagedesigners" target="_blank">src/views/pages/ineed.htm</a>
<br>
<a href="/license" target="_blank">src/views/pages/license.htm</a>
<br>
<a href="/new" target="_blank">src/views/pages/newsite.html</a>
<br>
<a href="/portfolio" target="_blank">src/views/pages/portfolio.html</a>
<br>
<a href="/privacy" target="_blank">src/views/pages/privacy.html</a>
<br>
views : blog :
<br>
<a href="/standwithukraine" target="_blank">src/views/blog/ukraine.html</a>
<br>
cdn :
<br>
<a href="src/cdn/hodbanner.png" target="_blank">src/cdn/hodbanner.png</a>
<br>
<a href="src/cdn/hodfolds.png" target="_blank">src/cdn/hodfolds.png</a>
<br>
errors :
<br>
<a href="src/errors/404.htm" target="_blank">src/errors/404.htm</a>
<br>
<a href="src/errors/500.htm" target="_blank">src/errors/500.htm</a>
<br>
misc :
<br>
<a href="src/misc/compression.html" target="_blank">src/misc/compression.html</a>
<br>
<a href="src/misc/makeithell.html" target="_blank">src/misc/makeithell.html</a>
<br>
<a href="src/misc/srcdir.html" target="_blank">src/misc/srcdir.html</a>
<br>
misc : tsscac :
<br>
<a href="src/misc/tsscac/agr0001.md" target="_blank">src/misc/tsscac/agr0001.md</a>
<br>
<a href="src/misc/tsscac/agr0002.md" target="_blank">src/misc/tsscac/agr00002.md</a>
<br>
<a href="src/misc/tsscac/cryptoaddresses.md" target="_blank">src/misc/tsscac/cryptoaddresses.md</a>
<br>
<a href="src/misc/tsscac/tsscac.html" target="_blank">src/misc/tsscac/tsscac.html</a>
<br>

0 comments on commit 7b43a59

Please sign in to comment.