Permalink
Browse files

First commit!

  • Loading branch information...
0 parents commit 48da0e64f876f94e5ec1125a5fc9391f3dcfb521 @brianloveswords committed Jan 22, 2011
Showing with 14,473 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +220 −0 .htaccess
  3. +22 −0 404.html
  4. +129 −0 README.markdown
  5. BIN apple-touch-icon.png
  6. +3 −0 build/build.properties
  7. +428 −0 build/build.xml
  8. +73 −0 build/createproject.sh
  9. +52 −0 build/default.properties
  10. BIN build/tools/htmlcompressor-0.9.3.jar
  11. BIN build/tools/jpegtran.exe
  12. +21 −0 build/tools/optipng-0.6.4-exe/LICENSE.txt
  13. +2 −0 build/tools/optipng-0.6.4-exe/OptiPNG.url
  14. +32 −0 build/tools/optipng-0.6.4-exe/doc/caveat.txt
  15. +318 −0 build/tools/optipng-0.6.4-exe/doc/history.txt
  16. +677 −0 build/tools/optipng-0.6.4-exe/doc/manual.html
  17. BIN build/tools/optipng-0.6.4-exe/doc/manual.pdf
  18. +280 −0 build/tools/optipng-0.6.4-exe/doc/manual.txt
  19. +634 −0 build/tools/optipng-0.6.4-exe/doc/png_optimization_guide.html
  20. +325 −0 build/tools/optipng-0.6.4-exe/doc/thanks.html
  21. +57 −0 build/tools/optipng-0.6.4-exe/doc/todo.txt
  22. BIN build/tools/optipng-0.6.4-exe/optipng.exe
  23. BIN build/tools/yuicompressor-2.4.2.jar
  24. +25 −0 crossdomain.xml
  25. +8 −0 css/handheld.css
  26. +283 −0 css/style.css
  27. +537 −0 demo/elements.html
  28. +85 −0 demo/hack.css
  29. +41 −0 demo/hack2.css
  30. BIN demo/internet_explorer.png
  31. BIN demo/test_tubes.png
  32. +312 −0 demo/tests.html
  33. BIN favicon.ico
  34. +3 −0 images/.gitignore
  35. +94 −0 index.html
  36. +13 −0 js/libs/dd_belatedpng.js
  37. +6,240 −0 js/libs/jquery-1.4.2.js
  38. +154 −0 js/libs/jquery-1.4.2.min.js
  39. +30 −0 js/libs/modernizr-1.6.min.js
  40. +3 −0 js/mylibs/.gitignore
  41. +40 −0 js/plugins.js
  42. BIN js/profiling/charts.swf
  43. +59 −0 js/profiling/config.js
  44. +7 −0 js/profiling/yahoo-profiling.css
  45. +39 −0 js/profiling/yahoo-profiling.min.js
  46. +26 −0 js/script.js
  47. +108 −0 nginx.conf
  48. +5 −0 robots.txt
  49. +31 −0 test/index.html
  50. +148 −0 test/qunit/qunit.css
  51. +1,265 −0 test/qunit/qunit.js
  52. +1,436 −0 test/tests.js
  53. +204 −0 web.config
@@ -0,0 +1,4 @@
+.svn/
+publish/
+build/buildinfo.properties
+.DS_Store
220 .htaccess
@@ -0,0 +1,220 @@
+# Apache configuration file
+# httpd.apache.org/docs/2.2/mod/quickreference.html
+
+# Techniques in here adapted from all over, including:
+# Kroc Camen: camendesign.com/.htaccess
+# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/
+
+
+# Force the latest IE version, in various cases when it may fall back to IE7 mode
+# github.com/rails/rails/commit/123eb25#commitcomment-118920
+# Use ChromeFrame if it's installed for a better experience for the poor IE folk
+<IfModule mod_setenvif.c>
+ <IfModule mod_headers.c>
+ BrowserMatch MSIE ie
+ Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
+ </IfModule>
+</IfModule>
+
+<IfModule mod_headers.c>
+# Because X-UA-Compatible isn't sent to non-IE (to save header bytes),
+# We need to inform proxies that content changes based on UA
+ Header append Vary User-Agent
+# Cache control is set only if mod_headers is enabled, so that's unncessary to declare
+</IfModule>
+
+# hacks.mozilla.org/2009/07/cross-site-xmlhttprequest-with-cors/
+# Disabled. Uncomment to serve cross-domain ajax requests
+#<IfModule mod_headers.c>
+# Header set Access-Control-Allow-Origin "*"
+#</IfModule>
+
+
+
+
+# allow access from all domains for webfonts
+# alternatively you could only whitelist
+# your subdomains like "sub.domain.com"
+
+<FilesMatch "\.(ttf|otf|eot|woff|font.css)$">
+ <IfModule mod_headers.c>
+ Header set Access-Control-Allow-Origin "*"
+ </IfModule>
+</FilesMatch>
+
+
+# video
+AddType video/ogg ogg ogv
+AddType video/mp4 mp4
+AddType video/webm webm
+
+# Proper svg serving. Required for svg webfonts on iPad
+# twitter.com/FontSquirrel/status/14855840545
+AddType image/svg+xml svg svgz
+AddEncoding gzip svgz
+
+# webfonts
+AddType application/vnd.ms-fontobject eot
+AddType font/truetype ttf
+AddType font/opentype otf
+AddType font/woff woff
+
+# assorted types
+AddType image/vnd.microsoft.icon ico
+AddType image/webp webp
+AddType text/cache-manifest manifest
+AddType text/x-component htc
+AddType application/x-chrome-extension crx
+
+
+
+
+# allow concatenation from within specific js and css files
+
+# e.g. Inside of script.combined.js you could have
+# <!--#include file="jquery-1.4.2.js" -->
+# <!--#include file="jquery.idletimer.js" -->
+# and they would be included into this single file
+
+# this is not in use in the boilerplate as it stands. you may
+# choose to name your files in this way for this advantage
+# or concatenate and minify them manually.
+# Disabled by default.
+
+# <FilesMatch "\.combined\.(js|css)$">
+# Options +Includes
+# SetOutputFilter INCLUDES
+# </FilesMatch>
+
+
+
+
+
+# gzip compression.
+<IfModule mod_deflate.c>
+
+# html, txt, css, js, json, xml, htc:
+ AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
+ AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
+ AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
+
+# webfonts and svg:
+ <FilesMatch "\.(ttf|otf|eot|svg)$" >
+ SetOutputFilter DEFLATE
+ </FilesMatch>
+</IfModule>
+
+
+
+# these are pretty far-future expires headers
+# they assume you control versioning with cachebusting query params like
+# <script src="application.js?20100608">
+# additionally, consider that outdated proxies may miscache
+# www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/
+
+# if you don't use filenames to version, lower the css and js to something like
+# "access plus 1 week" or so
+
+<IfModule mod_expires.c>
+ Header set Cache-Control "public"
+ ExpiresActive on
+
+# Perhaps better to whitelist expires rules? Perhaps.
+ ExpiresDefault "access plus 1 month"
+
+# cache.manifest needs re-requests in FF 3.6 (thx Remy ~Introducing HTML5)
+ ExpiresByType text/cache-manifest "access plus 0 seconds"
+
+# your document html
+ ExpiresByType text/html "access plus 0 seconds"
+
+# data
+ ExpiresByType text/xml "access plus 0 seconds"
+ ExpiresByType application/xml "access plus 0 seconds"
+ ExpiresByType application/json "access plus 0 seconds"
+
+
+# rss feed
+ ExpiresByType application/rss+xml "access plus 1 hour"
+
+# favicon (cannot be renamed)
+ ExpiresByType image/vnd.microsoft.icon "access plus 1 week"
+
+# media: images, video, audio
+ ExpiresByType image/gif "access plus 1 month"
+ ExpiresByType image/png "access plus 1 month"
+ ExpiresByType image/jpg "access plus 1 month"
+ ExpiresByType image/jpeg "access plus 1 month"
+ ExpiresByType video/ogg "access plus 1 month"
+ ExpiresByType audio/ogg "access plus 1 month"
+ ExpiresByType video/mp4 "access plus 1 month"
+ ExpiresByType video/webm "access plus 1 month"
+
+# webfonts
+ ExpiresByType font/truetype "access plus 1 month"
+ ExpiresByType font/opentype "access plus 1 month"
+ ExpiresByType font/woff "access plus 1 month"
+ ExpiresByType image/svg+xml "access plus 1 month"
+ ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
+
+# css and javascript
+ ExpiresByType text/css "access plus 1 month"
+ ExpiresByType application/javascript "access plus 1 month"
+ ExpiresByType text/javascript "access plus 1 month"
+</IfModule>
+
+
+
+
+# Since we're sending far-future expires, we don't need ETags for
+# static content.
+# developer.yahoo.com/performance/rules.html#etags
+FileETag None
+
+
+
+
+# Allow cookies to be set from iframes (for IE only)
+# If needed, uncomment and specify a path or regex in the Location directive
+
+# <IfModule mod_headers.c>
+# <Location />
+# Header set P3P "policyref=\"/w3c/p3p.xml\", CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\""
+# </Location>
+# </IfModule>
+
+
+# you probably want www.example.com to forward to example.com -- shorter URLs are sexier.
+# no-www.org/faq.php?q=class_b
+<IfModule mod_rewrite.c>
+ RewriteEngine On
+ RewriteCond %{HTTPS} !=on
+ RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
+ RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
+</IfModule>
+
+# without -MultiViews, Apache will give a 404 for a rewrite if a folder of the same name does not exist
+# e.g. /blog/hello : webmasterworld.com/apache/3808792.htm
+Options -MultiViews
+# -Indexes will have Apache block users from browsing folders without a default document
+# Options -Indexes
+
+
+
+# custom 404 page
+ErrorDocument 404 /404.html
+
+
+
+# use utf-8 encoding for anything served text/plain or text/html
+AddDefaultCharset utf-8
+# force utf-8 for a number of file formats
+AddCharset utf-8 .html .css .js .xml .json .rss
+
+
+
+# We don't need to tell everyone we're apache.
+ServerSignature Off
+
+
+
@@ -0,0 +1,22 @@
+<!doctype html>
+<title>not found</title>
+
+<style>
+body { text-align: center;}
+h1 { font-size: 50px; }
+body { font: 20px Constantia, 'Hoefler Text', "Adobe Caslon Pro", Baskerville, Georgia, Times, serif; color: #999; text-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5); }
+::-moz-selection{ background:#FF5E99; color:#fff; }
+::selection { background:#FF5E99; color:#fff; }
+details { display:block; }
+a { color: rgb(36, 109, 56); text-decoration:none; }
+a:hover { color: rgb(96, 73, 141) ; text-shadow: 2px 2px 2px rgba(36, 109, 56, 0.5); }
+span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; }
+</style>
+
+
+
+
+<details>
+ <summary><h1>Not found</h1></summary>
+ <p><span frown>:(</span></p>
+</details>
@@ -0,0 +1,129 @@
+# HTML5 Boilerplate [http://html5boilerplate.com](http://html5boilerplate.com)
+
+## Changelog:
+
+### v.0.9.5 : October 25th, 2010
+
+Major changes:
+
+<ul>
+<li>Removed <code>-webkit-font-smoothing: antialiased;</code> it makes monospace too thin.</li>
+<li>IE conditional classes have moved from the <code>&lt;body&gt;</code> tag to the <code>&lt;html&gt;</code> tag ( #44 ).</li>
+<li>Dropped <code>text-rendering: <a href="http://www.aestheticallyloyal.com/public/optimize-legibility/">optimizeLegibility</a></code> as it breaks small-caps, looks odd on Linux machines, and goes invisible on WebOS.</li>
+<li>Added a IE6 call for the minified <code>dd_belatedpng</code>.</li>
+<li>Revised viewport declaration to allow user scaling and clear Webkit console errors ( #37 ).</li>
+<li>Updated Modernizr to 1.6 </li>
+<li>Added <code>web.config</code> file for Microsoft IIS</li>
+<li>Beta release of the <a href="http://github.com/paulirish/html5-boilerplate/wiki/Build-script ">Build Script</a> (this is HUGE)</li>
+<li>New project scaffolding <a href="http://github.com/paulirish/html5-boilerplate/wiki/makep.sh">bash script</a>.</li>
+<li><a href="http://github.com/paulirish/html5-boilerplate/blob/master/README.markdown">.... and over 100 other fixes and improvements.</a></li>
+</ul>
+
+#### General
+* Updated Modernizr to 1.6 (smaller and faster)
+* Added web.config file for Microsoft IIS. Now forcing latest IE version and ChromeFrame, if installed.
+* Added favicon and default icon for iOS.
+* Updated crossdomain.xml wording for better security guidelines ( #124 ).
+* Expires value for nginx.conf corrected.
+* License clarified.
+
+#### style.css
+* Removed -webkit-font-smoothing: antialiased; as it made monospace too thin.
+* Updated fonts normalization to YUI 3.2.0 PR1.
+* Table Header set explicitly for IE6 and table row now has page-break: avoid in print CSS.
+* text-shadow:none !important set for all text in print css.
+* Removed scrollbar from textareas in IE.
+* Fixed textarea stylings and form field treatment for validity. Added default background-color.
+* New robust clearfix solution without IE 5.5 hack ( #45 #126 ).
+* Margins for form-elements explicitly set to 0 as webkit adds 2px space around form elements' chrome.
+* Dropped text-rendering: optimizeLegibility as it breaks small-caps and looks odd on Linux machines.
+* Lists now have a left margin of 1.8em. Default list-style-type for ordered list is decimal.
+* Image Replacement now works with right-to-left text ( #68 ).
+* Removed "Star Hack" for checkboxes in favor of .ie7 selector.
+
+#### index.html
+* IE conditional classes have moved from the <body> tag to the <html> tag ( #44 ).
+* Added a IE6 call for the minified dd_belatedpng.
+* Google Analytics script will now work with SSL in IE6.
+* Added protocol independent absolute path for cdn jquery, with improved fallback-to-local code to protect against edge case IE bug.
+* Commented out handheld CSS ( #73 ).
+* Mobile viewport and textsize styles adjusted per group feedback ( #37 ).
+
+#### .htaccess
+* More files are served via gzip like .htc ( #55 ).
+* Added Expires header for content types image/gif and video/webm.
+* Fixed favicon display in IE6 ( #113 ).
+* Corrected mimetypes for fonts.
+* Removed caching for files of type json/xml.
+* Better use of ifmodule for more stability in different Apache environments.
+
+[View full diff and commit history](http://github.com/paulirish/html5-boilerplate/compare/v0.9.1)
+
+
+#### Contributors
+Shi Chuan, Rob Larsen, Ivan Nikolić, Mikko Tikkanen, Paul Neave, Weston Ruter, Jeffrey Barke, Robert Meissner, SirFunk, Philip von Bargen, Kroc Camen, Andreas Madsen, Marco d'Itri, Adeelejaz, James Rosen, Dave DeSandro, Ken Newman, Swaroop C H, Yann Mainier, Joe Sak, Irakli, Rob Flaherty, Jeff Starr, Mike Lamb, Holek, Aaron Peters, Kaelig, Meander, Charlie Ussery, Ciney, Région Wallonne and Paul Hayes.
+
+
+### v.0.9.1 : August 13th, 2010
+* HTML5 Boilerplate is now in the Public Domain
+* Nginx configuration added
+* Font stacks (sans-serif and monospace) simplified
+* Very accessible a:focus styles.
+* Corrected IE=edge,chromeframe enabling (As a result, the base HTML [does not validate](http://bit.ly/cGSSgr))
+* ServerSideIncludes disabled by default.
+* Apache config bugfixes
+* Conditional body tag class combined
+* dd_belatedPNG updated to 0.0.8. Redundant BackgroundImageCache fix removed.
+
+[View full diff and commit history](http://github.com/paulirish/html5-boilerplate/compare/v0.9...v0.9.1)
+
+##### Thanks:
+
+voodootikigod, garowetz, fearphage, christopherjacob, mathias byenens, daniel harttman, rse, chris dary, erik dahlstrom, timwillison, ken nordahl, riddle, elcuervo, andreas kuckartz, 3rdEden, riley willis, majic3
+
+### v0.9 : August 10th, 2010 - Initial release
+
+
+## License:
+
+Major components:
+
+* Modernizr: MIT/BSD license
+* jQuery: MIT/GPL license
+* DD_belatedPNG: MIT license
+* YUI Profiling: BSD license
+* HTML5Doctor CSS reset: Creative Commons 3.0 BY
+* CSS Reset Reloaded: Public Domain
+
+Everything else:
+
+* [The Unlicense](http://unlicense.org) (aka: public domain)
+
+
+## Summary:
+
+This is a set of files that a front-end developer can use to get started on a website, with following included:
+
+1. Cross-browser compatible (IE6, yeah we got that.)
+2. HTML5 ready. Use the new tags with certainty.
+3. Optimal caching and compression rules for grade-A performance
+4. Best practice site configuration defaults
+5. Think there's too much? The HTML5 Boilerplate is delete-key friendly. :)
+6. Mobile browser optimizations
+7. Progressive enhancement graceful degredation ........ yeah yeah we got that
+8. IE specific classes for maximum cross-browser control
+9. Want to write unit tests but lazy? A full, hooked up test suite is waiting for you.
+10. Javascript profiling.. in IE6 and IE7? Sure, no problem.
+11. Console.log nerfing so you won't break anyone by mistake.
+12. Never go wrong with your doctype or markup!
+13. An optimal print stylesheet, performance optimized
+14. iOS, Android, Opera Mobile-adaptable markup and CSS skeleton.
+15. IE6 pngfix baked in.
+16. jQuery, waiting for you
+
+## Releases
+
+There are two releases: a documented release, which is exactly what you see here, and a "stripped" release, with most of the descriptive comments stripped out.
+
+Watch the [current tickets](http://github.com/paulirish/html5-boilerplate/issues) to view the areas of active development.
+
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,3 @@
+# build.properties file defines overrides for default.properties
+# Explaination: This file should be created by each user as and when he or she needs to override particular values.
+# Consequently, it should not be placed under version control.
Oops, something went wrong.

0 comments on commit 48da0e6

Please sign in to comment.