From bb89fd763f70e9e3d55404b01dea3ed127dc9b57 Mon Sep 17 00:00:00 2001 From: "Chris K. Thomas" <135461249+chriskthomas@users.noreply.github.com> Date: Sat, 29 Jun 2024 20:00:28 +0000 Subject: [PATCH] single source of ionicons version/cdn --- src/index.js | 5 +++-- src/index.php | 31 +++++++++++++++++++++---------- src/template.php | 4 ++-- 3 files changed, 26 insertions(+), 14 deletions(-) diff --git a/src/index.js b/src/index.js index 7aa620c..2c03d6c 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,6 @@ const localStorageIgnore = ["photo"]; const themeUrl = document.getElementById("themes-source").value; +const ioniconsUrl = document.getElementById("ionicons-source").value; // Elements const addCustomLinkButton = document.querySelector("a.btn"); @@ -324,8 +325,8 @@ function UpdatePreview() { ${email} ${themeScriptTag} - - `; + + `; // If previewBlock is empty, append the iframe if (previewBlock.childElementCount === 0) { diff --git a/src/index.php b/src/index.php index 27e5956..5285f08 100644 --- a/src/index.php +++ b/src/index.php @@ -1,5 +1,6 @@ - + - - + + LinkFree Generator @@ -68,7 +69,10 @@

Create your own LinkFree!

- Fill out this form to generate your own single page website. All fields are optional except for your name. So, don't worry if you don't have all these accounts. The output will be a single index.html file that you can upload to any static hosting provider such as GitHub Pages, Cloudflare Pages, Vercel, Netlify, or DigitalOcean Apps. + Fill out this form to generate your own single page website. All fields are optional except for your name. + So, don't worry if you don't have all these accounts. The output will be a single index.html + file that you can upload to any static hosting provider such as GitHub Pages, Cloudflare Pages, Vercel, + Netlify, or DigitalOcean Apps.

@@ -89,7 +93,8 @@
-
Make it small and square (about 220x220px). It will be embedded into the page (optional, max 2mb).
+
Make it small and square (about 220x220px). It will be embedded into the page + (optional, max 2mb).
@@ -123,7 +128,8 @@
- For custom links, you may use any icon from ionicons by name. For example, logo-mastodon. Icon field may be left blank. + For custom links, you may use any icon from ionicons by + name. For example, logo-mastodon. Icon field may be left blank.
@@ -138,6 +144,7 @@ You can preview themes here.
+
@@ -171,11 +178,15 @@
- - + +
- + + - + + \ No newline at end of file diff --git a/src/template.php b/src/template.php index 74a76d7..4340eed 100644 --- a/src/template.php +++ b/src/template.php @@ -70,8 +70,8 @@ - - + + \ No newline at end of file