Skip to content

Instantly share code, notes, and snippets.

@johnhunter
Created March 14, 2012 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnhunter/2034748 to your computer and use it in GitHub Desktop.
Save johnhunter/2034748 to your computer and use it in GitHub Desktop.
Basic html template
<!DOCTYPE html>
<!--[if lte IE 6 ]><html class="ie ie6 non-js"><![endif]-->
<!--[if IE 7 ]><html class="ie ie7 non-js"><![endif]-->
<!--[if IE 8 ]><html class="ie ie8 non-js"><![endif]-->
<!--[if gte IE 9 ]><html class="ie ie9 non-js"><![endif]-->
<!--[if !IE]>-->
<html class="non-js">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<title>untitled</title>
<script>
var de = document.documentElement;
if (de) de.className = de.className.replace('non-js','js');
</script>
<link rel="stylesheet" href="css/all.css">
</head>
<body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
/*
Module template
*/
var module = (function (win, doc, $) {
function init () {}
$(init);// init on domready
return {
init: init
};
}(window, document, jQuery));
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment