From 351711fd3c0b6f1f1bd2e4ef970df371712292ce Mon Sep 17 00:00:00 2001
From: Tiago Rangel
Date: Sat, 11 Jan 2025 18:21:31 +0000
Subject: [PATCH] Use JSDelivr as CDN
---
docs/guide/index.md | 2 +-
docs/index.md | 6 +++---
index.js | 21 ---------------------
src/index.html | 6 +++---
4 files changed, 7 insertions(+), 28 deletions(-)
diff --git a/docs/guide/index.md b/docs/guide/index.md
index b16c832..f0e2315 100644
--- a/docs/guide/index.md
+++ b/docs/guide/index.md
@@ -10,7 +10,7 @@ Cap is a library designed for safeguarding against spam and abuse by utilizing a
Cap is built to be straightforward and requires no API tokens for setup. Start by importing the Cap library:
```html
-
+
```
Next, add the `` component to your HTML.
diff --git a/docs/index.md b/docs/index.md
index 05b54c9..d8ab846 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -10,9 +10,9 @@ hero:
- theme: brand
text: Documentation
link: /guide
- - theme: alt
- text: Demo
- link: /demo
+ - theme: alt
+ text: Demo
+ link: ../demo/
features:
- icon: ⚡️
diff --git a/index.js b/index.js
index d01b1f0..faeedf2 100644
--- a/index.js
+++ b/index.js
@@ -154,27 +154,6 @@ router.get("/", async (ctx) => {
router.get("/demo", async (ctx) => {
await send(ctx, "src/index.html", { root: __dirname });
});
-router.get("/cap.js", async (ctx) => {
- await send(ctx, "src/js/cap.js", { root: __dirname });
-});
-router.get("/cap-floating.js", async (ctx) => {
- await send(ctx, "src/js/cap-floating.js", { root: __dirname });
-});
-
-router.get("/cap.min.js", async (ctx) => {
- ctx.type = "application/javascript";
- await send(ctx, "src/js/min/cap.min.js", { root: __dirname });
-});
-
-router.get("/cap-floating.min.js", async (ctx) => {
- ctx.type = "application/javascript";
- await send(ctx, "src/js/min/cap-floating.min.js", { root: __dirname });
-});
-
-router.get("/cap-interstitial.min.js", async (ctx) => {
- ctx.type = "application/javascript";
- await send(ctx, "src/js/min/cap-interstitial.min.js", { root: __dirname });
-});
router.get("/wasm-hashes.min.js", async (ctx) => {
ctx.type = "application/javascript";
diff --git a/src/index.html b/src/index.html
index 0c37cd9..f22c4a2 100644
--- a/src/index.html
+++ b/src/index.html
@@ -80,7 +80,7 @@
}
-
-
-
+
+
+