Skip to content

Commit

Permalink
example fix
Browse files Browse the repository at this point in the history
  • Loading branch information
codeeshop-oc committed Nov 27, 2023
1 parent a053e73 commit e09fc8c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<body>
<link href="assets/datatables.min.css" rel="stylesheet">
<script src="assets/datatables.min.js"></script>
<script type="text/javascript" src="../src/button-json.js"></script>
<script type="text/javascript" src="../src/button-json.js" defer></script>

<div include-html="table.html"></div>

<script type="module">
<script type="module" defer>
import { urlRenderObj } from '../src/url-render.js'

function includeHTML() {
Expand All @@ -33,7 +33,9 @@
/*remove the attribute, and call this function once more:*/
elmnt.removeAttribute("include-html");
includeHTML();
registerTable()
setTimeout(function () {
registerTable()
}, 500)
}
}
xhttp.open("GET", file, true);
Expand Down

0 comments on commit e09fc8c

Please sign in to comment.