Last active
August 29, 2015 14:16
-
-
Save cesardv/f498a3d8314ed79e5bd9 to your computer and use it in GitHub Desktop.
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
<head> | |
<!-- Bootstrap CSS CDN --> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<!-- APP CONTENT --> | |
<!-- jQuery CDN --> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | |
<!-- jQuery local fallback --> | |
<script>window.jQuery || document.write('<script src="/local/jquery.min.js"><\/script>')</script> | |
<!-- Bootstrap JS CDN --> | |
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script> | |
<!-- Bootstrap JS local fallback --> | |
<script>if(typeof($.fn.modal) === 'undefined') {document.write('<script src="/local/bootstrap.min.js"><\/script>')}</script> | |
<!-- Bootstrap CSS local fallback --> | |
<script> | |
$(document).ready(function() { | |
var bodyColor = $('body').css('color'); | |
if(bodyColor != 'rgb(51, 51, 51)') { | |
$("head").prepend('<link rel="stylesheet" href="/local/bootstrap.min.css">');}}); | |
</script> | |
</body> |
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
head | |
//- Bootstrap CSS CDN | |
link(rel="stylesheet", href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css") | |
body | |
//- APP CONTENT | |
//- jQuery CDN | |
script(src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js") | |
//- jQuery local fallback | |
script | |
window.jQuery || document.write('<script src="/local/jquery.min.js"><\/script>') | |
//- Bootstrap JS CDN | |
script(src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js") | |
//- Bootstrap JS local fallback | |
script | |
if(typeof($.fn.modal) === 'undefined') {document.write('<script src="/local/bootstrap.min.js"><\/script>')} | |
//- Bootstrap CSS local fallback | |
script | |
$(document).ready(function() { | |
var bodyColor = $('body').css('color'); | |
if(bodyColor != 'rgb(51, 51, 51)') { | |
$("head").prepend('<link rel="stylesheet" href="/local/bootstrap.min.css">');}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment