From f1b09039a6936108ce9cafc40f24c15ce54f6253 Mon Sep 17 00:00:00 2001 From: William Date: Sun, 12 Feb 2023 14:54:12 +0100 Subject: [PATCH] Commit --- .../TB1SKn6MAY2gK0jSZFgXXc5OFXa-249-40.jpg | Bin 2556 -> 0 bytes public/static/img/darkskullsbg.png | Bin 0 -> 2274 bytes public/static/js/jarring.js | 18 +- public/static/style/fonts.css | 3 +- public/static/style/main.css | 2 +- routes/start.php | 7 - views/pages/blog/home.php | 5 - views/pages/blog/test.php | 8 - views/pages/home.php | 7 +- views/templates/blog/footer.php | 194 ----------- views/templates/blog/header.php | 314 ------------------ views/templates/footer.php | 2 +- views/templates/header.php | 2 +- 13 files changed, 19 insertions(+), 543 deletions(-) delete mode 100644 public/static/img/TB1SKn6MAY2gK0jSZFgXXc5OFXa-249-40.jpg create mode 100644 public/static/img/darkskullsbg.png delete mode 100644 views/pages/blog/home.php delete mode 100644 views/pages/blog/test.php delete mode 100644 views/templates/blog/footer.php delete mode 100644 views/templates/blog/header.php diff --git a/public/static/img/TB1SKn6MAY2gK0jSZFgXXc5OFXa-249-40.jpg b/public/static/img/TB1SKn6MAY2gK0jSZFgXXc5OFXa-249-40.jpg deleted file mode 100644 index c4e7391d4f25e597f9308c340d425e354c1c3f39..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2556 zcmbtWXH=6}6MmBrn&=XG)sO_FhR~EI9YYZafuI!WMO>sPU6-PSVh}<=no$!p7K$PS z6i^TaC7=dSkRm}uC4wTj5fBhI=$`%c{rjG|=bl?;=FanDX71+5=37AAX}{xs00aU6 z5MO}J4ZzG6Z*T4ChBt*rgz6lP4U2#$>Y*`k^@J0V(GhS*CoJ3vXOD#^8e=rH;c*E; zQIYW}@O|*TMxvYJKo%g(hlsFDD4Orl4eVOAZCny%>_#$HNYwnIL} zOt*YlQ9O_`H$S_;t31Ju30v#4Z3;T9+`Uq0x^^tyQ05S`@vBG7o#6W0E6*keh9@5< zM3WH?<>ai4Klq`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7Shtz+mn>F{hCepV8t^Qd;5~?7PJ)<8}v@tq|n(uRQ62sZPz`y{?LWwJWkqSSTDx7{r|r{ETCH%-n2g;{^R*rX?P{H*^Nkr5HbZ< z4jrWWc$&=ovWm>Z| zx^ulyKD|BitQKatHYi$uMJ|uxu3cHY>Y%cZ8hhGz8ZJCPl_2EWjft9$6JMM<=WU~l zl8Ha;;R6yBIos{J#Ick7oal^mp82ueoH5j!E$W^MuisZhmZPoSmn2=hz8Q)&dor}ULMx4PTf&a6$+@pRDjohP;BoDgEOxN6=oW-*>4SE*I> zFhoQ%Bk+Chs}6Vxbf8?hyC|VpuLzN(J$BhXljpXc7Wo59hFlpls;sKTNN}!cIxabt zb?H>!sK9cL-MWmJmcttl5Owd2OXe?qqnXWuXjfsBZ1l}~t4Y@&{AJC(W>iY@&OKsZ z-#LsrXUsb*KcbS(^$Z>U6^hVW66EVZtTqGG||G7V` zDazmCnz0g5f7DD#fs;R#*25fMM*Vy$aKG96V0iHTb4X_ftv(E7}=uJc~@ypFl7yuFgL4SAR-{pqipJ9>`7(FZe z?{*IYSpwb{x>Yc0%&*hMy?>&h&75Vv>2AI$7%cp|Nc}PegCGD*KtfUlp=a$5m6FEj zThV{{;QwhXfr8R+q7wIZC0^>E*_Nz`WJbTOyPbZa%As^p+Pa2%KkSb|Zs>R~IvA&- L^!+0Lh0%Wi)mlk? diff --git a/public/static/img/darkskullsbg.png b/public/static/img/darkskullsbg.png new file mode 100644 index 0000000000000000000000000000000000000000..89a59861f449e7cd9de116eb163645f662678403 GIT binary patch literal 2274 zcmV<82p#u{P)v}c58k1eG=40zg_piOVyYRKu=j@rzmOTE3uTq{(nM{^LEh#>6@XW~;{Mbsqq}4+-O@m`qhw@LI+^ zCzG^U1$bIx0)G~C54=wRA0C(($b1VK;$)2r!}*Y%Y$I&GIgVPRD@^Nqb8qK)hJ+hH z(BP4cNyTJP&q!VP#6`6hu=TH|=_#uXFqN|~{10_N8RA%X_K z6CjQexX8ssT%3{$CMBCIN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t54nr!h>%(?^ud+jMi@!T?jixpgMrV~SdAR0Y+ZOCD#XW|f^pusU~4 zIt%-H1xlEW!DP+Cau%>{rGB$tcWnT?vsrgfE9HhE%G*?sxNw{S$yrLi-i8yYjeiHr zRC+3TtG*OLWaFv;n*NUVHRb>Ow+Rs^51izVgjKq;d0kK>i85&_FP^|7SX`OpV@-uR zPI?ElB>f~&cT{7nW1ChU?h2~cZ2+8_Pv9lrX@OJbj$SmcbAX`DC@D|UG{JPtAHE-$ zHqI!22TZKKGW_{EvP<=*Eg-3%V1P5$F=;CMxvm|);@d2+36~`2YbCq?$aczku^yA#NpZfX3O?18@Hl;_ zG#ApEwwgfs2FjWxxodq~pfvWQ7}zLn<>9#hb8fOeor>tWP^Dseyh%91kOzp^I95Ofoh@Q39qZGp|BzdP|-F2++shp}p w+9Z=5rkG3YhUKhHVwRC?0oUp*>6!h($07*qoM6N<$f_LdlO#lD@ literal 0 HcmV?d00001 diff --git a/public/static/js/jarring.js b/public/static/js/jarring.js index 841c386..62979fd 100644 --- a/public/static/js/jarring.js +++ b/public/static/js/jarring.js @@ -5,8 +5,8 @@ onclick = (e) => { let element = e.target; if (element.tagName == 'A') { - navigate(element.href).then(function () { - window.history.pushState('', '', element.href); + navigate(element.href).then(function(url) { + window.history.pushState('', '', url); }); return false; // prevent default action and stop event propagation } @@ -17,17 +17,19 @@ onpopstate = () => { }; function navigate(href) { + document.body.className = 'leaving'; return new Promise((resolve) => { fetch(href) - .then((response) => { - return response.text(); - }).then(function (html) { + .then(async (response) => { + html = await response.text(); //var parser = new DOMParser(); //var doc = parser.parseFromString(html, 'text/html'); //document.getElementById('pageContent').innerHTML = doc.getElementById('pageContent').innerHTML; - - document.body.parentNode.innerHTML = html; - resolve(); + setTimeout(() => { + document.body.parentNode.innerHTML = html; + document.body.className = 'entering'; + }, 250); + resolve(response.url); }).catch(function (err) { // There was an error console.warn('Something went wrong.', err); diff --git a/public/static/style/fonts.css b/public/static/style/fonts.css index ec06126..ca0f724 100644 --- a/public/static/style/fonts.css +++ b/public/static/style/fonts.css @@ -1,7 +1,8 @@ body { font-size: 1rem; - font-family: DejaVu Serif, Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; + font-family: Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; line-height: 1.5; + font-weight: bold; } code, pre { diff --git a/public/static/style/main.css b/public/static/style/main.css index 1e14680..eb42b66 100644 --- a/public/static/style/main.css +++ b/public/static/style/main.css @@ -4,7 +4,7 @@ html, body { body { background-color: darkblue; - background: url('../img/stars.png'); + background: url('../img/darkskullsbg.png'); text-align: center; color: white; image-rendering: pixelated; diff --git a/routes/start.php b/routes/start.php index 519cf78..2ea0e91 100644 --- a/routes/start.php +++ b/routes/start.php @@ -35,12 +35,5 @@ App::group('/chat', function() { ChatController::sync(...)); }); -App::group('/blog', function() { - App::get('/', - fn() => view('pages/blog/home')); - App::get('/test', - fn() => view('pages/blog/test')); -}); - http_response_code(404); view('errors/404'); \ No newline at end of file diff --git a/views/pages/blog/home.php b/views/pages/blog/home.php deleted file mode 100644 index 0e5618e..0000000 --- a/views/pages/blog/home.php +++ /dev/null @@ -1,5 +0,0 @@ - -

What is there to life?

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam commodo dignissim orci faucibus pellentesque. Cras sit amet leo libero. Morbi at maximus arcu, ac consectetur nunc. Nunc pharetra semper augue sed aliquet. Nunc pretium lorem quis nulla interdum, vestibulum sollicitudin lectus eleifend. Duis leo erat, consectetur nec convallis vitae, faucibus vel ipsum. Donec sed lectus ut lorem pellentesque posuere. Vivamus et iaculis ante, nec elementum sapien. Donec semper magna a nisi porttitor varius. Cras consequat pharetra sapien interdum finibus.

-Read more - \ No newline at end of file diff --git a/views/pages/blog/test.php b/views/pages/blog/test.php deleted file mode 100644 index 7523174..0000000 --- a/views/pages/blog/test.php +++ /dev/null @@ -1,8 +0,0 @@ - -

This is test page

-

Or is it? Maybe. I'm just trying to fill this with some text right now using the noise from my brain but I'm not really that good at it.. FUCK

-

H2

-

H3

-
This is a code block
-go back - \ No newline at end of file diff --git a/views/pages/home.php b/views/pages/home.php index 6f73430..0713a82 100644 --- a/views/pages/home.php +++ b/views/pages/home.php @@ -47,11 +47,12 @@

We love you! xoxo

+Awesome webring -

Awesome webring

+//

Check out any of these other aweeesome websites!

-

Check out any of these other aweeesome websites!

+?> -Website has been verified by The National Office Of Eliminating Pornography And Illegal Publications Working Committee \ No newline at end of file diff --git a/views/templates/blog/footer.php b/views/templates/blog/footer.php deleted file mode 100644 index d89f2fb..0000000 --- a/views/templates/blog/footer.php +++ /dev/null @@ -1,194 +0,0 @@ - - - - - - -
-
LIVE CHAT SUPPORT
-
- - - -
-
- - - - -
- - - - - - - \ No newline at end of file diff --git a/views/templates/blog/header.php b/views/templates/blog/header.php deleted file mode 100644 index 9bbfe0d..0000000 --- a/views/templates/blog/header.php +++ /dev/null @@ -1,314 +0,0 @@ - - - - - - - Blog - - - - - - - - - - - - - -
- - - -
- -
- -
-
- -

- - -

-

There are no limits to what you can accomplish, except the limits you place on your own thinking.

-
-
- -
\ No newline at end of file diff --git a/views/templates/footer.php b/views/templates/footer.php index 81d3f5d..6787fc3 100644 --- a/views/templates/footer.php +++ b/views/templates/footer.php @@ -3,7 +3,7 @@

Message board

-

Racism not allowed

+

Remember, be kind to each other