-
-
Save Felipe-Marques/7b25c80687d14783d497714c93961916 to your computer and use it in GitHub Desktop.
This is a fallback Script for Bootstrap CDN
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
//bootstrapfallback.js | |
//<!-- BOOTSTRAP JS WITH LOCAL FALLBACK--> | |
//<script type="text/javascript" src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/js/bootstrap.min.js"></script> | |
//<script> if(typeof($.fn.modal) === 'undefined') {document.write('<script src="//www.mysite.com/js/v/bootstrap-2.1.1.js"><\/script>')}</script> | |
//<!-- BOOTSTRAP CDN FALLBACK CSS--> | |
//<script>$(document).ready(function() { | |
var bodyColor = $('body').css("color"); if(bodyColor != 'rgb(51, 51, 51)') {$("head").prepend("<link rel='stylesheet' href='//www.mysite.com/css/fw/bootstrap-combined-2.1.1.css' type='text/css' media='screen'>");} | |
//});</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment