Created
August 18, 2012 08:29
-
-
Save bluestrike2/3385311 to your computer and use it in GitHub Desktop.
html5boilerplate meets slim. falls in love, builds stuff together.
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
doctype 5 | |
/[if lte IE 7] | |
html.no-js.wf-loading.ie.ie-old lang='en' | |
/[if IE 8] | |
html.no-js.wf-loading.ie.ie8 lang='en' | |
/[if IE 9] | |
html.no-js.wf-loading.ie.ie9 lang='en' | |
| <!--[if (gte IE 9)|!(IE)]<!--> <html class='no-js' lang='en'> <!--<![endif]--> | |
head | |
meta charset='utf-8' | |
meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1' | |
meta name='viewport' content='width=device-width' | |
meta http-equiv='imagetoolbar' content='false' | |
title Boilerplate on Slim | |
meta name='description' content='' | |
meta name='author' content='' | |
meta name='keywords' content='' | |
link rel='author' href='/humans.txt' | |
javascript: | |
TypekitConfig={kitId:"XXXXXXX",scriptTimeout:3e3}; | |
(function(){var a=document.getElementsByTagName("html")[0];var b=setTimeout(function(){a.className=a.className.replace(/(\s|^)wf-loading(\s|$)/g,"");a.className+=" wf-inactive"},TypekitConfig.scriptTimeout);var c=document.createElement("script");c.src="//use.typekit.com/"+TypekitConfig.kitId+".js";c.async="true";c.onload=c.onreadystatechange=function(){var a=this.readyState;if(a&&a!="complete"&&a!="loaded")return;clearTimeout(b);try{Typekit.load(TypekitConfig)}catch(c){}};var d=document.getElementsByTagName("script")[0];d.parentNode.insertBefore(c,d)})() | |
= stylesheet_link_tag 'application' | |
= javascript_include_tag 'modernizr' | |
= csrf_meta_tag | |
body | |
== yield | |
= javascript_include_tag 'application', :async => true | |
javascript: | |
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']]; | |
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; | |
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js'; | |
s.parentNode.insertBefore(g,s)}(document,'script')); | |
/[if lt IE 7] | |
javascript src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js" | |
javascript: | |
window.attachEvent("onload",function(){CFInstall.check({mode:"overlay"})}) | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just a quick note if you've stumbled upon this: minor changes to the
<html>
classes differ from html5boilerplate proper along with some other additions (async typekit & what not, some meta tags, etc.).