custom.js
... ...
@@ -1 +1,15 @@
1
-"<script src=\"https://cdn.jsdelivr.net/ghost/signup-form@~0.1/umd/signup-form.min.js\" data-background-color=\"#ffffff\" data-text-color=\"#000000\" data-button-color=\"#197eff\" data-button-text-color=\"#FFFFFF\" data-title=\"Tea Leaves\" data-description=\"Learn about Clojure, ClojureScript, design, MVP&#039;s, and business. \" data-icon=\"https://gaiwan.co/content/images/size/w192h192/size/w256h256/2024/01/favicon.ico\" data-site=\"https://gaiwan.co/\" async></script>"
1
+var script = document.createElement('script');
2
+script.type = 'text/javascript';
3
+script.async = true;
4
+script.src = "https://cdn.jsdelivr.net/ghost/signup-form@~0.1/umd/signup-form.min.js";
5
+
6
+script.dataset['background-color']="#ffffff"
7
+script.dataset['text-color']="#000000"
8
+script.dataset['button-color']="#197eff"
9
+script.dataset['text-color-button']="#ffffff"
10
+script.dataset['title']="Tea Leaves"
11
+script.dataset['icon']="https://gaiwan.co/content/images/size/w192h192/size/w256h256/2024/01/favicon.ico"
12
+script.dataset['description']="Learn about Clojure, ClojureScript, design, MVP&#039;s, and business."
13
+script.dataset['site']="https://gaiwan.co/"
14
+
15
+document.getElementById("tea-leaves-sign-up-form").appendChild(script);