aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/webring.js12
1 files changed, 12 insertions, 0 deletions
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}`);
+ }
+}