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;
|
bottom: 8px;
|
||||||
}
|
}
|
||||||
.interface {
|
.interface {
|
||||||
position: relative;
|
position: absolute;
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
function getVideoOverlay(page) {
|
function getVideoOverlay(page) {
|
||||||
return videoOverlay[page] ? {
|
return (editable || videoOverlay[page]) ? {
|
||||||
beginLayout: function() {
|
beginLayout: function() {
|
||||||
this.counter = 0;
|
this.counter = 0;
|
||||||
//console.log('lets beging');
|
//console.log('lets beging');
|
||||||
|
@ -10,14 +10,14 @@ function getVideoOverlay(page) {
|
||||||
appendImage: function(image) {
|
appendImage: function(image) {
|
||||||
this.counter++;
|
this.counter++;
|
||||||
var id = this.counter;
|
var id = this.counter;
|
||||||
if (videoOverlay[page][id] || editable) {
|
if (editable || videoOverlay[page][id]) {
|
||||||
var div = document.createElement('div');
|
var div = document.createElement('div');
|
||||||
div.className = 'interface';
|
div.className = 'interface';
|
||||||
div.style.left = image.left + 'px';
|
div.style.left = image.left + 'px';
|
||||||
div.style.top = image.top + 'px';
|
div.style.top = image.top + 'px';
|
||||||
div.style.width = image.width + 'px';
|
div.style.width = image.width + 'px';
|
||||||
div.style.height = image.height + 'px';
|
div.style.height = image.height + 'px';
|
||||||
if (videoOverlay[page][id]) {
|
if (videoOverlay[page] && videoOverlay[page][id]) {
|
||||||
div.title = 'Click to Play';
|
div.title = 'Click to Play';
|
||||||
div.onclick = function(event) {
|
div.onclick = function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
Loading…
Reference in a new issue