updated to use the injector

This commit is contained in:
Aviv "RustyStriker" Romem 2022-06-11 13:31:47 +03:00
parent 5d1dce366f
commit 018772f321
5 changed files with 11 additions and 346 deletions

View File

@ -1,53 +1,5 @@
<!DOCTYPE html>
<html>
<head>
<!-- JS Licese -->
<script>
/*
@licstart The following is the entire license notice for the
JavaScript code in this page.
Copyright (C) 2022 Aviv "RustyStriker" Romem
The JavaScript code in this page is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this page.
*/
</script>
<INJECT>cat $HOME/template/header.html | sed "s/__PAGE TITLE__/404 - Page not found/"</INJECT>
<title>404 - Page not found</title>
<!--Style stuff -->
<link rel="stylesheet" type="text/css" href="default_style.css" media="all">
</head>
<body>
<header>
<div>
<a href = "https://rustystriker.dev/">
<h1 style="margin-bottom:0px;">Rusty's Website</h1>
</a>
<p style = "margin-top: 0px;">
A place for wanky stuff, weird JavaScript and warm-ish takes
</p>
<a href = "https://rustystriker.dev/about.html">About</a>
<a href = "https://gitea.rustystriker.dev/RustyStriker/website">Source</a>
<a href = "https://rustystriker.dev/licenses.html">Licenses</a>
</div>
</header>
<h1>
404 - Page not found
</h1>
@ -66,21 +18,4 @@
</a>
</div>
<footer>
<p>
Copyright (C) 2022 Aviv "RustyStriker" Romem |
Except where otherwise noted.
<br>
works and publications on this website are licenced under
<a href = "https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>.
<br>
Codes are published under
<a href = "https://www.gnu.org/licenses/agpl-3.0.html">GNU AGPL v3 or later</a>
and JavaScript is also published under
<a href = "https://www.gnu.org/licenses/gpl-3.0.html">GNU GPL v3 or later</a>
| Except where otherwise noted.
</p>
</footer>
</body>
</html>
<INJECT>cat $HOME/template/footer.html</INJECT>

View File

@ -1,53 +1,5 @@
<!DOCTYPE html>
<html>
<head>
<!-- JS Licese -->
<script>
/*
@licstart The following is the entire license notice for the
JavaScript code in this page.
Copyright (C) 2022 Aviv "RustyStriker" Romem
The JavaScript code in this page is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this page.
*/
</script>
<INJECT>cat $HOME/template/header.html | sed "s/__PAGE TITLE__/About/"</INJECT>
<title>About</title>
<!--Style stuff -->
<link rel="stylesheet" type="text/css" href="default_style.css" media="all">
</head>
<body>
<header>
<div>
<a href = "https://rustystriker.dev/">
<h1 style="margin-bottom:0px;">Rusty's Website</h1>
</a>
<p style = "margin-top: 0px;">
A place for wanky stuff, weird JavaScript and warm-ish takes
</p>
<a href = "https://rustystriker.dev/about.html">About</a>
<a href = "https://gitea.rustystriker.dev/RustyStriker/website">Source</a>
<a href = "https://rustystriker.dev/licenses.html">Licenses</a>
</div>
</header>
<h1>
About
</h1>
@ -87,21 +39,4 @@
I thought I will have more to write here(as of 14/5/22)...
</p>
<footer>
<p>
Copyright (C) 2022 Aviv "RustyStriker" Romem |
Except where otherwise noted.
<br>
works and publications on this website are licenced under
<a href = "https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>.
<br>
Codes are published under
<a href = "https://www.gnu.org/licenses/agpl-3.0.html">GNU AGPL v3 or later</a>
and JavaScript is also published under
<a href = "https://www.gnu.org/licenses/gpl-3.0.html">GNU GPL v3 or later</a>
| Except where otherwise noted.
</p>
</footer>
</body>
</html>
<INJECT>cat $HOME/template/footer.html</INJECT>

View File

@ -1,54 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<!-- JS Licese -->
<script>
/*
@licstart The following is the entire license notice for the
JavaScript code in this page.
Copyright (C) 2022 Aviv "RustyStriker" Romem
The JavaScript code in this page is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this page.
*/
</script>
<title>Links are stupid</title>
<!--Style stuff -->
<link rel="stylesheet" type="text/css" href="default_style.css" media="all">
</head>
<body onscroll="onBodyScroll()">
<header>
<div>
<a href = "https://rustystriker.dev/">
<h1 style="margin-bottom:0px;">Rusty's Website</h1>
</a>
<p style = "margin-top: 0px;">
A place for wanky stuff, weird JavaScript and warm-ish takes
</p>
<a href = "https://rustystriker.dev/about.html">About</a>
<a href = "https://gitea.rustystriker.dev/RustyStriker/website">Source</a>
<a href = "https://rustystriker.dev/licenses.html">Licenses</a>
</div>
</header>
<INJECT>cat $HOME/template/header.html | sed "s/__PAGE TITLE__/Rusty's website/"</INJECT>
<p>
Oh good, the last page got really crowded,
ok, back to the nonsense!
@ -162,24 +112,9 @@
</p>
</div>
<footer>
<p>
Copyright (C) 2022 Aviv "RustyStriker" Romem |
Except where otherwise noted.
<br>
works and publications on this website are licenced under
<a href = "https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>.
<br>
Codes are published under
<a href = "https://www.gnu.org/licenses/agpl-3.0.html">GNU AGPL v3 or later</a>
and JavaScript is also published under
<a href = "https://www.gnu.org/licenses/gpl-3.0.html">GNU GPL v3 or later</a>
| Except where otherwise noted.
</p>
</footer>
</body>
<script>
var needToAnimateImage = true;
document.body.onscroll = onBodyScroll;
function onBodyScroll() {
let scrollPercent = document.body.scrollTop / document.body.scrollTopMax;
if (needToAnimateImage) {
@ -197,4 +132,5 @@
}
}
</script>
</html>
<INJECT>cat $HOME/template/footer.html</INJECT>

View File

@ -1,53 +1,5 @@
<!DOCTYPE html>
<html>
<head>
<!-- JS Licese -->
<script>
/*
@licstart The following is the entire license notice for the
JavaScript code in this page.
Copyright (C) 2022 Aviv "RustyStriker" Romem
The JavaScript code in this page is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this page.
*/
</script>
<INJECT>cat $HOME/template/header.html | sed "s/__PAGE TITLE__/Rusty's website/"</INJECT>
<title>Rusty Striker's Awesome Website</title>
<!--Style stuff -->
<link rel="stylesheet" type="text/css" href="default_style.css" media="all">
</head>
<body>
<header>
<div>
<a href = "https://rustystriker.dev/">
<h1 style="margin-bottom:0px;">Rusty's Website</h1>
</a>
<p style = "margin-top: 0px;">
A place for wanky stuff, weird JavaScript and warm-ish takes
</p>
<a href = "https://rustystriker.dev/about.html">About</a>
<a href = "https://gitea.rustystriker.dev/RustyStriker/website">Source</a>
<a href = "https://rustystriker.dev/licenses.html">Licenses</a>
</div>
</header>
<h1>
Welcome, to my WEBSITE!
</h1>
@ -140,23 +92,7 @@
</p>
</div>
<footer>
<p>
Copyright (C) 2022 Aviv "RustyStriker" Romem |
Except where otherwise noted.
<br>
works and publications on this website are licenced under
<a href = "https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>.
<br>
Codes are published under
<a href = "https://www.gnu.org/licenses/agpl-3.0.html">GNU AGPL v3 or later</a>
and JavaScript is also published under
<a href = "https://www.gnu.org/licenses/gpl-3.0.html">GNU GPL v3 or later</a>
| Except where otherwise noted.
</p>
</footer>
</body>
<script>
function onCoolButtonClick() {
let bg = document.body.style.getPropertyValue("background-color");
@ -208,4 +144,4 @@
)
}
</script>
</html>
<INJECT>cat $HOME/template/footer.html</INJECT>

View File

@ -1,77 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<!-- JS Licese -->
<script>
/*
@licstart The following is the entire license notice for the
JavaScript code in this page.
Copyright (C) 2022 Aviv "RustyStriker" Romem
The JavaScript code in this page is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this page.
*/
</script>
<title>__PAGE TITLE__</title>
<!--Style stuff -->
<link rel="stylesheet" type="text/css" href="default_style.css" media="all">
</head>
<body>
<header>
<div>
<a href = "https://rustystriker.dev/">
<h1 style="margin-bottom:0px;">Rusty's Website</h1>
</a>
<p style = "margin-top: 0px;">
A place for wanky stuff, weird JavaScript and warm-ish takes
</p>
<a href = "https://rustystriker.dev/about.html">About</a>
<a href = "https://gitea.rustystriker.dev/RustyStriker/website">Source</a>
<a href = "https://rustystriker.dev/licenses.html">Licenses</a>
</div>
</header>
<h1>
Template page
</h1>
<div>
<p>
This is my template page, filled with a license, header and footer
</p>
</div>
<footer>
<p>
Copyright (C) 2022 Aviv "RustyStriker" Romem |
Except where otherwise noted.
<br>
works and publications on this website are licenced under
<a href = "https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>.
<br>
Codes are published under
<a href = "https://www.gnu.org/licenses/agpl-3.0.html">GNU AGPL v3 or later</a>
and JavaScript is also published under
<a href = "https://www.gnu.org/licenses/gpl-3.0.html">GNU GPL v3 or later</a>
| Except where otherwise noted.
</p>
</footer>
</body>
</html>