Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
case "object":
mediaPlayerVideoObjectLoaded(source, settings);
break;
}
// Fix video pausing after show animation completes
if (settings.mediatype == "video") $("video",card).on(videoFixEvents.join(" "), function (e) { }).one("suspend pause",function(){this.play()})
var effect = "";
effectCSS = "";
if (settings.animated == "true" && settings.effect != undefined) {
effect = JSON.parse(settings.effect);
if (effect.effect == "panzoom") {
effectCSS = " \
@keyframes panzoom { \
from { transform: scale(" + settings["panzoom.scale.from"] + ") " + settings["panzoom.offset.from"] + settings["panzoom.rotate"] + " } \
to { transform: scale(" + settings["panzoom.scale.to"] + ") " + settings["panzoom.offset.to"] + settings["panzoom.rotate"] + " } \
} \
\
.front { \
animation: panzoom " + settings["panzoom.interval"] + "s linear alternate infinite; \
} \
";
effect.effect = "fade";
}
}
try {
$("#panzoom")[0].innerHTML = effectCSS;
} catch(e) { }
// ToDo: Wait for images to finish rendering before start show
$("#rolodex").waitForImages().done(function(source, settings) {
if (settings.animated == "true" && settings.effect != undefined) card.show(effect);