feature: added partials containing script tags sourcing and configuring JS renderers
This commit is contained in:
7
themes/sukaato/layouts/partials/diagram.html
Normal file
7
themes/sukaato/layouts/partials/diagram.html
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<script id="mermaidjs" type="module">
|
||||||
|
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs';
|
||||||
|
mermaid.initialize({
|
||||||
|
startOnLoad: true,
|
||||||
|
theme: 'dark',
|
||||||
|
});
|
||||||
|
</script>
|
||||||
15
themes/sukaato/layouts/partials/math.html
Normal file
15
themes/sukaato/layouts/partials/math.html
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<script id="mathjax" async src="https://cdn.jsdelivr.net/npm/mathjax@4/tex-mml-chtml.js"></script>
|
||||||
|
<script>
|
||||||
|
MathJax = {
|
||||||
|
tex: {
|
||||||
|
displayMath: [['\\[', '\\]'], ['$$', '$$']], // block
|
||||||
|
inlineMath: [['$', '$']] // inline
|
||||||
|
},
|
||||||
|
loader: {
|
||||||
|
load: ['ui/safe']
|
||||||
|
},
|
||||||
|
output: {
|
||||||
|
font: 'mathjax-asana'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
10
themes/sukaato/layouts/partials/music-notation.html
Normal file
10
themes/sukaato/layouts/partials/music-notation.html
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<script id="abcjs" src="https://cdn.jsdelivr.net/npm/abcjs@6.5.0/dist/abcjs-plugin-min.js"></script>
|
||||||
|
<script>
|
||||||
|
ABCJS.plugin.render_options = {
|
||||||
|
add_classes: true,
|
||||||
|
hint_measures: true,
|
||||||
|
responsive: 'resize',
|
||||||
|
tablature: [{instrument: 'guitar'}]
|
||||||
|
};
|
||||||
|
ABCJS.plugin.hide_abc = true;
|
||||||
|
</script>
|
||||||
3
themes/sukaato/layouts/partials/tablature-notation.html
Normal file
3
themes/sukaato/layouts/partials/tablature-notation.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<script src="https://jtab.tardate.com/javascripts/jquery.js"></script>
|
||||||
|
<script src="https://jtab.tardate.com/javascripts/raphael.js"></script>
|
||||||
|
<script src="https://jtab.tardate.com/javascripts/jtab.js"></script>
|
||||||
Reference in New Issue
Block a user