zhongwen-obsidian/output/mod/html/graph.template.html
Jack Bond-Preston 14f050f8f3
vault update: 2024-06-16 18:25:00
Affected files:
Index.md
config.yml
output/mod/arguments.yml
output/mod/capabilities.json
output/mod/config.yml
output/mod/graphers.json
output/mod/guid.txt
output/mod/html/dynamic_footer_inclusions.html
output/mod/html/dynamic_inclusions.html
output/mod/html/graph.template.html
output/mod/html/graph_full_page.template.html
output/mod/html/note.template.html
output/mod/modfile_dependencies.json
output/mod/paths.json
output/mod/user_config.yml
2024-06-16 18:25:00 +01:00

27 lines
1010 B
HTML

<div class="graph requires_js {graph_classes}">
<div id="A{id}{level}" class="graph_div"></div>
<div class="graph-instructions" id="D{id}{level}">
Left-click: follow link, Right-click: select node, Scroll: zoom
</div>
<div class="graph-button-row" style="display:flex;">
<button class="graph_button graph_show_button" id="B{id}{level}" level="{level}" note_temp_id="{id}" onclick="window.ObsHtmlGraph.run(this, '{id}', '{pinnedNode}');">
Show Graph
</button>
<button class="graph_button graph_type_button" id="C{id}{level}" style="flex:1" onclick="window.ObsHtmlGraph.switch_graph_type(this);">
2D
</button>
</div>
</div>
<script type="module">
if (window.ObsHtmlGraph == undefined){
import('{html_url_prefix}/obs.html/static/graph.js').then((Module) => {
window.ObsHtmlGraph = Module;
window.ObsHtmlGraph.arm_page(document.getElementById('page_holder'))
})
}
</script>