fix positions
This commit is contained in:
parent
235e9e6faa
commit
672558d104
2 changed files with 5 additions and 5 deletions
|
@ -20,5 +20,5 @@
|
|||
bottom: 8px;
|
||||
}
|
||||
.interface {
|
||||
position: relative;
|
||||
}
|
||||
position: absolute;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
function getVideoOverlay(page) {
|
||||
return videoOverlay[page] ? {
|
||||
return (editable || videoOverlay[page]) ? {
|
||||
beginLayout: function() {
|
||||
this.counter = 0;
|
||||
//console.log('lets beging');
|
||||
|
@ -10,14 +10,14 @@ function getVideoOverlay(page) {
|
|||
appendImage: function(image) {
|
||||
this.counter++;
|
||||
var id = this.counter;
|
||||
if (videoOverlay[page][id] || editable) {
|
||||
if (editable || videoOverlay[page][id]) {
|
||||
var div = document.createElement('div');
|
||||
div.className = 'interface';
|
||||
div.style.left = image.left + 'px';
|
||||
div.style.top = image.top + 'px';
|
||||
div.style.width = image.width + 'px';
|
||||
div.style.height = image.height + 'px';
|
||||
if (videoOverlay[page][id]) {
|
||||
if (videoOverlay[page] && videoOverlay[page][id]) {
|
||||
div.title = 'Click to Play';
|
||||
div.onclick = function(event) {
|
||||
event.preventDefault();
|
||||
|
|
Loading…
Reference in a new issue