jQuery now in library/js. Patched to load as H5P.jQuery

namespaces
Frank Ronny Larsen 2013-02-06 18:53:39 +01:00
parent 7db3def124
commit 90bc40fcc4
2 changed files with 14 additions and 8 deletions

View File

@ -90,11 +90,7 @@ Array.prototype.contains = function (needle) {
return (this.indexOf(needle) > -1);
};
// We want our own jQuery version, regardless of what the containing page is
// up to.
// TODO: Does not work properly in <IE10
(function () {
document.writeln('<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>');
document.writeln('<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>');
document.writeln('<script>H5P.jQuery = jQuery.noConflict(true); H5P.jQuery(document).ready(function(){H5P.init();});</script>');
})();
// Finally, we want to run init when document is ready.
H5P.jQuery(document).ready(function(){
H5P.init();
});

10
js/jquery.js vendored Normal file

File diff suppressed because one or more lines are too long