update css & js
This commit is contained in:
parent
d92080fcc8
commit
243c4c486c
2 changed files with 9 additions and 3 deletions
|
|
@ -12,12 +12,12 @@ function getVideoOverlay(page) {
|
|||
var id = this.counter;
|
||||
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] && videoOverlay[page][id]) {
|
||||
div.className = 'interface video';
|
||||
div.title = 'Click to Play';
|
||||
div.onclick = function(event) {
|
||||
event.preventDefault();
|
||||
|
|
@ -29,6 +29,8 @@ function getVideoOverlay(page) {
|
|||
img.className = 'button playButton';
|
||||
img.src = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTYiIGhlaWdodD0iMjU2Ij48cG9seWdvbiBwb2ludHM9IjU2LDMyIDI0OCwxMjggNTYsMjI0IiBmaWxsPSIjRkZGRkZGIi8+PC9zdmc+PCEtLXsiY29sb3IiOiJ2aWRlbyIsIm5hbWUiOiJzeW1ib2xQbGF5IiwidGhlbWUiOiJveGRhcmsifS0tPg==';
|
||||
div.appendChild(img);
|
||||
} else {
|
||||
div.className = 'interface';
|
||||
}
|
||||
if (editable) {
|
||||
var img = document.createElement('img');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue