27 lines
1010 B
HTML
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>
|
||
|
|