Skip to content

Commit

Permalink
Combine css files into one.
Browse files Browse the repository at this point in the history
Change GA snippet to the new async. one.
Put prettify.js to the bottom of the page.
  • Loading branch information
kangax committed Dec 3, 2009
1 parent 0cf6058 commit 7adb6cc
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 73 deletions.
55 changes: 54 additions & 1 deletion screen.css → all.css
Expand Up @@ -255,4 +255,57 @@ hr.space {background:#fff;color:#fff;}
.clearfix, .container {display:block;}
.clear {clear:both;}
.excerpt { background: #dfd; margin-bottom: 1.5em; }
.excerpt p { padding: 1em; margin-bottom: 0; }
.excerpt p { padding: 1em; margin-bottom: 0; }

/* Pretty printing styles. Used with prettify.js. */

.str { color: #080; }
.kwd { color: #008; }
.com { color: #800; }
.typ { color: #606; }
.lit { color: #066; }
.pun { color: #660; }
.pln { color: #000; }
.tag { color: #008; }
.atn { color: #606; }
.atv { color: #080; }
.dec { color: #606; }
pre.prettyprint { padding: 2px; border: 1px solid #888; }

@media print {
.str { color: #060; }
.kwd { color: #006; font-weight: bold; }
.com { color: #600; font-style: italic; }
.typ { color: #404; font-weight: bold; }
.lit { color: #044; }
.pun { color: #440; }
.pln { color: #000; }
.tag { color: #006; font-weight: bold; }
.atn { color: #404; }
.atv { color: #060; }
}

pre.prettyprint { background-color: #F4F2E5; border: none; }
.dtstart { background-color: #ffc; font-weight: bold; }

/* blueprint print.css */

@media print {

body {line-height:1.5;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;color:#000;background:none;font-size:10pt;}
.container {background:none;}
hr {background:#ccc;color:#ccc;width:100%;height:2px;margin:2em 0;padding:0;border:none;}
hr.space {background:#fff;color:#fff;}
h1, h2, h3, h4, h5, h6 {font-family:"Helvetica Neue", Arial, "Lucida Grande", sans-serif;}
code {font:.9em "Courier New", Monaco, Courier, monospace;}
img {float:left;margin:1.5em 1.5em 1.5em 0;}
a img {border:none;}
p img.top {margin-top:0;}
blockquote {margin:1.5em;padding:1em;font-style:italic;font-size:.9em;}
.small {font-size:.9em;}
.large {font-size:1.1em;}
.quiet {color:#999;}
.hide {display:none;}
a:link, a:visited {background:transparent;font-weight:700;text-decoration:underline;}
a:link:after, a:visited:after {content:" (" attr(href) ")";font-size:90%;}
}
24 changes: 12 additions & 12 deletions index.html
Expand Up @@ -10,11 +10,18 @@

<title>Named function expressions demystified</title>

<link rel="stylesheet" href="screen.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="prettify.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="print.css" type="text/css" media="print">
<link rel="stylesheet" href="all.css" type="text/css" media="all">

<script src="prettify.js" type="text/javascript"></script>
<script type="text/javascript">
var _gaq = [['_setAccount', 'UA-1128111-17'],['_trackPageview']];
(function(d) {
var script = d.createElement('script'),
head = d.getElementsByTagName('head')[0] || d.documentElement;
script.async = true;
script.src = 'http://www.google-analytics.com/ga.js';
head.insertBefore(script, head.firstChild);
})(document);
</script>

</head>
<body onload="prettyPrint();">
Expand Down Expand Up @@ -1041,13 +1048,6 @@ <h2 id="credits">Credits</h2>
Created: <span class="dtstart">June 17, 2009</span> Last modified: <span class="dtstart">October 9, 2009</span>
</p>
</div>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try { var pageTracker = _gat._getTracker("UA-1128111-17"); pageTracker._trackPageview(); } catch(err) {}
</script>
<script src="prettify.js" type="text/javascript"></script>
</body>
</html>
30 changes: 0 additions & 30 deletions prettify.css

This file was deleted.

30 changes: 0 additions & 30 deletions print.css

This file was deleted.

0 comments on commit 7adb6cc

Please sign in to comment.