SUCCESS TEST
SNOWFLAKE TEST
SUPER SUCCESS TEST
function uf_loadvideo(asURL, asTitle){
$("#iFrameGeneric").attr('src',"");
$("#TitleGeneric").html(asTitle);
$("#iFrameGeneric").attr('src',asURL);
$('#myModalGeneric').modal('show');
}
$('#myModalGeneric').on('hidden.bs.modal', function (e) {
stopvideo();
})
function stopvideo(){
//if I want i can set scope to a specific region
var myScope = document.getElementById('divScope');
//otherwise set scope as the entire document
//var myScope = document;
//if there is an iframe inside maybe embedded multimedia video/audio, we should reload so it stops playing
var iframes = document.getElementsByTagName("iframe");
if (iframes != null) {
for (var i = 0; i < iframes.length; i++) {
iframes[i].src = iframes[i].src; //causes a reload so it stops playing, music, video, etc.
}
}
}
-->