Skip to content

Commit

Permalink
ro-crate previewer
Browse files Browse the repository at this point in the history
  • Loading branch information
ErykKul committed Sep 29, 2023
1 parent ee37dbc commit 08bd17f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion previewers/betatest/ROCrate.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<title class="rocratePreviewText">RO-Crate Preview</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript" src="js/xss.js"></script>
<script type="text/javascript" src="js/ro-crate-dynamic.js"></script>
<script type="text/javascript" src="js/rocrate.js"></script>
<script src="lib/jquery.i18n.js"></script>
<script src="lib/jquery.i18n.messagestore.js"></script>
Expand Down
3 changes: 3 additions & 0 deletions previewers/betatest/js/rocrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ function translateBaseHtmlPage() {
async function writeContentAndData(data, fileUrl, file, title, authors) {
addStandardPreviewHeader(file, title, authors);
$('.preview').append($("<script type=\"application/ld+json\"/>").html(data));
var s = document.createElement('script');
s.setAttribute('src', 'js/ro-crate-dynamic.js');
$('.preview').appendChild(s);
}

0 comments on commit 08bd17f

Please sign in to comment.