Improve example-builder code

Reduce amount of async calls and some other small changes
This commit is contained in:
Maximilian Krög
2022-08-08 22:13:48 +02:00
parent bebf2db5ae
commit 7404397529
2 changed files with 37 additions and 46 deletions

View File

@@ -170,7 +170,9 @@
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.bundle.min.js"></script>
<script src="./resources/prism/prism-1.20.0.min.js"></script>
<script src="./resources/common.js"></script>
{{{ js.tag }}}
{{#each js.scripts}}
<script src="{{{ . }}}"></script>
{{/each}}
<script>
$('#tag-example-list').on('show.bs.modal', function (event) {
const button = $(event.relatedTarget); // Button that triggered the modal