Permalink
Browse files

getting ready for 1.0.0

  • Loading branch information...
1 parent 87923a4 commit fab75601a6aa763c08d007597dce0de90ad3e82d @robert-hoffmann robert-hoffmann committed Nov 5, 2013
Showing with 17,745 additions and 9,757 deletions.
  1. +63 −0 .gitattributes
  2. +88 −0 .jshintrc
  3. +7 −0 .travis.yml
  4. +12 −0 Gruntfile.js
  5. +65 −0 README.md
  6. +2 −2 _config.yml
  7. +49 −0 _includes/api/1.0.0/browser.html
  8. +75 −0 _includes/api/1.0.0/configuration.html
  9. +327 −0 _includes/api/1.0.0/features.html
  10. +63 −0 _includes/api/1.0.0/html5.html
  11. +99 −0 _includes/api/1.0.0/load.html
  12. +100 −0 _includes/api/1.0.0/ready.html
  13. +47 −0 _includes/api/1.0.0/responsive.html
  14. +47 −0 _includes/api/1.0.0/router.html
  15. +62 −0 _includes/api/1.0.0/screen.html
  16. +63 −0 _includes/api/1.0.0/setup.html
  17. +5 −5 _includes/content/builder.html
  18. +4 −4 _includes/sections/download.html
  19. +10 −11 _includes/sections/featured.html
  20. +11 −11 _includes/sections/footer.html
  21. +8 −7 _includes/sections/menu.html
  22. +37 −45 _layouts/main.html
  23. +1 −1 _layouts/old.html
  24. +9 −14 _posts/2013-05-20-Migrating-to-Jekyll.md
  25. +60 −0 _posts/2013-11-04-HeadJS-v1.00.md
  26. +17 −0 dist/0.97a/README.md
  27. +276 −0 dist/0.97a/head.core.js
  28. +1 −0 dist/0.97a/head.core.min.js
  29. +425 −0 dist/0.97a/head.css3.js
  30. +1 −0 dist/0.97a/head.css3.min.js
  31. +836 −0 dist/0.97a/head.js
  32. +411 −0 dist/0.97a/head.load.js
  33. +1 −0 dist/0.97a/head.load.min.js
  34. 0 {site/assets/libs/headjs → dist}/0.97a/head.min.js
  35. +17 −0 dist/0.98/README.md
  36. +33 −46 site/assets/libs/headjs/1.00/core.js → dist/0.98/head.core.js
  37. +6 −0 dist/0.98/head.core.min.js
  38. +33 −49 dist/{ → 0.98}/head.css3.js
  39. +9 −0 dist/0.98/head.css3.min.js
  40. +343 −248 {site/assets/libs/headjs/2.00 → dist/0.98}/head.js
  41. +95 −91 {site/assets/libs/headjs/2.00 → dist/0.98}/head.load.js
  42. +8 −0 dist/0.98/head.load.min.js
  43. 0 {site/assets/libs/headjs → dist}/0.98/head.min.js
  44. +17 −0 dist/0.99/README.md
  45. +57 −63 {src → dist/0.99}/head.core.js
  46. +5 −0 dist/0.99/head.core.js.bundle
  47. +2 −0 dist/0.99/head.core.min.js
  48. +8 −0 dist/0.99/head.core.min.js.map
  49. +475 −0 dist/0.99/head.css3.js
  50. +6 −0 dist/0.99/head.css3.js.bundle
  51. +2 −0 dist/0.99/head.css3.min.js
  52. +8 −0 dist/0.99/head.css3.min.js.map
  53. +254 −245 dist/{ → 0.99}/head.js
  54. +7 −0 dist/0.99/head.js.bundle
  55. +138 −130 dist/{ → 0.99}/head.load.js
  56. +5 −0 dist/0.99/head.load.js.bundle
  57. +2 −0 dist/0.99/head.load.min.js
  58. +8 −0 dist/0.99/head.load.min.js.map
  59. +2 −0 dist/0.99/head.min.js
  60. +8 −0 dist/0.99/head.min.js.map
  61. +3 −3 dist/{nuget/HeadJS.0.99.nuspec → 0.99/head.nuspec}
  62. +309 −0 dist/1.0.0/head.core.js
  63. +5 −0 dist/1.0.0/head.core.js.bundle
  64. +2 −0 dist/1.0.0/head.core.min.js
  65. +8 −0 dist/1.0.0/head.core.min.js.map
  66. +475 −0 dist/1.0.0/head.css3.js
  67. +6 −0 dist/1.0.0/head.css3.js.bundle
  68. +2 −0 dist/1.0.0/head.css3.min.js
  69. +8 −0 dist/1.0.0/head.css3.min.js.map
  70. +263 −244 {site/assets/libs/headjs/1.00 → dist/1.0.0}/head.js
  71. +7 −0 dist/1.0.0/head.js.bundle
  72. +53 −51 {src → dist/1.0.0}/head.load.js
  73. +5 −0 dist/1.0.0/head.load.js.bundle
  74. +2 −0 dist/1.0.0/head.load.min.js
  75. +8 −0 dist/1.0.0/head.load.min.js.map
  76. +2 −0 dist/1.0.0/head.min.js
  77. +8 −0 dist/1.0.0/head.min.js.map
  78. +50 −0 dist/1.0.0/head.nuspec
  79. +0 −10 dist/head.core.min.js
  80. +0 −20 dist/head.css3.min.js
  81. +0 −10 dist/head.load.min.js
  82. +0 −30 dist/head.min.js
  83. BIN site/assets/img/logos/32x32.png → favicon.png
  84. +28 −2 new.html → index-v2.00.html
  85. +162 −828 index.html
  86. +25 −0 jekyll-windows.txt
  87. +832 −0 old.html
  88. +121 −0 site/api/v1.00.html
  89. +24 −24 site/{api-documentation.html → api/v2.00.html}
  90. +312 −191 site/assets/css/common.css
  91. +440 −0 site/assets/css/common.less
  92. +1 −1 site/assets/css/common.min.css
  93. +1 −0 site/assets/css/old.min.css
  94. BIN site/assets/img/32x32.png
  95. BIN site/assets/img/7109d03e35ffadd92efdf45ae37fbd1a.zip
  96. BIN site/assets/img/favicon.gif
  97. BIN site/assets/img/favicon.png
  98. BIN site/assets/img/featured.gif
  99. BIN site/assets/img/featured/net.tutsplus.com-small.png
  100. BIN site/assets/img/featured/net.tutsplus.com.gif
  101. BIN site/assets/img/featured/netmagazine.com-small.png
  102. BIN site/assets/img/featured/noupe.com-small.png
  103. BIN site/assets/img/featured/smashing-apps.com-small.png
  104. BIN site/assets/img/featured/smashingmagazine.com-small.png
  105. BIN site/assets/img/featured/speckyboy.com-small.png
  106. BIN site/assets/img/featured/webappers.com-small.png
  107. BIN site/assets/img/head-empty.pdn
  108. BIN site/assets/img/head-empty.png
  109. BIN site/assets/img/head-empty2.png
  110. BIN site/assets/img/head.png
  111. BIN site/assets/img/head2.png
  112. BIN site/assets/img/headjs-balanced.gif
  113. BIN site/assets/img/headjs.gif
  114. BIN site/assets/img/headsssss.png
  115. BIN site/assets/img/hero.gif
  116. BIN site/assets/img/hero.jpg
  117. BIN site/assets/img/logo-big.png
  118. BIN site/assets/img/logo-small.jpg
  119. BIN site/assets/img/logo.jpg
  120. BIN site/assets/img/logos/favicon.gif
  121. BIN site/assets/img/logos/favicon.png
  122. BIN site/assets/img/logos/head-empty.png
  123. BIN site/assets/img/logos/head.png
  124. BIN site/assets/img/logos/head2.png
  125. BIN site/assets/img/logos/headjs-balanced.gif
  126. BIN site/assets/img/logos/headjs.gif
  127. BIN site/assets/img/logos/hero.gif
  128. BIN site/assets/img/logos/hero.jpg
  129. BIN site/assets/img/logos/logo-small.jpg
  130. BIN site/assets/img/logos/logo.jpg
  131. BIN site/assets/img/logos/{head-empty2.png → logo.png}
  132. BIN site/assets/img/social/browserscope.png
  133. BIN site/assets/img/social/github-gray.png
  134. BIN site/assets/img/social/html5-css3-gray.png
  135. BIN site/assets/img/social/{HTML5+CSS3.png → html5-css3.png}
  136. BIN site/assets/img/social/sprite-social.png
  137. BIN site/assets/img/social/stackoverflow-gray.png
  138. BIN site/assets/img/social/twitter-gray.png
  139. BIN site/assets/img/social/uservoice-gray.png
  140. BIN site/assets/img/social/zip.png
  141. +12 −2 site/assets/js/comments.js
  142. +2 −0 site/assets/js/comments.min.js
  143. +8 −0 site/assets/js/comments.min.js.map
  144. 0 site/assets/libs/{headjs/tools → builder}/builder.css
  145. +6 −6 site/assets/libs/{headjs/tools → builder}/builder.html
  146. +3 −3 site/assets/libs/{headjs/tools → builder}/builder.js
  147. +1 −0 site/assets/libs/builder/builder.min.css
  148. +2 −0 site/assets/libs/builder/builder.min.js
  149. +8 −0 site/assets/libs/builder/builder.min.js.map
  150. +0 −30 site/assets/libs/headjs/0.99/head.min.js
  151. +0 −11 site/assets/libs/headjs/1.00/changelog.txt
  152. +0 −30 site/assets/libs/headjs/1.00/head.min.js
  153. +0 −11 site/assets/libs/headjs/2.00/changelog.txt
  154. 0 site/assets/libs/headjs/2.00/head.features.js
  155. +0 −9 site/assets/libs/headjs/2.00/head.js.bundle
  156. +0 −2 site/assets/libs/headjs/2.00/head.min.js
  157. +0 −8 site/assets/libs/headjs/2.00/head.min.js.map
  158. +0 −1 site/assets/libs/headjs/2.00/head.monitoring.js
  159. +0 −1 site/assets/libs/headjs/2.00/head.ready.js
  160. +0 −357 site/assets/libs/headjs/2.00/head.responsive.js
  161. +0 −6 site/assets/libs/jquery/jquery-1.10.0-beta1.min.js
  162. +5,820 −5,323 site/assets/libs/jquery/{jquery-1.10.0-beta1.js → jquery.js}
  163. +2 −0 site/assets/libs/jquery/jquery.min.js
  164. +8 −0 site/assets/libs/jquery/jquery.min.js.map
  165. +2 −0 site/assets/libs/packer/base2.min.js
  166. +8 −0 site/assets/libs/packer/base2.min.js.map
  167. +2 −0 site/assets/libs/packer/packer.min.js
  168. +8 −0 site/assets/libs/packer/packer.min.js.map
  169. +2 −0 site/assets/libs/packer/words.min.js
  170. +8 −0 site/assets/libs/packer/words.min.js.map
  171. +2 −0 site/assets/libs/qunit/qunit-assert-step.min.js
  172. +8 −0 site/assets/libs/qunit/qunit-assert-step.min.js.map
  173. +1 −1 site/assets/libs/qunit/{qunit-1.11.0.css → qunit.css}
  174. +161 −101 site/assets/libs/qunit/{qunit-1.11.0.js → qunit.js}
  175. +1 −0 site/assets/libs/qunit/qunit.min.css
  176. +2 −0 site/assets/libs/qunit/qunit.min.js
  177. +8 −0 site/assets/libs/qunit/qunit.min.js.map
  178. +12 −16 site/blog.html
  179. +32 −0 site/documentation.html
  180. +0 −122 site/download-builder.html
  181. +122 −0 site/download.html
  182. +1 −1 site/forum.html
  183. +87 −0 site/resources.html
  184. +18 −12 site/{unit-tests.html → unit.html}
  185. +36 −1 sitemap.xml
  186. +3 −0 src/0.97a/README.md
  187. +13 −0 src/0.97a/changelog.txt
  188. +275 −0 src/0.97a/core.js
  189. +149 −0 src/0.97a/css3.js
  190. +411 −0 src/0.97a/load.js
  191. +3 −0 src/0.98/README.md
  192. +26 −0 src/0.98/changelog.txt
  193. +32 −47 dist/head.core.js → src/0.98/core.js
  194. +1 −3 {site/assets/libs/headjs/1.00 → src/0.98}/css3.js
  195. +619 −0 src/0.98/load.js
  196. +3 −0 src/0.99/README.md
  197. +3 −28 { → src/0.99}/changelog.txt
  198. +308 −0 src/0.99/core.js
  199. +35 −28 src/{head.features.js → 0.99/css3.js}
  200. +136 −129 {site/assets/libs/headjs/1.00 → src/0.99}/load.js
  201. +3 −0 src/1.0.0/README.md
  202. +77 −0 src/1.0.0/changelog.txt
  203. +308 −0 src/1.0.0/core.js
  204. +165 −0 src/1.0.0/css3.js
  205. +685 −0 src/1.0.0/load.js
  206. +0 −39 src/features/README.md
  207. +0 −22 src/features/browser/flash.json
  208. +0 −7 src/features/browser/geolocation.json
  209. +0 −7 src/features/browser/hashChange.json
  210. +0 −7 src/features/browser/history.json
  211. +0 −18 src/features/browser/localStorage.json
  212. +0 −24 src/features/browser/silverlight.json
  213. +0 −12 src/features/browser/userData.json
  214. +0 −7 src/features/css/border-image.json
  215. +0 −7 src/features/css/border-radius.json
  216. +0 −7 src/features/css/box-reflect.json
  217. +0 −7 src/features/css/box-shadow.json
  218. +0 −35 src/features/css/font-face.json
  219. +0 −17 src/features/css/gradient.json
  220. +0 −11 src/features/css/multiple-background.json
  221. +0 −8 src/features/css/opacity.json
  222. +0 −11 src/features/css/rgba.json
  223. +0 −8 src/features/css/text-shadow.json
  224. +0 −7 src/features/css/transform.json
  225. +0 −7 src/features/css/transition.json
  226. +0 −7 src/features/device/retina.json
  227. +0 −7 src/features/device/touch.json
  228. +0 −166 src/features/inventory.json
  229. +0 −130 src/head.monitoring.js
  230. +3 −3 test/headjs-ordered.html
  231. +3 −3 test/headjs.html
  232. +2 −2 test/load.html
  233. +2 −2 test/script-bottom.html
  234. +2 −2 test/script.html
  235. +1 −0 test/style.min.css
  236. +6 −6 test/unit/0.97a/index.html
  237. +2 −2 test/unit/0.98/assets/test.css
  238. +5 −5 test/unit/0.98/index.html
  239. +2 −2 test/unit/0.99/assets/test.css
  240. +19 −0 test/unit/0.99/index-travis.html
  241. +5 −5 test/unit/0.99/index.html
  242. +6 −0 test/unit/1.0.0/assets/test.css
  243. +19 −0 test/unit/1.0.0/index-travis.html
  244. +6 −6 test/unit/{1.00 → 1.0.0}/index.html
  245. 0 test/unit/{1.00 → 1.0.0}/test.feature.js
  246. 0 test/unit/{2.00 → 1.0.0}/test.load-css.js
  247. +13 −8 test/unit/{2.00 → 1.0.0}/test.load.js
  248. 0 test/unit/{2.00 → 1.0.0}/test.responsive.js
  249. +0 −6 test/unit/1.00/assets/test.css
  250. +0 −28 test/unit/1.00/test.load-css.js
  251. +0 −297 test/unit/1.00/test.load.js
  252. +0 −20 test/unit/1.00/test.responsive.js
  253. +0 −6 test/unit/2.00/assets/test.css
  254. +0 −78 test/unit/2.00/index.html
  255. +0 −16 test/unit/2.00/test.feature.js
  256. +7 −5 test/{responsive-viewport.html → viewport-meta.html}
  257. +2 −2 test/{responsive.html → viewport.html}
View
@@ -0,0 +1,63 @@
+###############################################################################
+# Set default behavior to automatically normalize line endings.
+###############################################################################
+* text=auto
+
+###############################################################################
+# Set default behavior for command prompt diff.
+#
+# This is need for earlier builds of msysgit that does not have it on by
+# default for csharp files.
+# Note: This is only used by command line
+###############################################################################
+#*.cs diff=csharp
+
+###############################################################################
+# Set the merge driver for project and solution files
+#
+# Merging from the command prompt will add diff markers to the files if there
+# are conflicts (Merging from VS is not affected by the settings below, in VS
+# the diff markers are never inserted). Diff markers may cause the following
+# file extensions to fail to load in VS. An alternative would be to treat
+# these files as binary and thus will always conflict and require user
+# intervention with every merge. To do so, just uncomment the entries below
+###############################################################################
+#*.sln merge=binary
+#*.csproj merge=binary
+#*.vbproj merge=binary
+#*.vcxproj merge=binary
+#*.vcproj merge=binary
+#*.dbproj merge=binary
+#*.fsproj merge=binary
+#*.lsproj merge=binary
+#*.wixproj merge=binary
+#*.modelproj merge=binary
+#*.sqlproj merge=binary
+#*.wwaproj merge=binary
+
+###############################################################################
+# behavior for image files
+#
+# image files are treated as binary by default.
+###############################################################################
+#*.jpg binary
+#*.png binary
+#*.gif binary
+
+###############################################################################
+# diff behavior for common document formats
+#
+# Convert binary document formats to text before diffing them. This feature
+# is only available from the command line. Turn it on by uncommenting the
+# entries below.
+###############################################################################
+#*.doc diff=astextplain
+#*.DOC diff=astextplain
+#*.docx diff=astextplain
+#*.DOCX diff=astextplain
+#*.dot diff=astextplain
+#*.DOT diff=astextplain
+#*.pdf diff=astextplain
+#*.PDF diff=astextplain
+#*.rtf diff=astextplain
+#*.RTF diff=astextplain
View
@@ -0,0 +1,88 @@
+{
+ // JSHint Configuration File for HeadJS
+ // See http://jshint.com/docs/ for more details
+ // See http://jslinterrors.com/ for error information
+ // If you have suggestions for these settings, please leave a comment on GitHub
+
+ "maxerr" : 50, // {int} Maximum error before stopping
+
+ // Enforcing
+ "bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
+ "camelcase" : true, // true: Identifiers must be in camelCase
+ "curly" : true, // true: Require {} for every new block or scope
+ "eqeqeq" : true, // true: Require triple equals (===) for comparison
+ "forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
+ "immed" : true, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
+ "indent" : 4, // {int} Number of spaces to use for indentation
+ "latedef" : true, // true: Require variables/functions to be defined before being used
+ "newcap" : true, // true: Require capitalization of all constructor functions e.g. `new F()`
+ "noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
+ "noempty" : false, // true: Prohibit use of empty blocks
+ "nonew" : true, // true: Prohibit use of constructors for side-effects (without assignment)
+ "plusplus" : false, // true: Prohibit use of `++` & `--`
+ "quotmark" : true, // Quotation mark consistency:
+ // false : do nothing (default)
+ // true : ensure whatever is used is consistent
+ // "single" : require single quotes
+ // "double" : require double quotes
+ "undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
+ "unused" : true, // true: Require all defined variables be used
+ "strict" : true, // true: Requires all functions run in ES5 Strict Mode
+ "trailing" : true, // true: Prohibit trailing whitespaces
+ "maxparams" : false, // {int} Max number of formal params allowed per function
+ "maxdepth" : false, // {int} Max depth of nested blocks (within functions)
+ "maxstatements" : false, // {int} Max number statements per function
+ "maxcomplexity" : false, // {int} Max cyclomatic complexity per function
+ "maxlen" : false, // {int} Max number of characters per line
+
+ // Relaxing
+ "asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
+ "boss" : false, // true: Tolerate assignments where comparisons would be expected
+ "debug" : false, // true: Allow debugger statements e.g. browser breakpoints.
+ "eqnull" : false, // true: Tolerate use of `== null`
+ "es5" : false, // true: Allow ES5 syntax (ex: getters and setters)
+ "esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`)
+ "moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
+ // (ex: `for each`, multiple try/catch, function expression…)
+ "evil" : false, // true: Tolerate use of `eval` and `new Function()`
+ "expr" : false, // true: Tolerate `ExpressionStatement` as Programs
+ "funcscope" : false, // true: Tolerate defining variables inside control statements"
+ "globalstrict" : false, // true: Allow global "use strict" (also enables 'strict')
+ "iterator" : false, // true: Tolerate using the `__iterator__` property
+ "lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
+ "laxbreak" : false, // true: Tolerate possibly unsafe line breakings
+ "laxcomma" : true, // true: Tolerate comma-first style coding
+ "loopfunc" : false, // true: Tolerate functions being defined in loops
+ "multistr" : false, // true: Tolerate multi-line strings
+ "proto" : false, // true: Tolerate using the `__proto__` property
+ "scripturl" : false, // true: Tolerate script-targeted URLs
+ "smarttabs" : true, // true: Tolerate mixed tabs/spaces when used for alignment
+ "shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
+ "sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
+ "supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;`
+ "validthis" : false, // true: Tolerate using this in a non-constructor function
+
+ // Environments
+ "browser" : true, // Web Browser (window, document, etc)
+ "couch" : false, // CouchDB
+ "devel" : true, // Development/debugging (alert, confirm, etc)
+ "dojo" : false, // Dojo Toolkit
+ "jquery" : false, // jQuery
+ "mootools" : false, // MooTools
+ "node" : false, // Node.js
+ "nonstandard" : false, // Widely adopted globals (escape, unescape, etc)
+ "prototypejs" : false, // Prototype and Scriptaculous
+ "rhino" : false, // Rhino
+ "worker" : false, // Web Workers
+ "wsh" : false, // Windows Scripting Host
+ "yui" : false, // Yahoo User Interface
+
+ // Legacy
+ "nomen" : false, // true: Prohibit dangling `_` in variables
+ "onevar" : false, // true: Allow only one `var` statement per function
+ "passfail" : false, // true: Stop on first error
+ "white" : false, // true: Check against strict whitespace and indentation rules
+
+ // Custom Globals
+ "globals" : {} // additional predefined global variables
+}
View
@@ -0,0 +1,7 @@
+language: node_js
+node_js:
+ - "0.11"
+before_script:
+ - npm install -g grunt-cli
+ - npm install grunt grunt-contrib-qunit
+script: grunt test -v -d
View
@@ -0,0 +1,12 @@
+module.exports = function (grunt) {
+ grunt.initConfig({
+ qunit: {
+ files: ['test/unit/1.0.0/index-travis.html']
+ }
+ });
+
+ grunt.loadNpmTasks('grunt-contrib-qunit');
+
+ // A convenient task alias.
+ grunt.registerTask('test', 'qunit');
+};
View
@@ -0,0 +1,65 @@
+![Head JS](http://headjs.com/site/assets/img/logo-big.png)
+
+This project was never announced. `git push` and it was all viral.
+
+[![Build Status](https://travis-ci.org/headjs/headjs.png?branch=master)](https://travis-ci.org/headjs/headjs)
+
+##About
+ * _Load scripts and css on demand_
+ * _Achieve responsive design with CSS that targets different screen resolutions, paths, states and browsers_
+ * _Detect various browsers and their features_
+ * _Target HTML5 and CSS3 safely_
+ * __Make it the only script in your HEAD__
+ * __A concise solution to universal problems__
+
+
+##Where
+* __WebSite__
+ * [http://headjs.com](http://headjs.com)
+* __Blog/Dev Updates__
+ * [http://www.i-technology.net](http://www.i-technology.net/search/label/headjs)
+* __Bugs/Support__
+ * [https://github.com/headjs/headjs/issues](https://github.com/headjs/headjs/issues)
+* __Get Community Help__
+ * [http://stackoverflow.com](http://stackoverflow.com/questions/tagged/head.js)
+ * _Remember to tag your questions with_: head.js
+* __Vote for Features/Suggestions__
+ * [http://headjs.uservoice.com](http://headjs.uservoice.com/forums/182905-headjs-feature-suggestions)
+
+##Updates
+
+###1.0.0 (2013-11-04)
+
+ - New: Detect Windows 8 Mobile (Surface RT/Pro), IE11, Kindle, and other Android devices
+ - New: Add Browser & Version CSS no matter what browser breakpoints are configured
+ - Example: .ff .ff20
+ - There is no need to cycle through all browser versions in 90% of cases
+ - Makes it possible to work without any breakpoints at all
+ - New: Improved CSS Router
+ - https://github.com/headjs/headjs/issues/227
+ - New: Added "main" HTML5 element to shim
+ - https://github.com/headjs/headjs/pull/230
+ - New: Enable/Disable HTML5 Shim in head_conf
+ - New: Possibility to load via array of items
+ - head.load(["file1", "file2"], callBack);
+ - https://github.com/headjs/headjs/issues/139
+ - New: Possibility to wait for multiple labels
+ - head.ready(["label1", "label2"], callBack);
+ - https://github.com/headjs/headjs/pull/212
+ - New: Load file via data attribute on HeadJS script tag
+ - data-headjs-load="configuration.js"
+ - https://github.com/headjs/headjs/pull/213
+ - New: Source map files have been added for all minified JS files
+ - Fix: Prevent loading empty strings
+ - https://github.com/headjs/headjs/pull/184
+ - Fix: CSS classes getting bigger on successive resizes under Chrome
+ - https://github.com/headjs/headjs/issues/226
+ - Fix: Invalid regular expression for CSS detection
+ - https://github.com/headjs/headjs/issues/255
+ - Fix: callback firing too early when a resource was previously loaded
+ - https://github.com/headjs/headjs/issues/262
+ - Divers: Changed window.frameElement detection
+ - https://github.com/headjs/headjs/pull/257
+ - Divers: Cleaned up a bunch of syntaxt to conform to JSHint
+ - Now using a very strict .jshintrc
+ - Divers: Added missing .gitattributes
View
@@ -1,4 +1,4 @@
head:
- release: 0.99
- beta: 2.00
+ release: '1.0.0'
+ beta: '2.0.0'
sections: ['about', 'documentation', 'tests', 'download']
@@ -0,0 +1,49 @@
+<h2 id="browser">Browser Information</h2>
+
+<div class="intro">
+ HeadJS knows certain information about the browser and exposes that information via CSS & JS
+</div>
+
+<div class="code-example" data-title="head.browser">
+ <p>These variables are accessible via JavaScript (all the time) so you can apply certain logic depending on specific use-cases</p>
+
+ <ul>
+ <li>head.browser.name (string)</li>
+ <li>head.browser.version (float)</li>
+ <li>head.browser.ie (bool)</li>
+ <li>head.browser.ff (bool)</li>
+ <li>head.browser.chrome (bool)</li>
+ <li>head.browser.ios (bool)</li>
+ <li>head.browser.android (bool)</li>
+ <li>head.browser.webkit (bool)</li>
+ <li>head.browser.opera (bool)</li>
+ </ul>
+
+{% highlight js %}
+if (head.browser.ie && head.browser.version < 9) {
+ /* code specific to IE but only if IE < 9 */
+}
+{% endhighlight %}
+
+<p>The same information is also exposed via CSS, so that you may apply CSS specific fixes</p>
+
+{% highlight css %}
+.ie8 {
+ /* code specific to IE8 */
+}
+
+.lt-ie9 {
+ /* code specific to IE but only if IE < 9 */
+}
+{% endhighlight %}
+
+ <p>No matter how HeadJS is configured, it will at least generate CSS classes for the current browser & it's version (.ie8, .ff25). Generating classes for (.lt, .lte, .gt, .gte, .eq) including full min/max ranges of browser versions is supported, but not advised since it can generate too much css. By default only current browser + version, and IE6-11 ranges are generated automagically.</p>
+
+ <p>You can select which variables are exposed via CSS in the <a href="#configuration">configuration</a> section.</p>
+
+ <div style="width:100%;">
+ <div onclick="blog.loadComments(this, 'api/1.0.0/browser', 'Leave a comment')" style="cursor: pointer;">
+ <h2>Show Comments</h2>
+ </div>
+ </div>
+</div>
@@ -0,0 +1,75 @@
+<h1 id="configuration">Configuration</h1>
+
+<div class="intro">
+ Sometimes you will want to change how HeadJS behaves by enabling or disabling certain features.
+</div>
+
+<div class="code-example" data-title="Configuration">
+ <p>This is the default configuration that HeadJS ships with</p>
+
+{% highlight js %}
+conf = {
+ screens : [240, 320, 480, 640, 768, 800, 1024, 1280, 1440, 1680, 1920],
+ screensCss: { "gt": true, "gte": false, "lt": true, "lte": false, "eq": false },
+ browsers : [
+ { ie: { min: 6, max: 11 } }
+ //,{ chrome : { min: 8, max: 31 } }
+ //,{ ff : { min: 3, max: 26 } }
+ //,{ ios : { min: 3, max: 7 } }
+ //,{ android: { min: 2, max: 4 } }
+ //,{ webkit : { min: 9, max: 12 } }
+ //,{ opera : { min: 9, max: 12 } }
+ ],
+ browserCss: { "gt": true, "gte": false, "lt": true, "lte": false, "eq": true },
+ html5 : true,
+ page : "-page",
+ section : "-section",
+ head : "head"
+};
+{% endhighlight %}
+
+ <p>If you wanted to change what screen breakpoints HeadJS uses, then you would do something like this</p>
+
+{% highlight html %}
+<html>
+ <head>
+ <script>
+ var head_conf = {
+ screens: [1024, 1280, 1440, 1680, 1920]
+ };
+ </script>
+ <script src="head.min.js"></script>
+ </head>
+ <body>
+ <!-- my content-->
+ </body>
+</html>
+{% endhighlight %}
+
+ <p>The same goes for all the other configurable variables. Just make sure <strong>var head_conf</strong> is declared BEFORE you include HeadJS.</p>
+
+ <dl>
+ <dt>screens</dt>
+ <dd>Width breakpoints for which lt,lte,gt,gte,eq can be generated (.gt-800, .lt-1680)</dd>
+ <dt>screensCss</dt>
+ <dd>Enables/Disables the actual insertion of those breakpoints into the HTML</dd>
+ <dt>browsers</dt>
+ <dd>Browser/Version breakpoints for which lt,lte,gt,gte,eq can be generated (.ie8, .lt-ie9)</dd>
+ <dt>browserCss</dt>
+ <dd>Enables/Disables the actual insertion of those breakpoints into the HTML</dd>
+ <dt>html5</dt>
+ <dd>When enabled, IE8 and less will have the &laquo; HTML5 Shim &raquo; injected, which adds compatibility for the following HTML5 elements: abbr, article, aside, audio, canvas, details, figcaption, figure, footer, header, hgroup, main, mark, meter, nav, output, progress, section, summary, time, video</dd>
+ <dt>page</dt>
+ <dd>Suffix used by the &laquo; CSS Router &raquo; when detecting pages (#v1-page)</dd>
+ <dt>section</dt>
+ <dd>Suffix used by the &laquo; CSS Router &raquo; when detecting page sections (.api-section)</dd>
+ <dt>head</dt>
+ <dd>Name of the variable that should be used for HeadJS. If set to something else like: test, you would call test.load() instead of head.load()</dd>
+ </dl>
+
+ <div style="width:100%;">
+ <div onclick="blog.loadComments(this, 'api/1.0.0/configuration', 'Leave a comment')" style="cursor: pointer;">
+ <h2>Show Comments</h2>
+ </div>
+ </div>
+</div>
Oops, something went wrong.

0 comments on commit fab7560

Please sign in to comment.