diff --git a/index.js b/index.js index d6ad8d5..a33f41d 100644 --- a/index.js +++ b/index.js @@ -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) => { @@ -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) => { @@ -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) }); diff --git a/public/front.js b/public/front.js index 1c9c54d..0e1526c 100644 --- a/public/front.js +++ b/public/front.js @@ -1,2 +1,15 @@ -//frontend JavaScript, does not affect the server or the index -console.log('frontend file succcessfully patched') \ No newline at end of file + + 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() + } +} \ No newline at end of file diff --git a/src/misc/evon.zip b/src/misc/evon.zip deleted file mode 100644 index beb5a42..0000000 Binary files a/src/misc/evon.zip and /dev/null differ diff --git a/src/misc/evondown.htm b/src/misc/evondown.htm deleted file mode 100644 index df0f31e..0000000 --- a/src/misc/evondown.htm +++ /dev/null @@ -1,10 +0,0 @@ -
- download
-
-
-
-
- return to home
-