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 a1162d7 commit 42fb341
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion previewers/betatest/ROCrate.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
<main><img id='logo' alt='Site Logo'>
<h1 class="page-title rocratePreviewText">RO-Crate Preview</h1>
<div class='preview-container'>
<div id="scripts"></div>
<div class='preview-header'></div>
<div class='preview'>
<div class="jumbotron">
Expand Down
2 changes: 1 addition & 1 deletion previewers/betatest/js/rocrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ function translateBaseHtmlPage() {

async function writeContentAndData(data, fileUrl, file, title, authors) {
addStandardPreviewHeader(file, title, authors);
document.getElementById('scripts').innerHTML = '<script type="application/ld+json">' + data + '</script><script type="application/ld+json"/>';
$('.preview').append($('<div/>').html('<script type="application/ld+json">' + data + '</script><script type="application/ld+json"/>'));
}

0 comments on commit 42fb341

Please sign in to comment.