Skip to content

Commit

Permalink
alert user if opened without html_content
Browse files Browse the repository at this point in the history
  • Loading branch information
nlouwen committed Nov 27, 2024
1 parent dabe3d6 commit ac1d6f5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions big_scape/output/html_template/output/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ <h3>Network Overview</h3>
</div>
<div class="infobar">
</div>
<div id="abpres_heatmap" style="overflow: scroll; max-height:400px">
<div id="abpres_heatmap" style="overflow: scroll; max-height:465px">
</div>
</div>
</div>
Expand Down Expand Up @@ -329,7 +329,15 @@ <h3>Network</h3>
</div>
</div>
</body>
<script src="./html_content/js/jquery-3.2.1.min.js"></script>
<script>
var loadError = function (el) {
var msg = 'Always open the index.html in the same directory as the "html_content"' +
' folder, as this contains needed scripts and styles.'
alert(`Error loading script:\n\n${el.src}\n\n${msg}`)
window.stop()
}
</script>
<script src="./html_content/js/jquery-3.2.1.min.js" onerror=loadError(this)></script>
<script src="./html_content/js/sql-asm.js"></script>
<!-- Overview libs -->
<script src="./html_content/js/kinetic-v5.1.0.min.js"></script>
Expand Down

0 comments on commit ac1d6f5

Please sign in to comment.