Created
July 20, 2014 00:58
-
-
Save jgb-solutions/e0c93803ab6561f2601b 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> | |
<!-- Foundation CSS CDN --> | |
<link rel="stylesheet" href="//cdn.jsdelivr.net/foundation/5.0.2/css/foundation.min.css"> | |
<!-- Modernizr CDN --> | |
<script src="//cdn.jsdelivr.net/foundation/5.0.2/js/vendor/custom.modernizr.js"></script> | |
<!-- Modernizr local fallback --> | |
<script>window.Modernizr || document.write('<script src="/local/custom.modernizr.js"><\/script>')</script> | |
</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.$ || document.write('<script src="/local/jquery.min.js"><\/script>')</script> | |
<!-- Foundation JS CDN --> | |
<script src="//cdn.jsdelivr.net/foundation/5.0.2/js/foundation.min.js"></script> | |
<!-- Foundation JS local fallback --> | |
<script>window.Foundation || document.write('<script src="/local/foundation.min.js"><\/script>')</script> | |
<!-- Initialize Foundation --> | |
<script>$(document).foundation();</script> | |
<!-- Foundation CSS local fallback --> | |
<script> | |
$(document).ready(function() { | |
var bodyColor = $('body').css('color'); | |
if(bodyColor != 'rgb(34, 34, 34)') { | |
$("head").prepend('<link rel="stylesheet" href="/local/foundation.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 | |
//- Foundation CSS CDN | |
link(rel="stylesheet", href="//cdn.jsdelivr.net/foundation/5.0.2/css/foundation.min.css") | |
//- Modernizr CDN | |
script(src='//cdn.jsdelivr.net/foundation/5.0.2/js/vendor/custom.modernizr.js') | |
//- Modernizr local fallback | |
script. | |
window.Modernizr || document.write('<script src="/local/custom.modernizr.js"><\/script>') | |
body | |
//- APP CONTENT | |
//- jQuery CDN | |
script(src='//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js') | |
//- jQuery local fallback | |
script. | |
window.$ || document.write('<script src="/local/jquery.min.js"><\/script>') | |
//- Foundation JS CDN | |
script(src="//cdn.jsdelivr.net/foundation/5.0.2/js/foundation.min.js") | |
//- Foundation JS local fallback | |
script. | |
window.Foundation || document.write('<script src="/local/foundation.min.js"><\/script>') | |
//- Initialize Foundation | |
script. | |
$(document).foundation(); | |
//- Foundation CSS local fallback | |
script. | |
$(document).ready(function() { | |
var bodyColor = $('body').css('color'); | |
if(bodyColor != 'rgb(34, 34, 34)') { | |
$("head").prepend('<link rel="stylesheet" href="/local/foundation.min.css">');}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment