Skip to content

Instantly share code, notes, and snippets.

@nfeldman
Created July 21, 2011 01:46
Show Gist options
  • Save nfeldman/1096342 to your computer and use it in GitHub Desktop.
Save nfeldman/1096342 to your computer and use it in GitHub Desktop.
My HTML5 Bare Template
<!doctype html>
<html lang="en">
<head>
<!--[if IE]><![endif]--> <!-- workaround for: phpied.com/conditional-comments-block-downloads/ -->
<title>UNTITLED</title>
<meta charset="utf-8">
<script>(function(a,c){var b=' ' + a[c] + ' ';a[c]?(b.indexOf('js') > -1 ||(a[c]+=' js'),b.indexOf('jsOff') > -1 ||(a[c]+=' jsOff')):a[c]="js jsOff",setTimeout(function(){a[c]=a[c].replace(/\s*?jsOff\s?/,'')},3e3)}(document.documentElement, 'className'))</script>
<meta name="author" content="Noah Feldman">
<!-- css strategy re-vamped due to https://gist.github.com/3768460 -->
<link type="text/css" rel="stylesheet" href="css/desktop.css" media="all">
<link type="text/css" rel="stylesheet" href="css/handheld.css" media="screen and (max-device-width:40em)">
<link type="text/css" rel="stylesheet" href="css/handheld.css" media="handheld">
<meta name="viewport" content="width=device-width; initial-scale=1">
<!--[if lt IE 9 ]> <script src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
<script>CFInstall.check()</script>
<![endif]-->
<!--[if IE 8 ]> <link rel="stylesheet" href="css/ie8.css"> <![endif]-->
</head>
<body>
<script src="js/global.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment