From 5d7c1b955b4d7632f667b9d28e6dfcebc2e1dbec Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Sun, 28 Apr 2024 15:38:17 -0500 Subject: add test script --- publish.el | 8 ++++---- scripts/webring.js | 12 ++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 scripts/webring.js diff --git a/publish.el b/publish.el index fb0bdc0..f397a0c 100644 --- a/publish.el +++ b/publish.el @@ -73,10 +73,10 @@ :with-toc nil :headline-levels 4 :section-numbers nil - :html-head "" - :html-preamble "
HomeProjectsBlogDotfilesAbout MeRSS
" - ;; :html-postamble "" - :html-postamble nil) + :html-head "" + :html-preamble "
HomeProjectsBlogDotfilesAbout MeRSS
") + ;; :html-postamble "" + ("org-static" :base-directory "~/website/" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" diff --git a/scripts/webring.js b/scripts/webring.js new file mode 100644 index 0000000..2b08b77 --- /dev/null +++ b/scripts/webring.js @@ -0,0 +1,12 @@ +const xhr = new XMLHttpRequest(); + +xhr.open("GET", "https://aidang.cc/webring/all") +xhr.send(); +xhr.responseType("json"); +xhr.onload = () => { + if (xhr.readyState == 4 && xhr.status == 200) { + console.log(xhr.response); + } else { + console.log(`Error: ${xhr.status}`); + } +} -- cgit v1.2.3