-
-
Save cron64/5078556 to your computer and use it in GitHub Desktop.
CDN Fallback
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="js/jquery-1.9.1.min.js"><\/script>')</script> | |
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script> | |
<script>window.jQuery.ui || document.write('<script src="js/jquery-ui-1.8.21.min.js"><\/script>')</script> | |
<script src="//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> | |
<script>window.swfobject || document.write('<script src="js/swfobject-2.2"><\/script>')</script> | |
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/themes/base/jquery-ui.css" /> | |
<div class="ui-helper-hidden"></div> | |
<script> | |
$(document).ready(function() { | |
// Checks if the above is hidden (by jQuery UI) and if not, use the local UI CSS file | |
if ($('.ui-helper-hidden:first').is(':visible') === true) { | |
$('<link rel="stylesheet" href="css/jquery-ui-1.8.21.css" />').appendTo('head'); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment