Browse code

Add svg-inject

Robert Cranston authored on 12/06/2020 13:50:03
Showing 1 changed files

... ...
@@ -150,6 +150,7 @@ $endfor$
150 150
 <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
151 151
 <script src="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.8.0/tocbot.min.js" integrity="sha256-dJs8/kT10avd5bf3rkLb1bUpUyLjcZA7ydzzU0vyhfM=" crossorigin="anonymous"></script>
152 152
 <script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.2.0/anchor.min.js" integrity="sha256-m1eTvwEHwmsw4+XKF7BshClVJEPwTVycveNl0CS0Mkk=" crossorigin="anonymous"></script>
153
+<script src="https://cdn.jsdelivr.net/npm/@iconfu/svg-inject@1.2.3/dist/svg-inject.min.js"></script>
153 154
 <script>
154 155
   $$('table').addClass("table");
155 156
 </script>
... ...
@@ -166,6 +167,12 @@ $endfor$
166 167
   }
167 168
   anchors.add('h1, h2, h3, h4, h5, h6');
168 169
 </script>
170
+<script>
171
+  document.addEventListener(
172
+    'DOMContentLoaded',
173
+    () => SVGInject(document.querySelectorAll('.figure > embed')),
174
+  );
175
+</script>
169 176
 
170 177
 </body>
171 178
 </html>