mirror of
https://github.com/ada-dmitry/ada-dmitry.github.io.git
synced 2026-09-24 09:20:40 +00:00
Изменить путь загрузки данных графа: использовать assets/js/graph-data.json вместо graph.json.
This commit is contained in:
+6
-1
@@ -8,7 +8,7 @@ permalink: /graph/
|
|||||||
|
|
||||||
<script src="https://unpkg.com/force-graph"></script>
|
<script src="https://unpkg.com/force-graph"></script>
|
||||||
<script>
|
<script>
|
||||||
fetch('{{ "/graph.json" | relative_url }}')
|
fetch('{{ "/assets/js/graph-data.json" | relative_url }}')
|
||||||
.then(r => r.json())
|
.then(r => r.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
const el = document.getElementById('graph');
|
const el = document.getElementById('graph');
|
||||||
@@ -27,3 +27,8 @@ permalink: /graph/
|
|||||||
Graph.nodeRelSize(6);
|
Graph.nodeRelSize(6);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#note-graph { height: 70vh; min-height: 420px; }
|
||||||
|
</style>
|
||||||
|
<div id="note-graph"></div>
|
||||||
Reference in New Issue
Block a user