From dec845927ae7c72182c9ac32c9f246065b65f546 Mon Sep 17 00:00:00 2001 From: fyr77 Date: Wed, 24 Feb 2021 16:58:13 +0100 Subject: [PATCH] add logo and update links to api --- hohoho.svg | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ index.html | 9 ++++++++ js/main.js | 4 ++-- 3 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 hohoho.svg diff --git a/hohoho.svg b/hohoho.svg new file mode 100644 index 0000000..3c62ae1 --- /dev/null +++ b/hohoho.svg @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/index.html b/index.html index 861226a..d023c1a 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,14 @@ + @@ -57,6 +65,7 @@

All details regarding HoHoHo! can be found in the corresponding paper.

Third-party code

The API used by this website is made possible thanks to the great work by Andreas Gohr, whose repository can be found on GitHub.

+ Hohoho! diff --git a/js/main.js b/js/main.js index e5b79c6..c728a57 100644 --- a/js/main.js +++ b/js/main.js @@ -79,7 +79,7 @@ function interpret() { 'Content-Type': 'application/x-www-form-urlencoded' } } - fetch('https://dev.jakobsenkl.pw/hohoho/api.php', options) + fetch('/api/api.php', options) .then(res => res.text()) .then(res => (document.getElementById("text_code").value = res)) .catch(err => console.error(err)); @@ -93,7 +93,7 @@ function tobf() { 'Content-Type': 'application/x-www-form-urlencoded' } } - let promise = fetch('https://dev.jakobsenkl.pw/hohoho/api.php', options) + let promise = fetch('/api/api.php', options) .then(res => res.text()) .then(res => (document.getElementById("brainfuck_code").value = res)) .catch(err => console.error(err));