Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,6 @@ player/static/mfr/*

!.gitkeep

node_modules/

.cache
3 changes: 2 additions & 1 deletion mfr/extensions/video/templates/viewer.mako
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<video controls height="100%">
<source src="${url}">
Your browser does not support the video tag.
Expand All @@ -7,4 +8,4 @@
<script src="/static/js/mfr.child.js"></script>
<script>
window.pymChild.sendMessage('embed', 'embed-responsive-16by9');
</script>
</script>
4 changes: 3 additions & 1 deletion mfr/server/static/css/mfr.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,16 @@ This CSS was stripped out of base.css from the osf-style repo.
align-items: center;
width: 100%;
height: 250px;
top: 0;
left: 0;
}

.embed-responsive-pdf {
padding-bottom: 95%;
}

#mfrIframe iframe {
display: none;
opacity: 0.0;
}

#mfrIframe {
Expand Down
2 changes: 1 addition & 1 deletion mfr/server/static/js/mfr.child.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
'use strict';
window.pymChild = new pym.Child();


window.addEventListener('load', function () {
window.pymChild.sendHeight();

var anchors = document.getElementsByTagName('a');
Array.prototype.slice.call(anchors).forEach(function (el) {
el.addEventListener('click', function (e) {
Expand Down
2 changes: 1 addition & 1 deletion mfr/server/static/js/mfr.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
self.pymParent.el.appendChild(self.spinner);
$(self.pymParent.iframe).on('load', function() {
self.pymParent.el.removeChild(self.spinner);
this.style.display = "block"
this.style.opacity = "1.0"
})

self.pymParent.onMessage('embed', function(message) {
Expand Down