-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from ErykKul/23_RO-Crate_previewer
RO-Crate previewer
- Loading branch information
Showing
6 changed files
with
120 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<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/rocrate.js"></script> | ||
<script src="lib/jquery.i18n.js"></script> | ||
<script src="lib/jquery.i18n.messagestore.js"></script> | ||
<script src="lib/jquery.i18n.language.js"></script> | ||
<script type="text/javascript" src="js/retriever.js"></script> | ||
<!-- Latest compiled and minified CSS --> | ||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" | ||
integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous"> | ||
<!-- Optional theme --> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | ||
<link type="text/css" rel="stylesheet" href="css/preview.css" /> | ||
<style> | ||
table.table { | ||
padding-bottom: 300px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body class="container"> | ||
<main><img id='logo' alt='Site Logo'> | ||
<h1 class="page-title rocratePreviewText">RO-Crate Preview</h1> | ||
<div class='preview-container'> | ||
<div class='preview-header'></div> | ||
<div class='preview'> | ||
<div class="container"> | ||
<div id="scripts"></div> | ||
<div class="jumbotron"> | ||
<div id="check"></div> | ||
</div> | ||
<div id="summary"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
$(document).ready(function () { | ||
startPreview(true); | ||
}); | ||
|
||
function translateBaseHtmlPage() { | ||
$('.rocratePreviewText').text($.i18n("rocratePreviewText")); | ||
} | ||
|
||
function writeContentAndData(data, fileUrl, file, title, authors) { | ||
addStandardPreviewHeader(file, title, authors); | ||
const scripts = document.getElementById("scripts"); | ||
var s1 = document.createElement("script"); | ||
s1.type = "application/ld+json"; | ||
s1.text = data; | ||
scripts.append(s1); | ||
var s2 = document.createElement("script"); | ||
s2.type = "text/javascript"; | ||
s2.src = "js/ro-crate-dynamic.min.js"; | ||
scripts.append(s2); | ||
} |