diff --git a/previewers/betatest/ROCrate.html b/previewers/betatest/ROCrate.html index e8659e3..eaf54bf 100644 --- a/previewers/betatest/ROCrate.html +++ b/previewers/betatest/ROCrate.html @@ -5,7 +5,6 @@ RO-Crate Preview - diff --git a/previewers/betatest/js/ro-crate-dynamic.js b/previewers/betatest/js/ro-crate-dynamic.js index cdce9ba..603fa43 100644 --- a/previewers/betatest/js/ro-crate-dynamic.js +++ b/previewers/betatest/js/ro-crate-dynamic.js @@ -119,6 +119,16 @@ async function load() { updatePage(); } +window.onhashchange = function () { + load(); +}; + +window.onload = function () { + load(); +}; + + + async function updatePage() { var hash = location.hash; diff --git a/previewers/betatest/js/rocrate.js b/previewers/betatest/js/rocrate.js index c2caa9f..291f799 100644 --- a/previewers/betatest/js/rocrate.js +++ b/previewers/betatest/js/rocrate.js @@ -10,10 +10,6 @@ function translateBaseHtmlPage() { async function writeContentAndData(data, fileUrl, file, title, authors) { addStandardPreviewHeader(file, title, authors); $('.preview').append($("