Skip to content

Commit

Permalink
Fix design of institution logo in uv viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus-87 committed Apr 2, 2019
1 parent 7d16459 commit eb7cdfa
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/main/resources/templates/universalviewer/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,19 @@ <h1>Object-Viewer: UniversalViewer</h1>

<div th:replace="fragments/license :: images"></div>

<script type="text/javascript" id="embedUV" th:src="@{|/webjars/universalviewer/${iiifVersions.universalviewer}/dist/uv-${iiifVersions.universalviewer}/lib/embed.js|}"></script>
</section>
</body>

<th:block layout:fragment="morejs">
<script type="text/javascript" id="embedUV" th:src="@{|/webjars/universalviewer/${iiifVersions.universalviewer}/dist/uv-${iiifVersions.universalviewer}/lib/embed.js|}"></script>
<script type="text/javascript">
setTimeout(function(){
var iframe = $('#uv-container > iframe');
$('.iiif-metadata-component:first .item._logo img', iframe.contents()).css({
'background-color': 'white',
'padding': '3px'
});
}, 3000);
</script>
</th:block>
</body>
</html>

0 comments on commit eb7cdfa

Please sign in to comment.