summaryrefslogtreecommitdiffstats
path: root/site/cleopatra/Theme.org
diff options
context:
space:
mode:
authorThomas Letan <lthms@soap.coffee>2020-03-02 09:04:39 +0100
committerThomas Letan <lthms@soap.coffee>2020-03-02 09:04:39 +0100
commitf0c9841c9de67c7d72cb320539d4b281a627bba3 (patch)
tree8e90a25a1c7bd72b57227ff234bf59ac01e6c6ce /site/cleopatra/Theme.org
parentContinue the Series on cleopatra (diff)
Clean-up and writing
Diffstat (limited to 'site/cleopatra/Theme.org')
-rw-r--r--site/cleopatra/Theme.org20
1 files changed, 9 insertions, 11 deletions
diff --git a/site/cleopatra/Theme.org b/site/cleopatra/Theme.org
index 265027b..47bef25 100644
--- a/site/cleopatra/Theme.org
+++ b/site/cleopatra/Theme.org
@@ -63,23 +63,21 @@ ARTIFACTS += ${CSS} ${SASS}
#+NAME: asyncloading_js
#+BEGIN_SRC js
let noscript = document.getElementById('asyncloading');
-let resources = noscript.innerText.split('\n');
-
-for (var ix in resources) {
- noscript.insertAdjacentHTML('beforebegin', resources[ix]);
-}
-
+noscript.insertAdjacentHTML('beforebegin', noscript.innerText);
noscript.parentNode.removeChild(noscript);
#+END_SRC
#+NAME: asyncloading_html
#+BEGIN_SRC html
<noscript id="asyncloading">
- <link rel="stylesheet" href="/vendors/fira-code.2+swap/font.css">
- <link rel="stylesheet" href="/vendors/et-book+swap/font.css">
- <link rel="stylesheet" href="/vendors/katex.0.11.1+swap/katex.css">
- <link rel="stylesheet"
- href="/vendors/fork-awesome.1.1.7+swap/css/fork-awesome.min.css">
+ <link href="https://soap.coffee/+vendors/fira-code.2+swap/font.css"
+ rel="stylesheet">
+ <link href="https://soap.coffee/+vendors/et-book+swap/font.css"
+ rel="stylesheet">
+ <link href="https://soap.coffee/+vendors/katex.0.11.1+swap/katex.css"
+ rel="stylesheet">
+ <link href="https://soap.coffee/+vendors/fork-awesome.1.1.7+swap/css/fork-awesome.min.css"
+ rel="stylesheet">
</nolink>
#+END_SRC