html5-starter 0.1.4b → 0.1.8b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. data/README.md +11 -113
  2. data/stylesheets/html5-boilerplate/_fonts.scss +4 -4
  3. data/stylesheets/html5-boilerplate/_handheld.scss +3 -3
  4. data/stylesheets/html5-boilerplate/_helpers.scss +14 -7
  5. data/stylesheets/html5-boilerplate/_print.scss +2 -2
  6. data/stylesheets/html5-boilerplate/_reset.scss +8 -8
  7. data/stylesheets/html5-boilerplate/_styles.scss +16 -31
  8. data/templates/project/files/404.html +37 -21
  9. data/templates/project/files/apple-touch-icon-114x114-precomposed.png +0 -0
  10. data/templates/project/files/apple-touch-icon-57x57-precomposed.png +0 -0
  11. data/templates/project/files/apple-touch-icon-72x72-precomposed.png +0 -0
  12. data/templates/project/files/apple-touch-icon-precomposed.png +0 -0
  13. data/templates/project/files/apple-touch-icon.png +0 -0
  14. data/templates/project/files/build/build.xml +813 -628
  15. data/templates/project/files/build/config/buildinfo.properties +5 -0
  16. data/templates/project/files/build/config/default.properties +22 -21
  17. data/templates/project/files/build/config/project.properties +9 -8
  18. data/templates/project/files/build/createproject.sh +29 -52
  19. data/templates/project/files/build/runbuildscript.bat +5 -0
  20. data/templates/project/files/build/tools/htmlcompressor-1.1.jar +0 -0
  21. data/templates/project/files/build/tools/{yuicompressor-2.4.2.jar → yuicompressor-2.4.5.jar} +0 -0
  22. data/templates/project/files/gitignore.txt +6 -0
  23. data/templates/project/files/htaccess +71 -8
  24. data/templates/project/index.html +30 -31
  25. data/templates/project/javascripts/libs/dd_belatedpng.js +1 -1
  26. data/templates/project/javascripts/libs/{jquery-1.5.0.js → jquery-1.5.1.js} +549 -409
  27. data/templates/project/javascripts/libs/jquery-1.5.1.min.js +16 -0
  28. data/templates/project/javascripts/libs/modernizr-1.7.min.js +2 -0
  29. data/templates/project/javascripts/plugins.js +3 -1
  30. data/templates/project/manifest.rb +22 -59
  31. data/templates/project/style.scss +17 -0
  32. metadata +15 -44
  33. data/templates/project/files/build/config/build.properties +0 -3
  34. data/templates/project/files/build/tools/css-compressor/CSSCompression.php +0 -465
  35. data/templates/project/files/build/tools/css-compressor/changelog.txt +0 -22
  36. data/templates/project/files/build/tools/css-compressor/cli.php +0 -101
  37. data/templates/project/files/build/tools/css-compressor/helpers/hex2short-colors.json +0 -39
  38. data/templates/project/files/build/tools/css-compressor/helpers/hex2short-safe.json +0 -16
  39. data/templates/project/files/build/tools/css-compressor/helpers/long2hex-colors.json +0 -127
  40. data/templates/project/files/build/tools/css-compressor/lib/Cleanup.php +0 -218
  41. data/templates/project/files/build/tools/css-compressor/lib/Color.php +0 -199
  42. data/templates/project/files/build/tools/css-compressor/lib/Combine/Aural.php +0 -109
  43. data/templates/project/files/build/tools/css-compressor/lib/Combine/Background.php +0 -107
  44. data/templates/project/files/build/tools/css-compressor/lib/Combine/Border.php +0 -98
  45. data/templates/project/files/build/tools/css-compressor/lib/Combine/BorderOutline.php +0 -109
  46. data/templates/project/files/build/tools/css-compressor/lib/Combine/BorderRadius.php +0 -262
  47. data/templates/project/files/build/tools/css-compressor/lib/Combine/Font.php +0 -125
  48. data/templates/project/files/build/tools/css-compressor/lib/Combine/List.php +0 -104
  49. data/templates/project/files/build/tools/css-compressor/lib/Combine/MarginPadding.php +0 -190
  50. data/templates/project/files/build/tools/css-compressor/lib/Combine.php +0 -191
  51. data/templates/project/files/build/tools/css-compressor/lib/Compress.php +0 -212
  52. data/templates/project/files/build/tools/css-compressor/lib/Control.php +0 -236
  53. data/templates/project/files/build/tools/css-compressor/lib/Exception.php +0 -32
  54. data/templates/project/files/build/tools/css-compressor/lib/Format.php +0 -187
  55. data/templates/project/files/build/tools/css-compressor/lib/Individuals.php +0 -307
  56. data/templates/project/files/build/tools/css-compressor/lib/Numeric.php +0 -103
  57. data/templates/project/files/build/tools/css-compressor/lib/Option.php +0 -133
  58. data/templates/project/files/build/tools/css-compressor/lib/Organize.php +0 -149
  59. data/templates/project/files/build/tools/css-compressor/lib/Selectors.php +0 -245
  60. data/templates/project/files/build/tools/css-compressor/lib/Setup.php +0 -292
  61. data/templates/project/files/build/tools/css-compressor/lib/Trim.php +0 -213
  62. data/templates/project/files/build/tools/css-compressor/license.txt +0 -21
  63. data/templates/project/files/build/tools/htmlcompressor-0.9.8.jar +0 -0
  64. data/templates/project/files/google.yml +0 -22
  65. data/templates/project/files/lighttpd.conf +0 -149
  66. data/templates/project/files/mime.types +0 -80
  67. data/templates/project/files/nginx.conf +0 -108
  68. data/templates/project/files/web.config +0 -207
  69. data/templates/project/javascripts/libs/jquery-1.5.0.min.js +0 -16
  70. data/templates/project/javascripts/libs/modernizr-1.6.min.js +0 -30
@@ -0,0 +1,5 @@
1
+ #Build Information File - DO NOT CHANGE
2
+ #Tue, 25 Jan 2011 23:53:26 +0700
3
+
4
+ build.number=0003
5
+ build.date=25.01.2011 23\:53
@@ -1,5 +1,5 @@
1
- #
2
- # Default Build Settings
1
+ #
2
+ # Default Build Settings
3
3
  # you can override these settings on a project basis in a project.properties file
4
4
  # so probably best not to touch these as they could be overwritten in later versions!
5
5
  #
@@ -8,39 +8,40 @@
8
8
  #
9
9
  # Directory Paths
10
10
  #
11
+ dir.source = .
11
12
  dir.publish = publish
12
13
  dir.build = build
13
14
  dir.build.tools = ${dir.build}/tools
14
15
  dir.test = test
15
16
  dir.demo = demo
16
- dir.js = assets/js
17
+ dir.js = js
17
18
  dir.js.main = ${dir.js}
18
19
  # scripts in the lib direcotry will only be minified, not concatenated together
19
20
  dir.js.libs = ${dir.js}/libs
20
21
  dir.js.mylibs = ${dir.js}/mylibs
21
- dir.css = assets/css
22
- dir.images = assets/img
22
+ dir.css = css
23
+ dir.images = img
23
24
 
24
25
 
25
26
  #
26
27
  # HTML, PHP, etc files to clean and update script/css references
27
28
  #
28
- file.pages.default.include = index.html, 404.html
29
+ file.pages.default.include = index.html, 404.html
29
30
 
30
- # You will need to include the property file.pages.include in your project.properties file
31
+ # You will need to include the property file.pages.include in your project.properties file
31
32
  # and add any extra pages you want to be updated by the scripts in a comma separated list
32
33
 
33
34
 
34
- # the server configuration you're going with. If you don't use apache,
35
+ # the server configuration you're going with. If you don't use apache,
35
36
  # get a different one here: github.com/paulirish/html5-boilerplate-server-configs
36
37
 
37
- file.serverconfig = .htaccess
38
+ file.serverconfig = .htaccess
38
39
 
39
40
  #
40
41
  # Files not to be copied over by the script to the publish directory
41
42
  #
42
- file.default.exclude = .gitignore, .project, .settings, README.markdown, README.md, **/.git/**, **/.svn/**, **/${dir.build}/**, **/${dir.test}/**, **/${dir.demo}/**
43
-
43
+ file.default.exclude = .gitignore, .project, .settings, README.markdown, README.md, **/.git/**, **/.svn/**, **/${dir.build}/**, **/${dir.test}/**, **/${dir.demo}/**
44
+ file.jpg.exclude = ${dir.images}/*.jpg
44
45
  # Declare the file.exclude property in your project.properties file if you want to exclude files / folders you have added
45
46
  # Note: you cannot decalre an empty file.exclude property
46
47
 
@@ -48,32 +49,32 @@ file.default.exclude = .gitignore, .project, .settings, README.markdown, README.
48
49
  #
49
50
  # Default Stylesheet
50
51
  #
51
- file.default.stylesheets = style.css
52
+ file.default.stylesheets = style.css
52
53
 
53
54
  #
54
55
  # Script Optimisation
55
56
  #
56
57
  # If set, concat libraries with main scripts file, producing single script file
57
- build.concat.scripts = true
58
+ build.concat.scripts = true
58
59
  # If set, delete minified but unconcatted files.
59
- build.delete.unoptimized = true
60
+ build.delete.unoptimized = true
60
61
 
61
62
 
62
63
  #
63
64
  # Image Optimisation
64
65
  #
65
- images.strip.metadata = false
66
- # Seting this to true will strip the metadata from all jpeg files.
66
+ images.strip.metadata = true
67
+ # Seting this to true will strip the metadata from all jpeg files.
67
68
  # YOU SHOULD ONLY DO THIS IF YOU OWN THE COPYRIGHT TO ALL THE IMAGES IN THE BUILD
68
69
 
69
70
 
70
71
  # Build Info
71
- build.version.info = buildinfo.properties
72
- build.scripts.dir = ${dir.build}/build-scripts
72
+ build.version.info = buildinfo.properties
73
+ build.scripts.dir = ${dir.build}/build-scripts
73
74
 
74
75
  # Tools
75
- tool.yuicompressor = yuicompressor-2.4.2.jar
76
- tool.htmlcompressor = htmlcompressor-0.9.8.jar
77
- tool.csscompressor = css-compressor/cli.php
76
+ tool.yuicompressor = yuicompressor-2.4.5.jar
77
+ tool.htmlcompressor = htmlcompressor-1.1.jar
78
+ tool.csscompressor = css-compressor/cli.php
78
79
 
79
80
 
@@ -1,17 +1,18 @@
1
1
  # project.properties file defines overrides for default.properties
2
- # Explanation: This file should be created by each user as and when he or she needs to override particular values.
2
+
3
+ # Explanation: This file should be created by each user as and when he or she needs to override particular values.
3
4
  # Consequently, it should not be placed under version control.
4
5
 
5
6
 
6
7
  # Stylesheets
7
8
  #
8
- # Note: Stylesheets will be concatonated in the order they are listed in the file.stylesheets property (i.e. the last
9
+ # Note: Stylesheets will be concatenated in the order they are listed in the file.stylesheets property (i.e. the last
9
10
  # file listed will be at the end of the concatenated file), so it probably makes sense to have the main style.css file
10
11
  # as the first entry
11
12
  # Example:
12
- # file.stylesheets = style.css, lightbox.css, plugin.css
13
+ # file.stylesheets = style.css, lightbox.css, plugin.css
13
14
  #
14
- file.stylesheets =
15
+ file.stylesheets =
15
16
 
16
17
 
17
18
  # Web Pages
@@ -22,16 +23,16 @@ file.stylesheets =
22
23
  # The paths need to be relative
23
24
  #
24
25
  # Files can be added in a comma separated form
25
- file.pages =
26
+ file.pages =
26
27
 
27
28
 
28
29
 
29
30
  # Excluded files and dirs
30
31
  #
31
- # Add any files or directories you add to the project and do not want to be copied to the publish directory as a
32
+ # Add any files or directories you add to the project and do not want to be copied to the publish directory as a
32
33
  # comma separated list
33
34
  # These files are ignored in addition to the default ones specified in default.properties.
34
- file.exclude =
35
+ file.exclude =
35
36
 
36
37
 
37
38
  # Specify an environment to build
@@ -39,7 +40,7 @@ file.exclude =
39
40
  # By Default, it builds a production environment
40
41
  # Set to dev if buidling a development environment
41
42
  # Set to test if building a test environment
42
- env =
43
+ env =
43
44
 
44
45
 
45
46
  # Directory Structure
@@ -1,73 +1,50 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
3
  #Generate a new project from your HTML5 Boilerplate repo clone
4
- #Created 2010-10-13, Rick Waldron
4
+ #by: Rick Waldron & Michael Cetrulo
5
5
 
6
6
 
7
7
  ##first run
8
8
  # $ cd html5-boilerplate/build
9
- # $ sudo chmod a+x createproject.sh && ./createproject.sh
9
+ # $ chmod +x createproject.sh && ./createproject.sh
10
10
 
11
11
  ##usage
12
12
  # $ cd html5-boilerplate/build
13
13
  # $ ./createproject.sh
14
14
 
15
- echo "To create a new html5-boilerplate project, enter a new directory name:"
16
-
17
- read name
18
-
19
- cd ..
20
-
21
- webroot=$PWD
22
-
23
- SRC=$webroot"/html5-boilerplate"
24
- DST=$webroot"/../"$name
25
-
26
- if [ -d "$DST" ]
15
+ # find project root (also ensure script is ran from within repo)
16
+ src=$(git rev-parse --show-toplevel) || {
17
+ echo "try running the script from within html5-boilerplate directories." >&2
18
+ exit 1
19
+ }
20
+ [[ -d $src ]] || {
21
+ echo "fatal: could not determine html5-boilerplate's root directory." >&2
22
+ echo "try updating git." >&2
23
+ exit 1
24
+ }
25
+
26
+ # get a name for new project
27
+ while [[ -z $name ]]
28
+ do
29
+ echo "To create a new html5-boilerplate project, enter a new directory name:"
30
+ read name || exit
31
+ done
32
+ dst=$src/../$name
33
+
34
+ if [[ -d $dst ]]
27
35
  then
28
- echo "$DST exists"
36
+ echo "$dst exists"
29
37
  else
30
38
  #create new project
31
- mkdir $name
32
-
33
- #sucess message
34
- echo "Created Directory: $DST"
35
-
36
- cd $SRC
37
-
38
- #copy to new project directory
39
- #http://en.wikipedia.org/wiki/Cpio#Copy
40
- #http://cybertiggyr.com/cpio-howto/
41
- #http://www.cyberciti.biz/faq/how-do-i-use-cpio-command-under-linux/
42
- find . -depth -print0 | cpio -0pdmv $DST
43
-
39
+ mkdir -- "$dst" || exit 1
44
40
 
45
41
  #sucess message
46
- echo "Created Project: $DST"
47
-
48
- # delete that temporary folder
49
- rm -r $name
50
-
51
- #move into new project
52
- cd $DST
53
-
54
- #in Bourne Again Shell, the cpio was copying
55
- #the whole dir into the new project, along with the contents
56
- if [ -d "$DST/html5-boilerplate" ]
57
- then
58
- rm -r html5-boilerplate
59
- fi
60
-
61
- if [ -e "$DST/createproject.sh" ]
62
- then
63
- rm -r createproject.sh
64
- fi
65
-
66
- if [ -e "$DST/.git" ]
67
- then
68
- rm -rf .git
69
- fi
42
+ echo "Created Directory: $dst"
70
43
 
44
+ cd -- "$src"
45
+ cp -vr -- css js img build test *.html *.xml *.txt *.png *.ico .htaccess "$dst"
71
46
 
47
+ #sucess message
48
+ echo "Created Project: $dst"
72
49
  fi
73
50
 
@@ -0,0 +1,5 @@
1
+ # This is for windows users only.
2
+ # If you're on a mac or linux, just run `ant build` from this folder in Terminal
3
+
4
+ set MYDIR=%~dp0
5
+ ant build
@@ -16,11 +16,17 @@
16
16
  .settings
17
17
  nbproject
18
18
  thumbs.db
19
+ *.tmproj
20
+ *.kpf
19
21
 
20
22
  # Dreamweaver added files
21
23
  _notes
22
24
  dwsync.xml
23
25
 
26
+ # Komodo
27
+ *.komodoproject
28
+ .komodotools
29
+
24
30
  # Folders to ignore
25
31
  .hg
26
32
  .svn
@@ -91,8 +91,7 @@ AddEncoding gzip svgz
91
91
  AddType application/vnd.ms-fontobject eot
92
92
  AddType font/truetype ttf
93
93
  AddType font/opentype otf
94
- AddType font/opentype woff
95
- # ^ hack to avoid chrome console warning: crbug.com/70283
94
+ AddType application/x-font-woff woff
96
95
 
97
96
  # assorted types
98
97
  AddType image/x-icon ico
@@ -110,8 +109,8 @@ AddType application/octet-stream safariextz
110
109
  # ----------------------------------------------------------------------
111
110
 
112
111
  # e.g. Inside of script.combined.js you could have
113
- # <!--#include file="jquery-1.4.4.js" -->
114
- # <!--#include file="jquery.idletimer.js" -->
112
+ # <!--#include file="libs/jquery-1.5.0.min.js" -->
113
+ # <!--#include file="plugins/jquery.idletimer.js" -->
115
114
  # and they would be included into this single file
116
115
 
117
116
  # this is not in use in the boilerplate as it stands. you may
@@ -210,10 +209,13 @@ AddType application/octet-stream safariextz
210
209
  ExpiresByType video/mp4 "access plus 1 month"
211
210
  ExpiresByType video/webm "access plus 1 month"
212
211
 
212
+ # htc files (css3pie)
213
+ ExpiresByType text/x-component "access plus 1 month"
214
+
213
215
  # webfonts
214
216
  ExpiresByType font/truetype "access plus 1 month"
215
217
  ExpiresByType font/opentype "access plus 1 month"
216
- ExpiresByType font/woff "access plus 1 month"
218
+ ExpiresByType application/x-font-woff "access plus 1 month"
217
219
  ExpiresByType image/svg+xml "access plus 1 month"
218
220
  ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
219
221
 
@@ -221,9 +223,11 @@ AddType application/octet-stream safariextz
221
223
  ExpiresByType text/css "access plus 2 months"
222
224
  ExpiresByType application/javascript "access plus 2 months"
223
225
  ExpiresByType text/javascript "access plus 2 months"
226
+
224
227
  <IfModule mod_headers.c>
225
228
  Header append Cache-Control "public"
226
229
  </IfModule>
230
+
227
231
  </IfModule>
228
232
 
229
233
 
@@ -323,6 +327,61 @@ FileETag None
323
327
 
324
328
 
325
329
 
330
+ # ----------------------------------------------------------------------
331
+ # Add/remove trailing slash to (non-file) URLs
332
+ # ----------------------------------------------------------------------
333
+
334
+ # Google treats URLs with and without trailing slashes separately.
335
+ # Forcing a trailing slash is usually preferred, but all that's really
336
+ # important is that one correctly redirects to the other.
337
+
338
+ # By default option 1 (force trailing slash) is activated.
339
+ # http://googlewebmastercentral.blogspot.com/2010/04/to-slash-or-not-to-slash.html
340
+ # http://www.alistapart.com/articles/slashforward/
341
+ # http://httpd.apache.org/docs/2.0/misc/rewriteguide.html#url Trailing Slash Problem
342
+
343
+ # ----------------------------------------------------------------------
344
+
345
+ # Option 1:
346
+ # Rewrite "domain.com/foo -> domain.com/foo/"
347
+
348
+ <IfModule mod_rewrite.c>
349
+ RewriteCond %{REQUEST_FILENAME} !-f
350
+ RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/|#(.*))$
351
+ RewriteRule ^(.*)$ /$1/ [R=301,L]
352
+ </IfModule>
353
+
354
+ # ----------------------------------------------------------------------
355
+
356
+ # Option 2:
357
+ # Rewrite "domain.com/foo/ -> domain.com/foo"
358
+
359
+ #<IfModule mod_rewrite.c>
360
+ # RewriteRule ^(.*)/$ /$1 [R=301,L]
361
+ #</IfModule>
362
+
363
+
364
+
365
+ # ----------------------------------------------------------------------
366
+ # Built-in filename-based cache busting
367
+ # ----------------------------------------------------------------------
368
+
369
+ # If you're not using the build script to manage your filename version revving,
370
+ # you might want to consider enabling this, which will route requests for
371
+ # /css/style.20110203.css to /css/style.css
372
+
373
+ # To understand why this is important and a better idea than all.css?v1231,
374
+ # read: github.com/paulirish/html5-boilerplate/wiki/Version-Control-with-Cachebusting
375
+
376
+ # Uncomment to enable.
377
+ # <IfModule mod_rewrite.c>
378
+ # RewriteCond %{REQUEST_FILENAME} !-f
379
+ # RewriteCond %{REQUEST_FILENAME} !-d
380
+ # RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L]
381
+ # </IfModule>
382
+
383
+
384
+
326
385
  # ----------------------------------------------------------------------
327
386
  # Prevent SSL cert warnings
328
387
  # ----------------------------------------------------------------------
@@ -333,7 +392,7 @@ FileETag None
333
392
 
334
393
  # <IfModule mod_rewrite.c>
335
394
  # RewriteCond %{SERVER_PORT} !^443
336
- # RewriteRule (.*) https://example-domain-please-change.com.com/$1 [R=301,L]
395
+ # RewriteRule (.*) https://example-domain-please-change-me.com/$1 [R=301,L]
337
396
  # </IfModule>
338
397
 
339
398
 
@@ -353,6 +412,7 @@ Options -MultiViews
353
412
  # custom 404 page
354
413
  # ----------------------------------------------------------------------
355
414
 
415
+ # You can add custom pages to handle 500 or 403 pretty easily, if you like.
356
416
  ErrorDocument 404 /404.html
357
417
 
358
418
 
@@ -383,7 +443,7 @@ AddCharset utf-8 .html .css .js .xml .json .rss
383
443
  # "-Indexes" will have Apache block users from browsing folders without a default document
384
444
  # Usually you should leave this activated, because you shouldn't allow everybody to surf through
385
445
  # every folder on your server (which includes rather private places like CMS system folders).
386
- # Options -Indexes
446
+ Options -Indexes
387
447
 
388
448
 
389
449
  # Block access to "hidden" directories whose names begin with a period. This
@@ -411,5 +471,8 @@ AddCharset utf-8 .html .css .js .xml .json .rss
411
471
  # php_flag register_globals Off
412
472
 
413
473
 
414
-
474
+ # Increase cookie security
475
+ <IfModule php5_module>
476
+ php_value session.cookie_httponly true
477
+ </IfModule>
415
478
 
@@ -1,13 +1,13 @@
1
- <!DOCTYPE html>
2
- <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
3
- <!--[if lt IE 7 ]> <html class="no-js ie6"> <![endif]-->
4
- <!--[if IE 7 ]> <html class="no-js ie7"> <![endif]-->
5
- <!--[if IE 8 ]> <html class="no-js ie8"> <![endif]-->
6
- <!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js"> <!--<![endif]-->
1
+ <!doctype html>
2
+ <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
3
+ <!--[if lt IE 7]> <html class="no-js ie6" lang="en"> <![endif]-->
4
+ <!--[if IE 7]> <html class="no-js ie7" lang="en"> <![endif]-->
5
+ <!--[if IE 8]> <html class="no-js ie8" lang="en"> <![endif]-->
6
+ <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
7
7
  <head>
8
8
  <meta charset="utf-8">
9
9
 
10
- <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
10
+ <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
11
11
  Remove this if you use the .htaccess -->
12
12
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
13
13
 
@@ -15,7 +15,7 @@
15
15
  <meta name="description" content="">
16
16
  <meta name="author" content="">
17
17
 
18
- <!-- Mobile viewport optimized: j.mp/bplateviewport -->
18
+ <!-- Mobile viewport optimized: j.mp/bplateviewport -->
19
19
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
20
20
 
21
21
  <!-- Place favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
@@ -23,59 +23,58 @@
23
23
  <link rel="apple-touch-icon" href="/apple-touch-icon.png">
24
24
 
25
25
 
26
- <!-- CSS : implied media="all" -->
27
- <link rel="stylesheet" href="assets/css/style.css?v=2">
26
+ <!-- CSS: implied media="all" -->
27
+ <link rel="stylesheet" href="assets/css/style.css">
28
28
 
29
29
  <!-- Uncomment if you are specifically targeting less enabled mobile browsers
30
- <link rel="stylesheet" media="handheld" href="assets/css/handheld.css?v=2"> -->
31
-
30
+ <link rel="stylesheet" media="handheld" href="assets/css/handheld.css"> -->
31
+
32
32
  <!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects -->
33
- <script src="assets/js/libs/modernizr-1.6.min.js"></script>
33
+ <script src="assets/js/libs/modernizr-1.7.min.js"></script>
34
34
 
35
35
  </head>
36
36
 
37
- <body lang="en" >
37
+ <body>
38
38
 
39
- <div id="container">
39
+ <div id="container" class="page_id">
40
40
  <header>
41
41
 
42
42
  </header>
43
-
44
43
  <div id="main" role="main">
44
+
45
45
  </div>
46
-
47
46
  <footer>
48
47
 
49
48
  </footer>
50
49
  </div> <!--! end of #container -->
51
50
 
52
51
 
53
- <!-- Javascript at the bottom for fast page loading -->
52
+ <!-- JavaScript at the bottom for fast page loading -->
53
+
54
+ <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary -->
55
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script>
56
+ <script>window.jQuery || document.write("<script src='js/libs/jquery-1.5.1.min.js'>\x3C/script>")</script>
57
+
54
58
 
55
- <!-- Grab Google CDN's jQuery. fall back to local if necessary -->
56
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.js"></script>
57
- <script>!window.jQuery && document.write(unescape('%3Cscript src="assets/js/libs/jquery-1.5.0.js"%3E%3C/script%3E'))</script>
58
-
59
-
60
59
  <!-- scripts concatenated and minified via ant build script-->
61
60
  <script src="assets/js/plugins.js"></script>
62
61
  <script src="assets/js/script.js"></script>
63
- <!-- end concatenated and minified scripts-->
64
-
65
-
62
+ <!-- end scripts-->
63
+
64
+
66
65
  <!--[if lt IE 7 ]>
67
66
  <script src="assets/js/libs/dd_belatedpng.js"></script>
68
- <script>DD_belatedPNG.fix('img, .png_bg'); // Fix any <img> or .png_bg bg-images. Also, please read goo.gl/mZiyb </script>
67
+ <script>DD_belatedPNG.fix("img, .png_bg"); // Fix any <img> or .png_bg bg-images. Also, please read goo.gl/mZiyb </script>
69
68
  <![endif]-->
70
69
 
71
70
 
72
71
  <!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
73
72
  <script>
74
- var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
73
+ var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
75
74
  (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
76
- g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
77
- s.parentNode.insertBefore(g,s)}(document,'script'));
75
+ g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
76
+ s.parentNode.insertBefore(g,s)}(document,"script"));
78
77
  </script>
79
-
78
+
80
79
  </body>
81
80
  </html>
@@ -10,4 +10,4 @@
10
10
  * DD_belatedPNG.fix('.png_bg'); // argument is a CSS selector
11
11
  * DD_belatedPNG.fixPng( someNode ); // argument is an HTMLDomElement
12
12
  **/
13
- var DD_belatedPNG={ns:"DD_belatedPNG",imgSize:{},delay:10,nodesFixed:0,createVmlNameSpace:function(){if(document.namespaces&&!document.namespaces[this.ns]){document.namespaces.add(this.ns,"urn:schemas-microsoft-com:vml")}},createVmlStyleSheet:function(){var b,a;b=document.createElement("style");b.setAttribute("media","screen");document.documentElement.firstChild.insertBefore(b,document.documentElement.firstChild.firstChild);if(b.styleSheet){b=b.styleSheet;b.addRule(this.ns+"\\:*","{behavior:url(#default#VML)}");b.addRule(this.ns+"\\:shape","position:absolute;");b.addRule("img."+this.ns+"_sizeFinder","behavior:none; border:none; position:absolute; z-index:-1; top:-10000px; visibility:hidden;");this.screenStyleSheet=b;a=document.createElement("style");a.setAttribute("media","print");document.documentElement.firstChild.insertBefore(a,document.documentElement.firstChild.firstChild);a=a.styleSheet;a.addRule(this.ns+"\\:*","{display: none !important;}");a.addRule("img."+this.ns+"_sizeFinder","{display: none !important;}")}},readPropertyChange:function(){var b,c,a;b=event.srcElement;if(!b.vmlInitiated){return}if(event.propertyName.search("background")!=-1||event.propertyName.search("border")!=-1){DD_belatedPNG.applyVML(b)}if(event.propertyName=="style.display"){c=(b.currentStyle.display=="none")?"none":"block";for(a in b.vml){if(b.vml.hasOwnProperty(a)){b.vml[a].shape.style.display=c}}}if(event.propertyName.search("filter")!=-1){DD_belatedPNG.vmlOpacity(b)}},vmlOpacity:function(b){if(b.currentStyle.filter.search("lpha")!=-1){var a=b.currentStyle.filter;a=parseInt(a.substring(a.lastIndexOf("=")+1,a.lastIndexOf(")")),10)/100;b.vml.color.shape.style.filter=b.currentStyle.filter;b.vml.image.fill.opacity=a}},handlePseudoHover:function(a){setTimeout(function(){DD_belatedPNG.applyVML(a)},1)},fix:function(a){if(this.screenStyleSheet){var c,b;c=a.split(",");for(b=0;b<c.length;b++){this.screenStyleSheet.addRule(c[b],"behavior:expression(DD_belatedPNG.fixPng(this))")}}},applyVML:function(a){a.runtimeStyle.cssText="";this.vmlFill(a);this.vmlOffsets(a);this.vmlOpacity(a);if(a.isImg){this.copyImageBorders(a)}},attachHandlers:function(i){var d,c,g,e,b,f;d=this;c={resize:"vmlOffsets",move:"vmlOffsets"};if(i.nodeName=="A"){e={mouseleave:"handlePseudoHover",mouseenter:"handlePseudoHover",focus:"handlePseudoHover",blur:"handlePseudoHover"};for(b in e){if(e.hasOwnProperty(b)){c[b]=e[b]}}}for(f in c){if(c.hasOwnProperty(f)){g=function(){d[c[f]](i)};i.attachEvent("on"+f,g)}}i.attachEvent("onpropertychange",this.readPropertyChange)},giveLayout:function(a){a.style.zoom=1;if(a.currentStyle.position=="static"){a.style.position="relative"}},copyImageBorders:function(b){var c,a;c={borderStyle:true,borderWidth:true,borderColor:true};for(a in c){if(c.hasOwnProperty(a)){b.vml.color.shape.style[a]=b.currentStyle[a]}}},vmlFill:function(e){if(!e.currentStyle){return}else{var d,f,g,b,a,c;d=e.currentStyle}for(b in e.vml){if(e.vml.hasOwnProperty(b)){e.vml[b].shape.style.zIndex=d.zIndex}}e.runtimeStyle.backgroundColor="";e.runtimeStyle.backgroundImage="";f=true;if(d.backgroundImage!="none"||e.isImg){if(!e.isImg){e.vmlBg=d.backgroundImage;e.vmlBg=e.vmlBg.substr(5,e.vmlBg.lastIndexOf('")')-5)}else{e.vmlBg=e.src}g=this;if(!g.imgSize[e.vmlBg]){a=document.createElement("img");g.imgSize[e.vmlBg]=a;a.className=g.ns+"_sizeFinder";a.runtimeStyle.cssText="behavior:none; position:absolute; left:-10000px; top:-10000px; border:none; margin:0; padding:0;";c=function(){this.width=this.offsetWidth;this.height=this.offsetHeight;g.vmlOffsets(e)};a.attachEvent("onload",c);a.src=e.vmlBg;a.removeAttribute("width");a.removeAttribute("height");document.body.insertBefore(a,document.body.firstChild)}e.vml.image.fill.src=e.vmlBg;f=false}e.vml.image.fill.on=!f;e.vml.image.fill.color="none";e.vml.color.shape.style.backgroundColor=d.backgroundColor;e.runtimeStyle.backgroundImage="none";e.runtimeStyle.backgroundColor="transparent"},vmlOffsets:function(d){var h,n,a,e,g,m,f,l,j,i,k;h=d.currentStyle;n={W:d.clientWidth+1,H:d.clientHeight+1,w:this.imgSize[d.vmlBg].width,h:this.imgSize[d.vmlBg].height,L:d.offsetLeft,T:d.offsetTop,bLW:d.clientLeft,bTW:d.clientTop};a=(n.L+n.bLW==1)?1:0;e=function(b,p,q,c,s,u){b.coordsize=c+","+s;b.coordorigin=u+","+u;b.path="m0,0l"+c+",0l"+c+","+s+"l0,"+s+" xe";b.style.width=c+"px";b.style.height=s+"px";b.style.left=p+"px";b.style.top=q+"px"};e(d.vml.color.shape,(n.L+(d.isImg?0:n.bLW)),(n.T+(d.isImg?0:n.bTW)),(n.W-1),(n.H-1),0);e(d.vml.image.shape,(n.L+n.bLW),(n.T+n.bTW),(n.W),(n.H),1);g={X:0,Y:0};if(d.isImg){g.X=parseInt(h.paddingLeft,10)+1;g.Y=parseInt(h.paddingTop,10)+1}else{for(j in g){if(g.hasOwnProperty(j)){this.figurePercentage(g,n,j,h["backgroundPosition"+j])}}}d.vml.image.fill.position=(g.X/n.W)+","+(g.Y/n.H);m=h.backgroundRepeat;f={T:1,R:n.W+a,B:n.H,L:1+a};l={X:{b1:"L",b2:"R",d:"W"},Y:{b1:"T",b2:"B",d:"H"}};if(m!="repeat"||d.isImg){i={T:(g.Y),R:(g.X+n.w),B:(g.Y+n.h),L:(g.X)};if(m.search("repeat-")!=-1){k=m.split("repeat-")[1].toUpperCase();i[l[k].b1]=1;i[l[k].b2]=n[l[k].d]}if(i.B>n.H){i.B=n.H}d.vml.image.shape.style.clip="rect("+i.T+"px "+(i.R+a)+"px "+i.B+"px "+(i.L+a)+"px)"}else{d.vml.image.shape.style.clip="rect("+f.T+"px "+f.R+"px "+f.B+"px "+f.L+"px)"}},figurePercentage:function(d,c,f,a){var b,e;e=true;b=(f=="X");switch(a){case"left":case"top":d[f]=0;break;case"center":d[f]=0.5;break;case"right":case"bottom":d[f]=1;break;default:if(a.search("%")!=-1){d[f]=parseInt(a,10)/100}else{e=false}}d[f]=Math.ceil(e?((c[b?"W":"H"]*d[f])-(c[b?"w":"h"]*d[f])):parseInt(a,10));if(d[f]%2===0){d[f]++}return d[f]},fixPng:function(c){c.style.behavior="none";var g,b,f,a,d;if(c.nodeName=="BODY"||c.nodeName=="TD"||c.nodeName=="TR"){return}c.isImg=false;if(c.nodeName=="IMG"){if(c.src.toLowerCase().search(/\.png$/)!=-1){c.isImg=true;c.style.visibility="hidden"}else{return}}else{if(c.currentStyle.backgroundImage.toLowerCase().search(".png")==-1){return}}g=DD_belatedPNG;c.vml={color:{},image:{}};b={shape:{},fill:{}};for(a in c.vml){if(c.vml.hasOwnProperty(a)){for(d in b){if(b.hasOwnProperty(d)){f=g.ns+":"+d;c.vml[a][d]=document.createElement(f)}}c.vml[a].shape.stroked=false;c.vml[a].shape.appendChild(c.vml[a].fill);c.parentNode.insertBefore(c.vml[a].shape,c)}}c.vml.image.shape.fillcolor="none";c.vml.image.fill.type="tile";c.vml.color.fill.on=false;g.attachHandlers(c);g.giveLayout(c);g.giveLayout(c.offsetParent);c.vmlInitiated=true;g.applyVML(c)}};try{document.execCommand("BackgroundImageCache",false,true)}catch(r){}DD_belatedPNG.createVmlNameSpace();DD_belatedPNG.createVmlStyleSheet();
13
+ var DD_belatedPNG={ns:"DD_belatedPNG",imgSize:{},delay:10,nodesFixed:0,createVmlNameSpace:function(){if(document.namespaces&&!document.namespaces[this.ns]){document.namespaces.add(this.ns,"urn:schemas-microsoft-com:vml")}},createVmlStyleSheet:function(){var b,a;b=document.createElement("style");b.setAttribute("media","screen");document.documentElement.firstChild.insertBefore(b,document.documentElement.firstChild.firstChild);if(b.styleSheet){b=b.styleSheet;b.addRule(this.ns+"\\:*","{behavior:url(#default#VML)}");b.addRule(this.ns+"\\:shape","position:absolute;");b.addRule("img."+this.ns+"_sizeFinder","behavior:none; border:none; position:absolute; z-index:-1; top:-10000px; visibility:hidden;");this.screenStyleSheet=b;a=document.createElement("style");a.setAttribute("media","print");document.documentElement.firstChild.insertBefore(a,document.documentElement.firstChild.firstChild);a=a.styleSheet;a.addRule(this.ns+"\\:*","{display: none !important;}");a.addRule("img."+this.ns+"_sizeFinder","{display: none !important;}")}},readPropertyChange:function(){var b,c,a;b=event.srcElement;if(!b.vmlInitiated){return}if(event.propertyName.search("background")!=-1||event.propertyName.search("border")!=-1){DD_belatedPNG.applyVML(b)}if(event.propertyName=="style.display"){c=(b.currentStyle.display=="none")?"none":"block";for(a in b.vml){if(b.vml.hasOwnProperty(a)){b.vml[a].shape.style.display=c}}}if(event.propertyName.search("filter")!=-1){DD_belatedPNG.vmlOpacity(b)}},vmlOpacity:function(b){if(b.currentStyle.filter.search("lpha")!=-1){var a=b.currentStyle.filter;a=parseInt(a.substring(a.lastIndexOf("=")+1,a.lastIndexOf(")")),10)/100;b.vml.color.shape.style.filter=b.currentStyle.filter;b.vml.image.fill.opacity=a}},handlePseudoHover:function(a){setTimeout(function(){DD_belatedPNG.applyVML(a)},1)},fix:function(a){if(this.screenStyleSheet){var c,b;c=a.split(",");for(b=0;b<c.length;b++){this.screenStyleSheet.addRule(c[b],"behavior:expression(DD_belatedPNG.fixPng(this))")}}},applyVML:function(a){a.runtimeStyle.cssText="";this.vmlFill(a);this.vmlOffsets(a);this.vmlOpacity(a);if(a.isImg){this.copyImageBorders(a)}},attachHandlers:function(i){var d,c,g,e,b,f;d=this;c={resize:"vmlOffsets",move:"vmlOffsets"};if(i.nodeName=="A"){e={mouseleave:"handlePseudoHover",mouseenter:"handlePseudoHover",focus:"handlePseudoHover",blur:"handlePseudoHover"};for(b in e){if(e.hasOwnProperty(b)){c[b]=e[b]}}}for(f in c){if(c.hasOwnProperty(f)){g=function(){d[c[f]](i)};i.attachEvent("on"+f,g)}}i.attachEvent("onpropertychange",this.readPropertyChange)},giveLayout:function(a){a.style.zoom=1;if(a.currentStyle.position=="static"){a.style.position="relative"}},copyImageBorders:function(b){var c,a;c={borderStyle:true,borderWidth:true,borderColor:true};for(a in c){if(c.hasOwnProperty(a)){b.vml.color.shape.style[a]=b.currentStyle[a]}}},vmlFill:function(e){if(!e.currentStyle){return}else{var d,f,g,b,a,c;d=e.currentStyle}for(b in e.vml){if(e.vml.hasOwnProperty(b)){e.vml[b].shape.style.zIndex=d.zIndex}}e.runtimeStyle.backgroundColor="";e.runtimeStyle.backgroundImage="";f=true;if(d.backgroundImage!="none"||e.isImg){if(!e.isImg){e.vmlBg=d.backgroundImage;e.vmlBg=e.vmlBg.substr(5,e.vmlBg.lastIndexOf('")')-5)}else{e.vmlBg=e.src}g=this;if(!g.imgSize[e.vmlBg]){a=document.createElement("img");g.imgSize[e.vmlBg]=a;a.className=g.ns+"_sizeFinder";a.runtimeStyle.cssText="behavior:none; position:absolute; left:-10000px; top:-10000px; border:none; margin:0; padding:0;";c=function(){this.width=this.offsetWidth;this.height=this.offsetHeight;g.vmlOffsets(e)};a.attachEvent("onload",c);a.src=e.vmlBg;a.removeAttribute("width");a.removeAttribute("height");document.body.insertBefore(a,document.body.firstChild)}e.vml.image.fill.src=e.vmlBg;f=false}e.vml.image.fill.on=!f;e.vml.image.fill.color="none";e.vml.color.shape.style.backgroundColor=d.backgroundColor;e.runtimeStyle.backgroundImage="none";e.runtimeStyle.backgroundColor="transparent"},vmlOffsets:function(d){var h,n,a,e,g,m,f,l,j,i,k;h=d.currentStyle;n={W:d.clientWidth+1,H:d.clientHeight+1,w:this.imgSize[d.vmlBg].width,h:this.imgSize[d.vmlBg].height,L:d.offsetLeft,T:d.offsetTop,bLW:d.clientLeft,bTW:d.clientTop};a=(n.L+n.bLW==1)?1:0;e=function(b,p,q,c,s,u){b.coordsize=c+","+s;b.coordorigin=u+","+u;b.path="m0,0l"+c+",0l"+c+","+s+"l0,"+s+" xe";b.style.width=c+"px";b.style.height=s+"px";b.style.left=p+"px";b.style.top=q+"px"};e(d.vml.color.shape,(n.L+(d.isImg?0:n.bLW)),(n.T+(d.isImg?0:n.bTW)),(n.W-1),(n.H-1),0);e(d.vml.image.shape,(n.L+n.bLW),(n.T+n.bTW),(n.W),(n.H),1);g={X:0,Y:0};if(d.isImg){g.X=parseInt(h.paddingLeft,10)+1;g.Y=parseInt(h.paddingTop,10)+1}else{for(j in g){if(g.hasOwnProperty(j)){this.figurePercentage(g,n,j,h["backgroundPosition"+j])}}}d.vml.image.fill.position=(g.X/n.W)+","+(g.Y/n.H);m=h.backgroundRepeat;f={T:1,R:n.W+a,B:n.H,L:1+a};l={X:{b1:"L",b2:"R",d:"W"},Y:{b1:"T",b2:"B",d:"H"}};if(m!="repeat"||d.isImg){i={T:(g.Y),R:(g.X+n.w),B:(g.Y+n.h),L:(g.X)};if(m.search("repeat-")!=-1){k=m.split("repeat-")[1].toUpperCase();i[l[k].b1]=1;i[l[k].b2]=n[l[k].d]}if(i.B>n.H){i.B=n.H}d.vml.image.shape.style.clip="rect("+i.T+"px "+(i.R+a)+"px "+i.B+"px "+(i.L+a)+"px)"}else{d.vml.image.shape.style.clip="rect("+f.T+"px "+f.R+"px "+f.B+"px "+f.L+"px)"}},figurePercentage:function(d,c,f,a){var b,e;e=true;b=(f=="X");switch(a){case"left":case"top":d[f]=0;break;case"center":d[f]=0.5;break;case"right":case"bottom":d[f]=1;break;default:if(a.search("%")!=-1){d[f]=parseInt(a,10)/100}else{e=false}}d[f]=Math.ceil(e?((c[b?"W":"H"]*d[f])-(c[b?"w":"h"]*d[f])):parseInt(a,10));if(d[f]%2===0){d[f]++}return d[f]},fixPng:function(c){c.style.behavior="none";var g,b,f,a,d;if(c.nodeName=="BODY"||c.nodeName=="TD"||c.nodeName=="TR"){return}c.isImg=false;if(c.nodeName=="IMG"){if(c.src.toLowerCase().search(/\.png$/)!=-1){c.isImg=true;c.style.visibility="hidden"}else{return}}else{if(c.currentStyle.backgroundImage.toLowerCase().search(".png")==-1){return}}g=DD_belatedPNG;c.vml={color:{},image:{}};b={shape:{},fill:{}};for(a in c.vml){if(c.vml.hasOwnProperty(a)){for(d in b){if(b.hasOwnProperty(d)){f=g.ns+":"+d;c.vml[a][d]=document.createElement(f)}}c.vml[a].shape.stroked=false;c.vml[a].shape.appendChild(c.vml[a].fill);c.parentNode.insertBefore(c.vml[a].shape,c)}}c.vml.image.shape.fillcolor="none";c.vml.image.fill.type="tile";c.vml.color.fill.on=false;g.attachHandlers(c);g.giveLayout(c);g.giveLayout(c.offsetParent);c.vmlInitiated=true;g.applyVML(c)}};try{document.execCommand("BackgroundImageCache",false,true)}catch(r){}DD_belatedPNG.createVmlNameSpace();DD_belatedPNG.createVmlStyleSheet();