In my attempt to find a simple solution to youtube-popup, I found http://nrivers.com/codecanyon/n1/ - videopopup.js script. The framework is lightweight and works well - however there a function that is set to work with jquery-1.7.
the little "x" to close - does not work if using jquery 2.1 but works if using 1.7 or less. the jsfiddle is at http://jsfiddle.net/jw93b/
I have imported the code into the JS window - but can't understand what code to change. Can someone help with updating the code in JS window so it can work with jquery 2.1 (which is required by another plugin).
I think the code that requires update is
$(".modalnav").live("click", function () {
$("#dvGlobalMask").hide();
$("#videopopup").hide();
$(".modalnav").hide();
$('#videocontent').html('');
$(settings.videoid).hide()
})