From ba629714b8757b183c21034429ef421b3fd32f4c Mon Sep 17 00:00:00 2001 From: Allexit Date: Fri, 4 Nov 2016 00:56:46 +0200 Subject: [PATCH] Added history traversing and favicon --- blog/index.html | 1 + blogtext/index.html | 1 + favicon.png | Bin 0 -> 15731 bytes games/index.html | 1 + index.html | 1 + js/main.js | 45 +++++++++++++++++++++++++++++--------------- src/template.html | 1 + ts/main.ts | 45 ++++++++++++++++++++++++++++++-------------- 8 files changed, 66 insertions(+), 29 deletions(-) create mode 100644 favicon.png diff --git a/blog/index.html b/blog/index.html index a03ca7d..46cb6a9 100644 --- a/blog/index.html +++ b/blog/index.html @@ -6,6 +6,7 @@ + Teascade | blog diff --git a/blogtext/index.html b/blogtext/index.html index e432176..6df3391 100644 --- a/blogtext/index.html +++ b/blogtext/index.html @@ -6,6 +6,7 @@ + Teascade | blogtext diff --git a/favicon.png b/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..b0a4031abd516bddfcafe49283226236ea6e8ba2 GIT binary patch literal 15731 zcmeIZ^;?u}7d3o=poEBmf}jZMAks=mNhlHn3Q9Ai64D{v7zhFqLn$qebV!$kif~KH zkkTR2ATV^yx99o(hxdo~csXtlZjm{!v-aL=t-Y={57m_DXjo|w1ffGK-_t-4a`<0z zgz7kaBY5`i!8Zz*yJ#&c`0}MP4}rf^J1OhCAjnx+(jT%eZpmo)A&aYmo~x##rK`u| zXBLQuhlhZ*gRP6%V#sxVHV^E=S4Ld-o{# zII0kZk?ac`l1%*KafSU3!fXYSHVN~q16z-?*i!I&n#0}hcIAV)pEAzok}DK*{KvD; z#6e9_5*4@Pv$C~6jk-zgA)&t_Jv*}Dy;l{9;u?49;<}c+I_s-T4YT`yU;kI{fYiDk z8!Yf~c$CNkyeIl4Ctb9N7XAjyrtVwZUcYWNP7@oU%2RShFY7WHf((9@LszOKUj2w~ zxQh>x_AO#XzsI_(3|+S_#kGzFQz6LSw|nUE=rUuC7@TRiu|L`eb$AcYHMJf?h6Ji% zIS)&5+nkh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QO+v*5t71kdgYXggg11yz{;SVWp?YL^Ek5& z$}c^V_mI!_`yG!cM7&K7orb;XFu{Z#XuUIi!h8B)qiZ0D**F^rs13P@hE z%O<4*e)kX1fByLBqhfcTsTuUDRO9)awHnI7eg&Bkm@TQ1Iy5x2rQ0$skl3$x)jBEs z(LTG%5O@598y^Gm^a96K>M8|A)vuc+raf1rSZ>+96R4UXf6FSW0z9#IuKQyg_&cJn zD)GSk4J5#@JDXN?=BlC<(7Q6eCQ>~84==F3?3yL5OB=A|_-+d6N0U}y31Oyy-|paJFd%z}zB>$|k)_2Sm| z?YL_!FSp#$d&f*+h)K-)8+3iH7GInWN*CVhzR!nL1Pb^koWP1>NM4G$Qc7cvjQ z#=O1g0B&a$baBg#C^?Q_GPAcK%jPaj>l;A=T26xl=LRAKGlw>ywu?(CV3IG!MerYx z2|#e5tdo>t;ANSa*Pw4!srwI9d5~Y!s)~;>t)nHcSvSZO{-Y0lv{!hSb3#p?)96zq zV&3&NdlVH!s20I z+c_1d&0loDWpW^L$rFB__w=j|FQ#NfZI%k~aXc+N)1;10BA<|vA^x%I?c3ccT_=j0yuRfE&%l8K=+8Iub#FxC?723OPA1+Lqypg_^GzqOLwa zZ>jIv*wSjj7we*^;k?))EX1?ZQ^0PW8*CqqG`{JKi9Q(~AB{5P;I7-8&h8(W>yIqE zo-VauvGl;?%6xt}7lDE0oZkmY-JL>{Yo|LE$pi0+J)FIE;wr}EyOi(P+TcUgD+(rg z*y0OD7QvDBX$gzdH1!2oK}MJ9$tx(Nu^PMSEOg^O{xl2vt10>=#>Bp5xc<@z#y={Y zF7b8iU`OcC)t)6|pyQn>$`YnQEtO_|xzh9iiiD73IpFy + Teascade | games diff --git a/index.html b/index.html index 7bf5195..7d35f40 100644 --- a/index.html +++ b/index.html @@ -6,6 +6,7 @@ + Teascade | about diff --git a/js/main.js b/js/main.js index 7bfc598..02e78a5 100644 --- a/js/main.js +++ b/js/main.js @@ -10,23 +10,20 @@ function main(page) { addBlogposts(); var search = window.location.search; if (search != "") { - search = search.slice(1, -1); - var parts = search.split("="); - if (parts[0] == "id") { - var timestamp = void 0; - for (var i in window.blogpostData) { - console.log(window.blogpostData[i].source); - console.log(search + ".html"); - if (window.blogpostData[i].source == parts[1] + ".html") { - timestamp = new Date(window.blogpostData[i].time).toUTCString(); - } - } - setBlogText(parts[1] + ".html", timestamp); - } + setBlogTextOnSearch(search); } + window.onpopstate = function () { + var page = window.location.pathname.split("/").filter(function (f) { return f != ""; })[0]; + var search = window.location.search.slice(0, -1); + if (page == "blogtext") { + setBlogTextOnSearch(search); + } + openPage(page || "about", page, false); + }; } -function openPage(page, new_url) { +function openPage(page, new_url, renew_history) { if (new_url === void 0) { new_url = null; } + if (renew_history === void 0) { renew_history = true; } if (page == window.currPage) { return; } @@ -42,7 +39,10 @@ function openPage(page, new_url) { targetPg = ""; } ; - window.history.pushState(target, target, targetPg + "/"); + if (renew_history) { + window.history.pushState(target, target, targetPg + "/"); + } + document.title = "Teascade | " + page; document.getElementsByClassName("stuffarea")[0].scrollTop = 0; slideOpacity(function () { }, 1.5); @@ -77,6 +77,21 @@ function addBlogposts() { }; }); } +function setBlogTextOnSearch(search) { + search = search.slice(1, -1); + var parts = search.split("="); + if (parts[0] == "id") { + var timestamp = void 0; + for (var i in window.blogpostData) { + console.log(window.blogpostData[i].source); + console.log(search + ".html"); + if (window.blogpostData[i].source == parts[1] + ".html") { + timestamp = new Date(window.blogpostData[i].time).toUTCString(); + } + } + setBlogText(parts[1] + ".html", timestamp); + } +} function setBlogText(source, time) { var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function () { diff --git a/src/template.html b/src/template.html index be7858a..10aaa63 100644 --- a/src/template.html +++ b/src/template.html @@ -6,6 +6,7 @@ + Teascade | $page$ diff --git a/ts/main.ts b/ts/main.ts index b8beaec..7b2e6e4 100644 --- a/ts/main.ts +++ b/ts/main.ts @@ -23,24 +23,21 @@ function main(page: string) { let search = window.location.search; if (search != "") { - search = search.slice(1, -1); - let parts = search.split("="); - if (parts[0] == "id") { + setBlogTextOnSearch(search); + } - let timestamp: string; - for (let i in window.blogpostData) { - console.log(window.blogpostData[i].source); - console.log(search + ".html"); - if (window.blogpostData[i].source == parts[1] + ".html") { - timestamp = new Date(window.blogpostData[i].time).toUTCString(); - } - } - setBlogText(parts[1] + ".html", timestamp); + window.onpopstate = () => { + let page = window.location.pathname.split("/").filter(f => f != "")[0]; + let search = window.location.search.slice(0, -1); + + if (page == "blogtext") { + setBlogTextOnSearch(search); } + openPage(page || "about", page, false); } } -function openPage(page: string, new_url: string = null) { +function openPage(page: string, new_url: string = null, renew_history=true) { if (page == window.currPage) { return; } slideOpacity(() => { @@ -52,7 +49,10 @@ function openPage(page: string, new_url: string = null) { let targetPg = "/" + target; if (target == "about") { target = ""; targetPg = ""; }; - window.history.pushState(target, target, `${targetPg}/`); + if (renew_history) { + window.history.pushState(target, target, `${targetPg}/`); + } + document.title = "Teascade | " + page; document.getElementsByClassName("stuffarea")[0].scrollTop = 0; @@ -97,6 +97,23 @@ function addBlogposts() { }) } +function setBlogTextOnSearch(search: string) { + search = search.slice(1, -1); + let parts = search.split("="); + if (parts[0] == "id") { + + let timestamp: string; + for (let i in window.blogpostData) { + console.log(window.blogpostData[i].source); + console.log(search + ".html"); + if (window.blogpostData[i].source == parts[1] + ".html") { + timestamp = new Date(window.blogpostData[i].time).toUTCString(); + } + } + setBlogText(parts[1] + ".html", timestamp); + } +} + function setBlogText(source: string, time: string) { let xmlhttp = new XMLHttpRequest();