Skip to content

Commit

Permalink
removed not working elements from RO-Crate lib
Browse files Browse the repository at this point in the history
  • Loading branch information
ErykKul committed Oct 13, 2023
1 parent efcea6f commit 5ee5aa2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions previewers/betatest/js/ro-crate-dynamic.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ copied from https://unpkg.com/[email protected]/dist/ro-crate-dynamic.js (
}
}
} else if ( types.includes("File") || types.includes("ImageObject") || types.includes("MediaObject") || path === "ro-crate-metadata.jsonld"){
view = "⬇️ Download: ";
//view = "⬇️ Download: ";
}
if (view){
idLink += `<a href="${path}">${view}</a>`;
Expand Down Expand Up @@ -484,13 +484,13 @@ copied from https://unpkg.com/[email protected]/dist/ro-crate-dynamic.js (
previews += `<iframe src='${p}' width='100%' height='500'></iframe>`;
} else if (p.match(/(\.mp3)|(\.ogg?)|(\.wav)$/i)){
previews += `<audio controls><source src='${p}'/></audio>`;
} else if (p.match(/(\.jpe?g)|(\.png)$/i)){
} /*else if (p.match(/(\.jpe?g)|(\.png)$/i)){
previews += `<img width='100%' style='object-fit: contain' src='${p}'/>`;
}
else if (p.match(/pdf$/i)){
previews += `<embed src="${p}" type="application/pdf" width="100%" height="600px" />`;

}
} */
}
return previews;
}
Expand Down

0 comments on commit 5ee5aa2

Please sign in to comment.