g = document.getElementById('lowerthird-subheading-content');
f.style.paddingTop = Math.round((f.clientHeight - g.clientHeight) / 2) + 'px';
+ f = document.getElementById('lowerthird-picture');
+ g = document.getElementById('lowerthird-picture-content');
+ f.style.paddingTop = Math.round((f.clientHeight - g.clientHeight) / 2) + 'px';
+
document.getElementById('lowerthird-headline').className = 'lowerthird-headline lowerthird-headline-animate-in';
document.getElementById('lowerthird-headline-content').className = 'lowerthird-headline-content lowerthird-headline-content-animate-in';
document.getElementById('lowerthird-subheading').className = 'lowerthird-subheading lowerthird-subheading-animate-in';
document.getElementById('lowerthird-subheading-content').className = 'lowerthird-subheading-content lowerthird-subheading-content-animate-in';
+ document.getElementById('lowerthird-picture').className = 'lowerthird-picture lowerthird-picture-animate-in';
+ document.getElementById('lowerthird-picture-content').className = 'lowerthird-picture-content lowerthird-picture-content-animate-in';
lowerthird_visible = true;
}
{
document.getElementById('lowerthird-headline-content').innerHTML = state['text1'];
document.getElementById('lowerthird-subheading-content').innerHTML = state['text2'];
+ var img = document.getElementById('lowerthird-img');
+ if (state['image'] === undefined) {
+ img.style.display = 'none';
+ } else {
+ img.src = state['image'];
+ img.style.display = 'inline';
+ }
showlowerthird();
}
document.getElementById('lowerthird-headline-content').className = 'lowerthird-headline-content lowerthird-headline-content-animate-out';
document.getElementById('lowerthird-subheading').className = 'lowerthird-subheading lowerthird-subheading-animate-out';
document.getElementById('lowerthird-subheading-content').className = 'lowerthird-subheading-content lowerthird-subheading-content-animate-out';
+ document.getElementById('lowerthird-picture').className = 'lowerthird-picture lowerthird-picture-hidden lowerthird-picture-animate-out';
+ document.getElementById('lowerthird-picture-content').className = 'lowerthird-picture-content lowerthird-picture-content-animate-out';
lowerthird_visible = false;
}