diff --git a/content/software/_index.md b/content/software/_index.md index 3fe2ee2..3310395 100644 --- a/content/software/_index.md +++ b/content/software/_index.md @@ -7,3 +7,4 @@ menu: name: "" --- +wow this software is so {{}} it is {{}} diff --git a/content/software/wisdom.md b/content/software/wisdom.md new file mode 100644 index 0000000..d2aa36a --- /dev/null +++ b/content/software/wisdom.md @@ -0,0 +1,16 @@ +--- +title: "wisdom" +date: 2022-04-16T22:54:41+02:00 +draft: false +description: "the wisdom website dispenses infite wisdom for everyone!" +--- + +the wisdom website is an incredible experience for the whole family! +you can get cooking recipes, or get philosophical with jonathan frakes of "beyond belief: fact or fiction" fame. +take a look at [wisdom.kittycat.homes](https://wisdom.kittycat.homes) + +## huh? + +it's actually just a markov chain. +i made it to learn rocket. +rocket is great though :) diff --git a/public/index.xml b/public/index.xml index e6f298b..dd3700a 100644 --- a/public/index.xml +++ b/public/index.xml @@ -6,7 +6,17 @@ Recent content in home on bat Hugo -- gohugo.io eng - Fri, 15 Apr 2022 20:45:43 +0200 + Sat, 16 Apr 2022 22:54:41 +0200 + + wisdom + https://zoe.kittycat.homes/software/wisdom/ + Sat, 16 Apr 2022 22:54:41 +0200 + + https://zoe.kittycat.homes/software/wisdom/ + the wisdom website is an incredible experience for the whole family! you can get cooking recipes, or get philosophical with jonathan frakes of &ldquo;beyond belief: fact or fiction&rdquo; fame. take a look at wisdom.kittycat.homes +&nbsp;huh? it&rsquo;s actually just a markov chain. i made it to learn rocket. rocket is great though :) + + things that make me happy https://zoe.kittycat.homes/links/nice_things/ diff --git a/public/js/randomword.js b/public/js/randomword.js index 3dd5780..d6f0f65 100644 --- a/public/js/randomword.js +++ b/public/js/randomword.js @@ -7,22 +7,29 @@ export function randomizeWords() { function registerButtons() { for (let button of buttons) { button.addEventListener("click", function () { - let new_word = processWordlist(button.getAttribute("data-wordlist")); + button.innerHTML = processWordlist( + button.getAttribute("data-wordlist"), + button.innerHTML + ); // do this so people dont have to click twice - if (button.innerHTML == new_word) { - button.click(); - console.log("oh no!!! this was already the value!"); - } else { - button.innerHTML = new_word; - } }); button.click(); } } // takes all the words and returns only one -function processWordlist(wordlist) { +function processWordlist(wordlist, old) { let seperated = wordlist.split(","); + for (let word of wordlist) { + word = word.trim(); + } + if (seperated.length <= 0) { + return "error! empty"; + } + if (seperated.length == 1) { + return seperated[0]; + } + seperated = seperated.filter((e) => e !== old); return seperated.random(); } diff --git a/public/sitemap.xml b/public/sitemap.xml index 45bab0f..4144bec 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -3,7 +3,10 @@ xmlns:xhtml="http://www.w3.org/1999/xhtml"> https://zoe.kittycat.homes/ - 2022-04-15T20:45:43+02:00 + 2022-04-16T22:54:41+02:00 + + https://zoe.kittycat.homes/software/wisdom/ + 2022-04-16T22:54:41+02:00 https://zoe.kittycat.homes/software/ 2022-04-15T20:45:43+02:00 diff --git a/public/software/index.html b/public/software/index.html index a7d8a85..219b666 100644 --- a/public/software/index.html +++ b/public/software/index.html @@ -17,11 +17,20 @@

software 

- +

wow this software is so + it is +

+ diff --git a/public/software/index.xml b/public/software/index.xml index 5dddf94..f852093 100644 --- a/public/software/index.xml +++ b/public/software/index.xml @@ -7,5 +7,15 @@ Hugo -- gohugo.io eng Fri, 15 Apr 2022 20:45:43 +0200 + + wisdom + https://zoe.kittycat.homes/software/wisdom/ + Sat, 16 Apr 2022 22:54:41 +0200 + + https://zoe.kittycat.homes/software/wisdom/ + the wisdom website is an incredible experience for the whole family! you can get cooking recipes, or get philosophical with jonathan frakes of &ldquo;beyond belief: fact or fiction&rdquo; fame. take a look at wisdom.kittycat.homes +&nbsp;huh? it&rsquo;s actually just a markov chain. i made it to learn rocket. rocket is great though :) + + diff --git a/public/software/wisdom/index.html b/public/software/wisdom/index.html new file mode 100644 index 0000000..8c4b709 --- /dev/null +++ b/public/software/wisdom/index.html @@ -0,0 +1,92 @@ + + + + + wisdom@bat + + + + + + +
+
+
+

wisdom

+
+
+
+

the wisdom website is an incredible experience for the whole family! +you can get cooking recipes, or get philosophical with jonathan frakes of “beyond belief: fact or fiction” fame. +take a look at wisdom.kittycat.homes

+

+ +  huh? + +

+

it’s actually just a markov chain. +i made it to learn rocket. +rocket is great though :)

+ +
+
+
+ +
+ + diff --git a/themes/battheme b/themes/battheme index d267fc4..3967fa1 160000 --- a/themes/battheme +++ b/themes/battheme @@ -1 +1 @@ -Subproject commit d267fc4356534ddb02426ef7e6802848580a8579 +Subproject commit 3967fa102756f2e97fa17cb5693775e35c964543