Skip to content

Commit 92ceab6

Browse files
authored
Merge pull request #20 from athuler/New-Tree-Rendering-Methods
Button Update
2 parents d7c8fff + de91d51 commit 92ceab6

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

index.php

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,21 @@ function gtag(){dataLayer.push(arguments);}
105105

106106
<div id="controls">
107107
<div class="btn-group">
108+
<button class="control-btn" onclick="centerOnStart(window.firstVideoId, window.cy)">
109+
<i class="bi bi-house"></i> Go to Start
110+
</button>
111+
<button class="control-btn" onclick="changeLayout('breadthfirst', window.cy, window.firstVideoId)">
112+
<i class="bi bi-diagram-2"></i> Tree Layout
113+
</button>
114+
<button class="control-btn" onclick="changeLayout('cose', window.cy, window.firstVideoId)">
115+
<i class="bi bi-node-plus"></i> Bubble Layout
116+
</button>
117+
<a href="download.php"><button class="control-btn">
118+
<i class="bi bi-download"></i> Download</button>
119+
</a>
120+
<!-- <button class="control-btn" onclick="changeLayout('circle', window.cy, window.firstVideoId)">Circle Layout</button> -->
108121
<!-- <button class="control-btn" onclick="resetView(window.cy, window.firstVideoId)"><i class="bi bi-arrows-angle-contract"></i> Reset View</button> -->
109122
<!-- <button class="control-btn" onclick="fitToScreen(window.cy)"><i class="bi bi-fullscreen"></i> Fit All</button> -->
110-
<button class="control-btn" onclick="centerOnStart(window.firstVideoId, window.cy)"><i class="bi bi-house"></i> Go to Start</button>
111-
<a href="download.php"><button class="control-btn"><i class="bi bi-download"></i> Download</button></a>
112123
</div>
113124

114125
<div class="legend">
@@ -129,20 +140,12 @@ function gtag(){dataLayer.push(arguments);}
129140
<span>End</span>
130141
</div>
131142
</div>
132-
133-
<div class="btn-group">
134-
<button class="control-btn" onclick="changeLayout('breadthfirst', window.cy, window.firstVideoId)">
135-
<i class="bi bi-diagram-2"></i> Tree Layout
136-
</button>
137-
<button class="control-btn" onclick="changeLayout('cose', window.cy, window.firstVideoId)">
138-
Force Layout
139-
</button>
140-
<!-- <button class="control-btn" onclick="changeLayout('circle', window.cy, window.firstVideoId)">Circle Layout</button> -->
141-
</div>
142143
</div>
143144

145+
<!-- Diagram -->
144146
<div id="cy"></div>
145147

148+
<!-- Info Panel -->
146149
<div id="info-panel">
147150
<span class="close-btn" onclick="closeInfoPanel()">&times;</span>
148151
<h3 id="info-video-id">Video Info</h3>

0 commit comments

Comments
 (0)