Skip to content

Instantly share code, notes, and snippets.

@passy
Forked from sindresorhus/h5bp.js
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save passy/4105557d22c4520fcce2 to your computer and use it in GitHub Desktop.

Select an option

Save passy/4105557d22c4520fcce2 to your computer and use it in GitHub Desktop.

Revisions

  1. passy revised this gist Aug 5, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions h5bp.js
    Original file line number Diff line number Diff line change
    @@ -17,6 +17,7 @@ document.write(" <link rel=\"stylesheet\" href=\"css\/main.css\">");
    document.write(" <script src=\"js\/vendor\/modernizr-2.6.2.min.js\"><\/script>");
    document.write(" <\/head>");
    document.write(" <body>");
    document.write(" <noscript>plz enalbe teh javascripts</noscript>");
    document.write(" <!--[if lt IE 7]>");
    document.write(" <p class=\"chromeframe\">You are using an <strong>outdated<\/strong> browser. Please <a href=\"http:\/\/browsehappy.com\/\">upgrade your browser<\/a> or <a href=\"http:\/\/www.google.com\/chromeframe\/?redirect=true\">activate Google Chrome Frame<\/a> to improve your experience.<\/p>");
    document.write(" <![endif]-->");
  2. @sindresorhus sindresorhus created this gist Feb 10, 2013.
    40 changes: 40 additions & 0 deletions h5bp.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,40 @@
    document.write("<!DOCTYPE html>");
    document.write("<!--[if lt IE 7]> <html class=\"no-js lt-ie9 lt-ie8 lt-ie7\"> <![endif]-->");
    document.write("<!--[if IE 7]> <html class=\"no-js lt-ie9 lt-ie8\"> <![endif]-->");
    document.write("<!--[if IE 8]> <html class=\"no-js lt-ie9\"> <![endif]-->");
    document.write("<!--[if gt IE 8]><!--> <html class=\"no-js\"> <!--<![endif]-->");
    document.write(" <head>");
    document.write(" <meta charset=\"utf-8\">");
    document.write(" <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">");
    document.write(" <title><\/title>");
    document.write(" <meta name=\"description\" content=\"\">");
    document.write(" <meta name=\"viewport\" content=\"width=device-width\">");
    document.write("");
    document.write(" <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->");
    document.write("");
    document.write(" <link rel=\"stylesheet\" href=\"css\/normalize.css\">");
    document.write(" <link rel=\"stylesheet\" href=\"css\/main.css\">");
    document.write(" <script src=\"js\/vendor\/modernizr-2.6.2.min.js\"><\/script>");
    document.write(" <\/head>");
    document.write(" <body>");
    document.write(" <!--[if lt IE 7]>");
    document.write(" <p class=\"chromeframe\">You are using an <strong>outdated<\/strong> browser. Please <a href=\"http:\/\/browsehappy.com\/\">upgrade your browser<\/a> or <a href=\"http:\/\/www.google.com\/chromeframe\/?redirect=true\">activate Google Chrome Frame<\/a> to improve your experience.<\/p>");
    document.write(" <![endif]-->");
    document.write("");
    document.write(" <!-- Add your site or application content here -->");
    document.write(" <p>Hello world! This is HTML5 Boilerplate.<\/p>");
    document.write("");
    document.write(" <script src=\"\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.9.1\/jquery.min.js\"><\/script>");
    document.write(" <script>window.jQuery || document.write('<script src=\"js\/vendor\/jquery-1.9.1.min.js\"><\\/script>')<\/script>");
    document.write(" <script src=\"js\/plugins.js\"><\/script>");
    document.write(" <script src=\"js\/main.js\"><\/script>");
    document.write("");
    document.write(" <!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->");
    document.write(" <script>");
    document.write(" var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];");
    document.write(" (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];");
    document.write(" g.src=('https:'==location.protocol?'\/\/ssl':'\/\/www')+'.google-analytics.com\/ga.js';");
    document.write(" s.parentNode.insertBefore(g,s)}(document,'script'));");
    document.write(" <\/script>");
    document.write(" <\/body>");
    document.write("<\/html>");