Skip to content
Browse files

v0.96

  • Loading branch information...
1 parent c668965 commit 246d46104c9424bbc05125ebecbfbfdfae56cd27 @tipiirai tipiirai committed May 18, 2011
Showing with 102 additions and 33 deletions.
  1. +10 −27 content/index.html
  2. +85 −0 content/media/css/headcss.styl
  3. +6 −5 content/media/css/style.styl
  4. +1 −1 layout/head.j2
View
37 content/index.html
@@ -663,11 +663,11 @@
A convenience shortcut for head.ready
-### head.ready("dom", callback)
+### head.ready(document, callback)
Executes the given callback when document is ready. This is identical to
-jQuery's [.ready()](http://api.jquery.com/ready/) method. "dom" is a reserved
-label and cannot be used as a label for your own scripts.
+jQuery's [.ready()](http://api.jquery.com/ready/) method. `document` is
+a global variable representing the current document in a browser.
### head.feature(name, flag)
@@ -702,37 +702,20 @@
===download===
-## Version 0.9
+## Version {{meta.version}}
-- [head.js](https://github.com/headjs/headjs/raw/v0.9/dist/head.js) - source code
-- [head.min.js](https://github.com/headjs/headjs/raw/v0.9/dist/head.min.js) - minified version
-- [head.load.min.js](https://github.com/headjs/headjs/raw/v0.9/dist/head.load.min.js) - JavaScript loader only
+- [head.js](https://github.com/headjs/headjs/raw/v{{meta.version}}/dist/head.js) - source code
+- [head.min.js](https://github.com/headjs/headjs/raw/v{{meta.version}}/dist/head.min.js) - minified version
+- [head.load.min.js](https://github.com/headjs/headjs/raw/v{{meta.version}}/dist/head.load.min.js) - JavaScript loader only
- [Github Repository](https://github.com/headjs/headjs) - all sources
+[Release notes](https://github.com/headjs/headjs/commits/master)
+
My (humble) goal is to have Head JS available on Google's CDN. This is only possible if you [give a star](http://code.google.com/p/google-ajax-apis/issues/detail?id=548).
---
-### What's new in 0.9
-
-- The biggest and greatest feature is that `head.ready()` and `head()` calls
- now wait for the document object model (DOM) to be ready. So you can
- safely start scripting your page with those calls. No need to load an
- external library such as jQuery to support this.
-
-- New API call 'head.ready("dom", callback) to know when DOM is ready.
-
-- Detection of custom fonts with "fontface" and "no-fontface" CSS class
- names.
-
-- Bug fixes. Full list of commits can be found
- [here](https://github.com/headjs/headjs/commits/master)
-
-
-This is the final release before the official 1.0. Please
-[report](https://github.com/headjs/headjs/issues) all issues you find.
-
### Issues
There is no way to detect if script loading failed in IE. For that reason a
@@ -749,6 +732,6 @@
Expect *not* to see extensive CSS3 feature detection, dynamic CSS loading or
more complex JS loading developed. These can be build on _top_ of Head JS. A
-separate module or extension. If you have an idea pleace consider this first.
+separate module or extension. If you have an idea please consider this first.
===/download===
View
85 content/media/css/headcss.styl
@@ -226,3 +226,88 @@ button
&:active
box-shadow 3px, #0066FF
+
+
+
+.code figcaption {
+ float: right;
+ margin: -17px 10px 0 0;
+ color: #CCC;
+ font-size: 11px;
+ text-shadow: 0 0 1px white;
+}
+
+.highlight { overflow-x:auto; } /* container */
+
+/* COMMENTS */
+.c, .cm { color: #998; font-style: italic }
+.err { color: #a61717; background-color: #e3d2d2 } /* Error */
+.k, .o { font-weight: bold } /* Keyword */
+.o { font-weight: bold } /* Operator */
+.cp { color: #999; font-weight: bold } /* Preproc */
+.c1 { color: #998; font-style: italic } /* Single */
+.cs { color: #999; font-weight: bold; font-style: italic } /* Special */
+
+
+/* STRING */
+.s { color: #d14 }
+.ow { font-weight: bold }
+.w { color: #bbb }
+
+
+/* NUMBERS: number, int, float, hex, oct, long */
+.m, .mi,.mf,.mh,.mo,.il {
+ color: #099
+}
+
+/* LITERALS: backtick, char, doc, double, espace, heredoc, interpol, other, single */
+.sb, .sc, .sd, .s2, .se, .sh, .si, .sx, s1 {
+ color: #d14
+}
+
+.sr { color: #009926 } /* Regex */
+.ss { color: #990073 } /* Symbol */
+
+/* KEYWORDS: constant, declaration, pseudo, reserved, type */
+.kc, .kd, .kp, .kr, .kt {
+ font-weight: bold
+}
+
+.kt { color: #445588 }
+
+
+/* VARIABLES: class, global, instance, attribute */
+.vc, .vg, .vi, .na {
+ color: #008080
+}
+
+/* NAMES */
+.na { color: #008080 } /* Attribute */
+.nb { color: #0086B3 } /* Builtin */
+.nc { color: #445588; font-weight: bold } /* Class */
+.ne { color: #900; font-weight: bold } /* Exception */
+.nf { color: #900; font-weight: bold } /* Function */
+.nn { color: #555 } /* Namespace */
+.no { color: #008080 } /* Constant */
+.ni { color: #800080 } /* Entity */
+.nt { color: #000080 } /* Tag */
+.nv { color: #008080 } /* Variable */
+
+
+/* Name.Builtin.Pseudo */
+.bp { color: #999 }
+
+
+/* GENERIC */
+.gd { color: #000; background-color: #ffdddd } /* Deleted */
+.gd .x { color: #000; background-color: #ffaaaa } /* Deleted.Specific */
+.ge { font-style: italic } /* Emph */
+.gr { color: #a00 } /* Error */
+.gh { color: #999 } /* Heading */
+.gi { color: #000; background-color: #ddffdd } /* Inserted */
+.gi .x { color: #000; background-color: #aaffaa } /* Inserted.Specific */
+.go { color: #888 } /* Output */
+.gp { color: #555 } /* Prompt */
+.gs { font-weight: bold } /* Strong */
+.gu { color: #aaaaaa } /* Subheading */
+.gt { color: #a00 } /* Traceback */
View
11 content/media/css/style.styl
@@ -3,7 +3,7 @@
html {
background-color:#f9f9f9;
}
-
+
body {
margin:50px auto;
width:982px;
@@ -17,15 +17,16 @@ body {
right: 0;
}
+#content {
+ padding-top:45px;
+}
+
#content, #hero, .highlight {
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
border-radius: 5px;
}
#content, #hero {
- -moz-box-shadow: 0 0 5px rgba(0,0,0,.2);
- -webkit-box-shadow: 0 0 5px rgba(0,0,0,.2);
+ box-shadow: 5px rgba(0,0,0,.2);
}
#hero {
View
2 layout/head.j2
@@ -4,7 +4,7 @@
<nav>
{% for link in ["highlights", "theory", "usage", "api"] -%}
-<a href="#{{ link }}">{{ link }}</a>
+<a href="#{{ link }}">{{ link }}</a> &bull;
{%- endfor %}
<a href="#download">download <strong> (v {{meta.version}})</strong></a>
</nav>

0 comments on commit 246d461

Please sign in to comment.
Something went wrong with that request. Please try again.