survivalkit 1.0.beta.8 → 1.0.beta.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. data/CHANGELOG.markdown +3 -0
  2. data/README.markdown +2 -2
  3. data/lib/survivalkit.rb +3 -2
  4. data/stylesheets/survivalkit/fonts/_font-awesome.scss +355 -0
  5. data/stylesheets/survivalkit/fonts/_league-gothic.scss +46 -0
  6. data/stylesheets/survivalkit/fonts/_ostrich-sans.scss +69 -0
  7. data/stylesheets/survivalkit/mixins/_ui.scss +22 -12
  8. data/stylesheets/survivalkit/survival-kit/_survival-kit.sass +157 -0
  9. data/templates/clean/manifest.rb +94 -0
  10. data/templates/drupal/script.js +2 -17
  11. data/templates/project/libs/jquery-1.8.2.min.js +2 -0
  12. data/templates/project/libs/modernizr-2.6.2.min.js +815 -0
  13. data/templates/project/manifest.rb +46 -27
  14. data/templates/project/script.js +2 -17
  15. data/templates/project/sources/FitText/README.md +52 -0
  16. data/templates/project/sources/FitText/example.html +60 -0
  17. data/templates/project/sources/FitText/jquery.fittext.js +43 -0
  18. data/templates/shared/fonts/font-awesome/fontawesome-webfont.eot +0 -0
  19. data/templates/shared/fonts/font-awesome/fontawesome-webfont.svg +255 -0
  20. data/templates/shared/fonts/font-awesome/fontawesome-webfont.ttf +0 -0
  21. data/templates/shared/fonts/font-awesome/fontawesome-webfont.woff +0 -0
  22. data/templates/shared/fonts/league-gothic/leaguegothic-condensed-italic-webfont.eot +0 -0
  23. data/templates/shared/fonts/league-gothic/leaguegothic-condensed-italic-webfont.svg +224 -0
  24. data/templates/shared/fonts/league-gothic/leaguegothic-condensed-italic-webfont.ttf +0 -0
  25. data/templates/shared/fonts/league-gothic/leaguegothic-condensed-italic-webfont.woff +0 -0
  26. data/templates/shared/fonts/league-gothic/leaguegothic-condensed-regular-webfont.eot +0 -0
  27. data/templates/shared/fonts/league-gothic/leaguegothic-condensed-regular-webfont.svg +224 -0
  28. data/templates/shared/fonts/league-gothic/leaguegothic-condensed-regular-webfont.ttf +0 -0
  29. data/templates/shared/fonts/league-gothic/leaguegothic-condensed-regular-webfont.woff +0 -0
  30. data/templates/shared/fonts/league-gothic/leaguegothic-italic-webfont.eot +0 -0
  31. data/templates/shared/fonts/league-gothic/leaguegothic-italic-webfont.svg +224 -0
  32. data/templates/shared/fonts/league-gothic/leaguegothic-italic-webfont.ttf +0 -0
  33. data/templates/shared/fonts/league-gothic/leaguegothic-italic-webfont.woff +0 -0
  34. data/templates/shared/fonts/league-gothic/leaguegothic-regular-webfont.eot +0 -0
  35. data/templates/shared/fonts/league-gothic/leaguegothic-regular-webfont.svg +223 -0
  36. data/templates/shared/fonts/league-gothic/leaguegothic-regular-webfont.ttf +0 -0
  37. data/templates/shared/fonts/league-gothic/leaguegothic-regular-webfont.woff +0 -0
  38. data/templates/shared/fonts/ostrich/ostrich-black-webfont.eot +0 -0
  39. data/templates/shared/fonts/ostrich/ostrich-black-webfont.svg +141 -0
  40. data/templates/shared/fonts/ostrich/ostrich-black-webfont.ttf +0 -0
  41. data/templates/shared/fonts/ostrich/ostrich-black-webfont.woff +0 -0
  42. data/templates/shared/fonts/ostrich/ostrich-bold-webfont.eot +0 -0
  43. data/templates/shared/fonts/ostrich/ostrich-bold-webfont.svg +141 -0
  44. data/templates/shared/fonts/ostrich/ostrich-bold-webfont.ttf +0 -0
  45. data/templates/shared/fonts/ostrich/ostrich-bold-webfont.woff +0 -0
  46. data/templates/shared/fonts/ostrich/ostrich-dashed-webfont.eot +0 -0
  47. data/templates/shared/fonts/ostrich/ostrich-dashed-webfont.svg +141 -0
  48. data/templates/shared/fonts/ostrich/ostrich-dashed-webfont.ttf +0 -0
  49. data/templates/shared/fonts/ostrich/ostrich-dashed-webfont.woff +0 -0
  50. data/templates/shared/fonts/ostrich/ostrich-light-webfont.eot +0 -0
  51. data/templates/shared/fonts/ostrich/ostrich-light-webfont.svg +140 -0
  52. data/templates/shared/fonts/ostrich/ostrich-light-webfont.ttf +0 -0
  53. data/templates/shared/fonts/ostrich/ostrich-light-webfont.woff +0 -0
  54. data/templates/shared/fonts/ostrich/ostrich-regular-webfont.eot +0 -0
  55. data/templates/shared/fonts/ostrich/ostrich-regular-webfont.svg +141 -0
  56. data/templates/shared/fonts/ostrich/ostrich-regular-webfont.ttf +0 -0
  57. data/templates/shared/fonts/ostrich/ostrich-regular-webfont.woff +0 -0
  58. data/templates/shared/fonts/ostrich/ostrich-rounded-webfont.eot +0 -0
  59. data/templates/shared/fonts/ostrich/ostrich-rounded-webfont.svg +141 -0
  60. data/templates/shared/fonts/ostrich/ostrich-rounded-webfont.ttf +0 -0
  61. data/templates/shared/fonts/ostrich/ostrich-rounded-webfont.woff +0 -0
  62. data/templates/shared/partials/01-variables/_colors.scss +1 -1
  63. data/templates/shared/partials/01-variables/_fonts.scss +10 -0
  64. data/templates/shared/partials/06-ui-patterns/_drupal-patterns.scss +4 -5
  65. data/templates/shared/partials/07-styletile/_tile-design.scss +2 -2
  66. data/templates/shared/style.scss +2 -1
  67. metadata +73 -187
  68. data/stylesheets/survivalkit/survival_kit/_survival-kit.scss +0 -145
  69. data/templates/drupal/libs/320-up/helper.js +0 -146
  70. data/templates/drupal/libs/320-up/imgSizer.js +0 -61
  71. data/templates/drupal/libs/dd_belatedpng.js +0 -13
  72. data/templates/drupal/libs/formalize/README.txt +0 -11
  73. data/templates/drupal/libs/formalize/dojo.formalize.js +0 -174
  74. data/templates/drupal/libs/formalize/extjs.formalize.js +0 -168
  75. data/templates/drupal/libs/formalize/jquery.formalize.js +0 -158
  76. data/templates/drupal/libs/formalize/mootools.formalize.js +0 -163
  77. data/templates/drupal/libs/formalize/prototype.formalize.js +0 -171
  78. data/templates/drupal/libs/formalize/yui.formalize.js +0 -168
  79. data/templates/drupal/libs/jquery-1.6.js +0 -8865
  80. data/templates/drupal/libs/jquery-1.6.min.js +0 -16
  81. data/templates/drupal/libs/modernizr-2.0.min.js +0 -4
  82. data/templates/drupal/libs/mootools-core-1.3.1-full-compat-yc.js +0 -485
  83. data/templates/drupal/libs/plugins.js +0 -58
  84. data/templates/drupal/libs/respond.min.js +0 -7
  85. data/templates/drupal/libs/selectivizr-min.js +0 -5
  86. data/templates/drupal/libs/selectivizr.js +0 -5
  87. data/templates/project/files/apple-touch-icon-114x114-precomposed.png +0 -0
  88. data/templates/project/files/apple-touch-icon-72x72-precomposed.png +0 -0
  89. data/templates/project/files/apple-touch-icon.png +0 -0
  90. data/templates/project/files/crossdomain.xml +0 -25
  91. data/templates/project/files/favicon.ico +0 -0
  92. data/templates/project/files/favicon.png +0 -0
  93. data/templates/project/files/google.yml +0 -22
  94. data/templates/project/files/htaccess.htaccess +0 -478
  95. data/templates/project/files/html/404.html +0 -22
  96. data/templates/project/files/html/formalize_jquery_demo.html +0 -288
  97. data/templates/project/files/html/formalize_jquery_disabled.html +0 -288
  98. data/templates/project/files/html/formalize_jquery_errors.html +0 -288
  99. data/templates/project/files/html/index.html +0 -100
  100. data/templates/project/files/html/survivalkit/elements-common.html +0 -588
  101. data/templates/project/files/html/survivalkit/elements-html5.html +0 -2988
  102. data/templates/project/files/html/survivalkit/elements-typography.html +0 -240
  103. data/templates/project/files/html/survivalkit/elements-ui-patterns-drupal-css.html +0 -1883
  104. data/templates/project/files/html/survivalkit/elements-ui-patterns-drupal.html +0 -1882
  105. data/templates/project/files/html/survivalkit/elements-ui-patterns.html +0 -267
  106. data/templates/project/files/html/survivalkit/index.html +0 -132
  107. data/templates/project/files/html/survivalkit/styletile/index.html +0 -1
  108. data/templates/project/files/html/survivalkit/styletile/styletile.html +0 -215
  109. data/templates/project/files/humans.txt +0 -43
  110. data/templates/project/files/robots.txt +0 -5
  111. data/templates/project/libs/320-up/helper.js +0 -146
  112. data/templates/project/libs/320-up/imgSizer.js +0 -61
  113. data/templates/project/libs/jquery-1.6.js +0 -8865
  114. data/templates/project/libs/jquery-1.6.min.js +0 -16
  115. data/templates/project/libs/modernizr-2.0.min.js +0 -4
  116. data/templates/project/libs/plugins.js +0 -58
  117. data/templates/project/libs/selectivizr.js +0 -5
  118. data/templates/project/templates/_flashes.html.haml +0 -4
  119. data/templates/project/templates/_footer.html.haml +0 -2
  120. data/templates/project/templates/_head.html.haml +0 -26
  121. data/templates/project/templates/_header.html.haml +0 -1
  122. data/templates/project/templates/_javascripts.html.haml +0 -27
  123. data/templates/project/templates/_stylesheets.html.haml +0 -5
  124. data/templates/project/templates/application.html.haml +0 -28
  125. data/templates/project/templates/old/_layout.haml +0 -1
  126. data/templates/project/templates/old/home.html.haml +0 -14
  127. data/templates/project/templates/old/layouts/default.haml +0 -62
  128. data/templates/project/templates/old/layouts/survivalkit/default.haml +0 -64
  129. data/templates/project/templates/old/layouts/survivalkit/styletile.haml +0 -64
  130. data/templates/project/templates/old/survivalkit/_layout.haml +0 -1
  131. data/templates/project/templates/old/survivalkit/elements-common.haml +0 -33
  132. data/templates/project/templates/old/survivalkit/elements-html5.haml +0 -71
  133. data/templates/project/templates/old/survivalkit/elements-typography.haml +0 -100
  134. data/templates/project/templates/old/survivalkit/elements-ui-patterns-drupal.haml +0 -38
  135. data/templates/project/templates/old/survivalkit/elements-ui-patterns.haml +0 -23
  136. data/templates/project/templates/old/survivalkit/index.haml +0 -2
  137. data/templates/project/templates/old/survivalkit/partials/common/abbr.haml +0 -8
  138. data/templates/project/templates/old/survivalkit/partials/common/acronym.haml +0 -8
  139. data/templates/project/templates/old/survivalkit/partials/common/characters.haml +0 -11
  140. data/templates/project/templates/old/survivalkit/partials/common/cite.haml +0 -12
  141. data/templates/project/templates/old/survivalkit/partials/common/code.haml +0 -8
  142. data/templates/project/templates/old/survivalkit/partials/common/dfn.haml +0 -8
  143. data/templates/project/templates/old/survivalkit/partials/common/em.haml +0 -10
  144. data/templates/project/templates/old/survivalkit/partials/common/forms.haml +0 -27
  145. data/templates/project/templates/old/survivalkit/partials/common/headers.haml +0 -23
  146. data/templates/project/templates/old/survivalkit/partials/common/inline-images.haml +0 -9
  147. data/templates/project/templates/old/survivalkit/partials/common/kbd.haml +0 -10
  148. data/templates/project/templates/old/survivalkit/partials/common/links.haml +0 -10
  149. data/templates/project/templates/old/survivalkit/partials/common/lists.haml +0 -55
  150. data/templates/project/templates/old/survivalkit/partials/common/others.haml +0 -35
  151. data/templates/project/templates/old/survivalkit/partials/common/paragraphs.haml +0 -15
  152. data/templates/project/templates/old/survivalkit/partials/common/pre.haml +0 -27
  153. data/templates/project/templates/old/survivalkit/partials/common/q.haml +0 -8
  154. data/templates/project/templates/old/survivalkit/partials/common/samp.haml +0 -8
  155. data/templates/project/templates/old/survivalkit/partials/common/strong.haml +0 -8
  156. data/templates/project/templates/old/survivalkit/partials/common/tables.haml +0 -43
  157. data/templates/project/templates/old/survivalkit/partials/common/var.haml +0 -8
  158. data/templates/project/templates/old/survivalkit/partials/header-styletile.haml +0 -9
  159. data/templates/project/templates/old/survivalkit/partials/header.haml +0 -6
  160. data/templates/project/templates/old/survivalkit/partials/html5/a.haml +0 -36
  161. data/templates/project/templates/old/survivalkit/partials/html5/abbr.haml +0 -26
  162. data/templates/project/templates/old/survivalkit/partials/html5/address.haml +0 -27
  163. data/templates/project/templates/old/survivalkit/partials/html5/all-headings.haml +0 -31
  164. data/templates/project/templates/old/survivalkit/partials/html5/article.haml +0 -22
  165. data/templates/project/templates/old/survivalkit/partials/html5/aside.haml +0 -20
  166. data/templates/project/templates/old/survivalkit/partials/html5/b.haml +0 -21
  167. data/templates/project/templates/old/survivalkit/partials/html5/bdi.haml +0 -30
  168. data/templates/project/templates/old/survivalkit/partials/html5/blockquote.haml +0 -32
  169. data/templates/project/templates/old/survivalkit/partials/html5/cite.haml +0 -46
  170. data/templates/project/templates/old/survivalkit/partials/html5/code.haml +0 -70
  171. data/templates/project/templates/old/survivalkit/partials/html5/details.haml +0 -42
  172. data/templates/project/templates/old/survivalkit/partials/html5/dfn.haml +0 -52
  173. data/templates/project/templates/old/survivalkit/partials/html5/dl.haml +0 -69
  174. data/templates/project/templates/old/survivalkit/partials/html5/em.haml +0 -15
  175. data/templates/project/templates/old/survivalkit/partials/html5/fieldset.haml +0 -49
  176. data/templates/project/templates/old/survivalkit/partials/html5/figure.haml +0 -48
  177. data/templates/project/templates/old/survivalkit/partials/html5/footer.haml +0 -37
  178. data/templates/project/templates/old/survivalkit/partials/html5/header.haml +0 -44
  179. data/templates/project/templates/old/survivalkit/partials/html5/hgroup.haml +0 -20
  180. data/templates/project/templates/old/survivalkit/partials/html5/hr.haml +0 -52
  181. data/templates/project/templates/old/survivalkit/partials/html5/i.haml +0 -28
  182. data/templates/project/templates/old/survivalkit/partials/html5/kbd.haml +0 -19
  183. data/templates/project/templates/old/survivalkit/partials/html5/label.haml +0 -18
  184. data/templates/project/templates/old/survivalkit/partials/html5/li.haml +0 -91
  185. data/templates/project/templates/old/survivalkit/partials/html5/mark.haml +0 -30
  186. data/templates/project/templates/old/survivalkit/partials/html5/menu.haml +0 -39
  187. data/templates/project/templates/old/survivalkit/partials/html5/nav.haml +0 -68
  188. data/templates/project/templates/old/survivalkit/partials/html5/ol.haml +0 -23
  189. data/templates/project/templates/old/survivalkit/partials/html5/p.haml +0 -41
  190. data/templates/project/templates/old/survivalkit/partials/html5/pre.haml +0 -48
  191. data/templates/project/templates/old/survivalkit/partials/html5/q.haml +0 -34
  192. data/templates/project/templates/old/survivalkit/partials/html5/ruby.haml +0 -55
  193. data/templates/project/templates/old/survivalkit/partials/html5/s.haml +0 -17
  194. data/templates/project/templates/old/survivalkit/partials/html5/samp.haml +0 -27
  195. data/templates/project/templates/old/survivalkit/partials/html5/sample-forms.haml +0 -52
  196. data/templates/project/templates/old/survivalkit/partials/html5/sample-tables.haml +0 -152
  197. data/templates/project/templates/old/survivalkit/partials/html5/section.haml +0 -21
  198. data/templates/project/templates/old/survivalkit/partials/html5/small.haml +0 -33
  199. data/templates/project/templates/old/survivalkit/partials/html5/strong.haml +0 -25
  200. data/templates/project/templates/old/survivalkit/partials/html5/sub-sup.haml +0 -58
  201. data/templates/project/templates/old/survivalkit/partials/html5/table.haml +0 -196
  202. data/templates/project/templates/old/survivalkit/partials/html5/text-summary.haml +0 -305
  203. data/templates/project/templates/old/survivalkit/partials/html5/thead.haml +0 -67
  204. data/templates/project/templates/old/survivalkit/partials/html5/time.haml +0 -31
  205. data/templates/project/templates/old/survivalkit/partials/html5/ul.haml +0 -21
  206. data/templates/project/templates/old/survivalkit/partials/menu.haml +0 -14
  207. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/block.haml +0 -7
  208. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/breadcrumbs.haml +0 -7
  209. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/comments.haml +0 -69
  210. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/field-image.haml +0 -7
  211. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-comment.haml +0 -54
  212. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-login.haml +0 -23
  213. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-new-account.haml +0 -24
  214. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/form-new-password.haml +0 -16
  215. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/links.haml +0 -6
  216. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/menu.haml +0 -10
  217. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/messages.haml +0 -21
  218. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/node.haml +0 -28
  219. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/pager.haml +0 -17
  220. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/rss-link.haml +0 -5
  221. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/search.haml +0 -14
  222. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/site-name.haml +0 -6
  223. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/tabs.haml +0 -14
  224. data/templates/project/templates/old/survivalkit/partials/patterns-drupal/taxonomy.haml +0 -10
  225. data/templates/project/templates/old/survivalkit/partials/patterns-general/block.haml +0 -7
  226. data/templates/project/templates/old/survivalkit/partials/patterns-general/breadcrumbs.haml +0 -7
  227. data/templates/project/templates/old/survivalkit/partials/patterns-general/comments.haml +0 -69
  228. data/templates/project/templates/old/survivalkit/partials/patterns-general/field-image.haml +0 -7
  229. data/templates/project/templates/old/survivalkit/partials/patterns-general/form-comment.haml +0 -54
  230. data/templates/project/templates/old/survivalkit/partials/patterns-general/form-login.haml +0 -23
  231. data/templates/project/templates/old/survivalkit/partials/patterns-general/form-new-account.haml +0 -24
  232. data/templates/project/templates/old/survivalkit/partials/patterns-general/form-new-password.haml +0 -16
  233. data/templates/project/templates/old/survivalkit/partials/patterns-general/links.haml +0 -6
  234. data/templates/project/templates/old/survivalkit/partials/patterns-general/menu.haml +0 -10
  235. data/templates/project/templates/old/survivalkit/partials/patterns-general/messages.haml +0 -21
  236. data/templates/project/templates/old/survivalkit/partials/patterns-general/node.haml +0 -28
  237. data/templates/project/templates/old/survivalkit/partials/patterns-general/pager.haml +0 -17
  238. data/templates/project/templates/old/survivalkit/partials/patterns-general/rss-link.haml +0 -5
  239. data/templates/project/templates/old/survivalkit/partials/patterns-general/search.haml +0 -14
  240. data/templates/project/templates/old/survivalkit/partials/patterns-general/site-name.haml +0 -6
  241. data/templates/project/templates/old/survivalkit/partials/patterns-general/tabs.haml +0 -14
  242. data/templates/project/templates/old/survivalkit/partials/patterns-general/taxonomy.haml +0 -10
  243. data/templates/project/templates/old/survivalkit/styletile/_layout.haml +0 -1
  244. data/templates/project/templates/old/survivalkit/styletile/index.redirect +0 -1
  245. data/templates/project/templates/old/survivalkit/styletile/styletile.haml +0 -60
  246. data/templates/project/templates/old/view_helpers.rb +0 -25
  247. data/templates/shared/survivalkit/drupal7.scss +0 -3224
  248. data/templates/shared/survivalkit/survivalkit.scss +0 -32
@@ -1,58 +0,0 @@
1
-
2
- // usage: log('inside coolFunc', this, arguments);
3
- // paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
4
- window.log = function(){
5
- log.history = log.history || []; // store logs to an array for reference
6
- log.history.push(arguments);
7
- if(this.console) {
8
- arguments.callee = arguments.callee.caller;
9
- console.log( Array.prototype.slice.call(arguments) );
10
- }
11
- };
12
- // make it safe to use console.log always
13
- (function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)b[a]=b[a]||c})(window.console=window.console||{});
14
-
15
-
16
- ////////////////////////////
17
- // PLUGINS FROM 320 AND UP
18
- ////////////////////////////
19
-
20
- // usage: log('inside coolFunc', this, arguments);
21
- window.log = function(){
22
- log.history = log.history || []; // store logs to an array for reference
23
- log.history.push(arguments);
24
- if(this.console) {
25
- arguments.callee = arguments.callee.caller;
26
- console.log( Array.prototype.slice.call(arguments) );
27
- }
28
- };
29
- (function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)b[a]=b[a]||c})(window.console=window.console||{});
30
-
31
-
32
- /*
33
- * jQuery Responsive menu plugin by Matt Kersley
34
- * Converts menus into a select elements for mobile devices and low browser widths
35
- * github.com/mattkersley/Responsive-Menu
36
- */
37
- (function(b){var c=0;b.fn.mobileMenu=function(g){function f(a){return a.attr("id")?b("#mobileMenu_"+a.attr("id")).length>0:(c++,a.attr("id","mm"+c),b("#mobileMenu_mm"+c).length>0)}function h(a){a.hide();b("#mobileMenu_"+a.attr("id")).show()}function k(a){if(a.is("ul, ol")){var e='<select id="mobileMenu_'+a.attr("id")+'" class="mobileMenu">';e+='<option value="">'+d.topOptionText+"</option>";a.find("li").each(function(){var a="",c=b(this).parents("ul, ol").length;for(i=1;i<c;i++)a+=d.indentString;
38
- c=b(this).find("a:first-child").attr("href");a+=b(this).clone().children("ul, ol").remove().end().text();e+='<option value="'+c+'">'+a+"</option>"});e+="</select>";a.parent().append(e);b("#mobileMenu_"+a.attr("id")).change(function(){var a=b(this);if(a.val()!==null)document.location.href=a.val()});h(a)}else alert("mobileMenu will only work with UL or OL elements!")}function j(a){b(window).width()<d.switchWidth&&!f(a)?k(a):b(window).width()<d.switchWidth&&f(a)?h(a):!(b(window).width()<d.switchWidth)&&
39
- f(a)&&(a.show(),b("#mobileMenu_"+a.attr("id")).hide())}var d={switchWidth:768,topOptionText:"Select a page",indentString:"&nbsp;&nbsp;&nbsp;"};return this.each(function(){g&&b.extend(d,g);var a=b(this);b(window).resize(function(){j(a)});j(a)})}})(jQuery);
40
-
41
-
42
-
43
- /*
44
- * jQuery Extended Selectors plugin. (c) Keith Clark freely distributable under the terms of the MIT license.
45
- * Adds missing -of-type pseudo-class selectors to jQuery
46
- * github.com/keithclark/JQuery-Extended-Selectors - twitter.com/keithclarkcouk - keithclark.co.uk
47
- */
48
- (function(g){function e(a,b){for(var c=a,d=0;a=a[b];)c.tagName==a.tagName&&d++;return d}function h(a,b,c){a=e(a,c);if(b=="odd"||b=="even")c=2,a-=b!="odd";else{var d=b.indexOf("n");d>-1?(c=parseInt(b,10)||parseInt(b.substring(0,d)+"1",10),a-=(parseInt(b.substring(d+1),10)||0)-1):(c=a+1,a-=parseInt(b,10)-1)}return(c<0?a<=0:a>=0)&&a%c==0}var f={"first-of-type":function(a){return e(a,"previousSibling")==0},"last-of-type":function(a){return e(a,"nextSibling")==0},"only-of-type":function(a){return f["first-of-type"](a)&&
49
- f["last-of-type"](a)},"nth-of-type":function(a,b,c){return h(a,c[3],"previousSibling")},"nth-last-of-type":function(a,b,c){return h(a,c[3],"nextSibling")}};g.extend(g.expr[":"],f)})(jQuery);
50
-
51
-
52
-
53
- /*! http://mths.be/placeholder v1.8.5 by @mathias */
54
- (function(g,a,$){var f='placeholder' in a.createElement('input'),b='placeholder' in a.createElement('textarea');if(f&&b){$.fn.placeholder=function(){return this};$.fn.placeholder.input=$.fn.placeholder.textarea=true}else{$.fn.placeholder=function(){return this.filter((f?'textarea':':input')+'[placeholder]').bind('focus.placeholder',c).bind('blur.placeholder',e).trigger('blur.placeholder').end()};$.fn.placeholder.input=f;$.fn.placeholder.textarea=b;$(function(){$('form').bind('submit.placeholder',function(){var h=$('.placeholder',this).each(c);setTimeout(function(){h.each(e)},10)})});$(g).bind('unload.placeholder',function(){$('.placeholder').val('')})}function d(i){var h={},j=/^jQuery\d+$/;$.each(i.attributes,function(l,k){if(k.specified&&!j.test(k.name)){h[k.name]=k.value}});return h}function c(){var h=$(this);if(h.val()===h.attr('placeholder')&&h.hasClass('placeholder')){if(h.data('placeholder-password')){h.hide().next().show().focus().attr('id',h.removeAttr('id').data('placeholder-id'))}else{h.val('').removeClass('placeholder')}}}function e(){var l,k=$(this),h=k,j=this.id;if(k.val()===''){if(k.is(':password')){if(!k.data('placeholder-textinput')){try{l=k.clone().attr({type:'text'})}catch(i){l=$('<input>').attr($.extend(d(this),{type:'text'}))}l.removeAttr('name').data('placeholder-password',true).data('placeholder-id',j).bind('focus.placeholder',c);k.data('placeholder-textinput',l).data('placeholder-id',j).before(l)}k=k.removeAttr('id').hide().prev().attr('id',j).show()}k.addClass('placeholder').val(k.attr('placeholder'))}else{k.removeClass('placeholder')}}}(this,document,jQuery));
55
-
56
-
57
-
58
- // place any jQuery/helper plugins in here, instead of separate, slower script files.
@@ -1,7 +0,0 @@
1
- /*
2
- * respond.js - A small and fast polyfill for min/max-width CSS3 Media Queries
3
- * Copyright 2011, Scott Jehl, scottjehl.com
4
- * Dual licensed under the MIT or GPL Version 2 licenses.
5
- * Usage: Check out the readme file or github.com/scottjehl/respond
6
- */
7
- (function(e,h){e.respond={};respond.update=function(){};respond.mediaQueriesSupported=h;if(h){return}var u=e.document,r=u.documentElement,i=[],k=[],p=[],o={},g=30,f=u.getElementsByTagName("head")[0]||r,b=f.getElementsByTagName("link"),d=[],a=function(){var B=b,w=B.length;for(var z=0;z<w;z++){var y=B[z],x=y.href,A=y.media,v=y.rel&&y.rel.toLowerCase()==="stylesheet";if(!!x&&v&&!o[x]){if(!/^([a-zA-Z]+?:(\/\/)?(www\.)?)/.test(x)||x.replace(RegExp.$1,"").split("/")[0]===e.location.host){d.push({href:x,media:A})}else{o[x]=true}}}t()},t=function(){if(d.length){var v=d.shift();n(v.href,function(w){m(w,v.href,v.media);o[v.href]=true;t()})}},m=function(G,v,x){var E=G.match(/@media ([^\{]+)\{((?!@media)[\s\S])*(?=\}[\s]*\/\*\/mediaquery\*\/)/gmi),H=E&&E.length||0,v=v.substring(0,v.lastIndexOf("/")),w=function(I){return I.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+v+"$2$3")},y=!H&&x;if(v.length){v+="/"}if(y){H=1}for(var B=0;B<H;B++){var C;if(y){C=x;k.push(w(G))}else{C=E[B].match(/@media ([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;k.push(RegExp.$2&&w(RegExp.$2))}var z=C.split(","),F=z.length;for(var A=0;A<F;A++){var D=z[A];i.push({media:D.match(/(only\s+)?([a-zA-Z]+)(\sand)?/)&&RegExp.$2,rules:k.length-1,minw:D.match(/\(min\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1),maxw:D.match(/\(max\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1)})}}j()},l,q,j=function(E){var v="clientWidth",x=r[v],D=u.compatMode==="CSS1Compat"&&x||u.body[v]||x,z={},C=u.createDocumentFragment(),B=b[b.length-1],w=(new Date()).getTime();if(E&&l&&w-l<g){clearTimeout(q);q=setTimeout(j,g);return}else{l=w}for(var y in i){var F=i[y];if(!F.minw&&!F.maxw||(!F.minw||F.minw&&D>=F.minw)&&(!F.maxw||F.maxw&&D<=F.maxw)){if(!z[F.media]){z[F.media]=[]}z[F.media].push(k[F.rules])}}for(var y in p){if(p[y]&&p[y].parentNode===f){f.removeChild(p[y])}}for(var y in z){var G=u.createElement("style"),A=z[y].join("\n");G.type="text/css";G.media=y;if(G.styleSheet){G.styleSheet.cssText=A}else{G.appendChild(u.createTextNode(A))}C.appendChild(G);p.push(G)}f.insertBefore(C,B.nextSibling)},n=function(v,x){var w=c();if(!w){return}w.open("GET",v,true);w.onreadystatechange=function(){if(w.readyState!=4||w.status!=200&&w.status!=304){return}x(w.responseText)};if(w.readyState==4){return}w.send()},c=(function(){var v=false,w=[function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new XMLHttpRequest()}],y=w.length;while(y--){try{v=w[y]()}catch(x){continue}break}return function(){return v}})();a();respond.update=a;function s(){j(true)}if(e.addEventListener){e.addEventListener("resize",s,false)}else{if(e.attachEvent){e.attachEvent("onresize",s)}}})(this,(function(f){if(f.matchMedia){return true}var e,i=document,c=i.documentElement,g=c.firstElementChild||c.firstChild,h=!i.body,d=i.body||i.createElement("body"),b=i.createElement("div"),a="only all";b.id="mq-test-1";b.style.cssText="position:absolute;top:-99em";d.appendChild(b);b.innerHTML='_<style media="'+a+'"> #mq-test-1 { width: 9px; }</style>';if(h){c.insertBefore(d,g)}b.removeChild(b.firstChild);e=b.offsetWidth==9;if(h){c.removeChild(d)}else{d.removeChild(b)}return e})(this));
@@ -1,5 +0,0 @@
1
- /*!
2
- * selectivizr v1.0.2 - (c) Keith Clark, freely distributable under the terms of the MIT license.
3
- * selectivizr.com
4
- */
5
- (function(j){function A(a){return a.replace(B,h).replace(C,function(a,d,b){for(var a=b.split(","),b=0,e=a.length;b<e;b++){var s=D(a[b].replace(E,h).replace(F,h))+o,l=[];a[b]=s.replace(G,function(a,b,c,d,e){if(b){if(l.length>0){var a=l,f,e=s.substring(0,e).replace(H,i);if(e==i||e.charAt(e.length-1)==o)e+="*";try{f=t(e)}catch(k){}if(f){e=0;for(c=f.length;e<c;e++){for(var d=f[e],h=d.className,j=0,m=a.length;j<m;j++){var g=a[j];if(!RegExp("(^|\\s)"+g.className+"(\\s|$)").test(d.className)&&g.b&&(g.b===!0||g.b(d)===!0))h=u(h,g.className,!0)}d.className=h}}l=[]}return b}else{if(b=c?I(c):!v||v.test(d)?{className:w(d),b:!0}:null)return l.push(b),"."+b.className;return a}})}return d+a.join(",")})}function I(a){var c=!0,d=w(a.slice(1)),b=a.substring(0,5)==":not(",e,f;b&&(a=a.slice(5,-1));var l=a.indexOf("(");l>-1&&(a=a.substring(0,l));if(a.charAt(0)==":")switch(a.slice(1)){case "root":c=function(a){return b?a!=p:a==p};break;case "target":if(m==8){c=function(a){function c(){var d=location.hash,e=d.slice(1);return b?d==i||a.id!=e:d!=i&&a.id==e}k(j,"hashchange",function(){g(a,d,c())});return c()};break}return!1;case "checked":c=function(a){J.test(a.type)&&k(a,"propertychange",function(){event.propertyName=="checked"&&g(a,d,a.checked!==b)});return a.checked!==b};break;case "disabled":b=!b;case "enabled":c=function(c){if(K.test(c.tagName))return k(c,"propertychange",function(){event.propertyName=="$disabled"&&g(c,d,c.a===b)}),q.push(c),c.a=c.disabled,c.disabled===b;return a==":enabled"?b:!b};break;case "focus":e="focus",f="blur";case "hover":e||(e="mouseenter",f="mouseleave");c=function(a){k(a,b?f:e,function(){g(a,d,!0)});k(a,b?e:f,function(){g(a,d,!1)});return b};break;default:if(!L.test(a))return!1}return{className:d,b:c}}function w(a){return M+"-"+(m==6&&N?O++:a.replace(P,function(a){return a.charCodeAt(0)}))}function D(a){return a.replace(x,h).replace(Q,o)}function g(a,c,d){var b=a.className,c=u(b,c,d);if(c!=b)a.className=c,a.parentNode.className+=i}function u(a,c,d){var b=RegExp("(^|\\s)"+c+"(\\s|$)"),e=b.test(a);return d?e?a:a+o+c:e?a.replace(b,h).replace(x,h):a}function k(a,c,d){a.attachEvent("on"+c,d)}function r(a,c){if(/^https?:\/\//i.test(a))return c.substring(0,c.indexOf("/",8))==a.substring(0,a.indexOf("/",8))?a:null;if(a.charAt(0)=="/")return c.substring(0,c.indexOf("/",8))+a;var d=c.split(/[?#]/)[0];a.charAt(0)!="?"&&d.charAt(d.length-1)!="/"&&(d=d.substring(0,d.lastIndexOf("/")+1));return d+a}function y(a){if(a)return n.open("GET",a,!1),n.send(),(n.status==200?n.responseText:i).replace(R,i).replace(S,function(c,d,b,e,f){return y(r(b||f,a))}).replace(T,function(c,d,b){d=d||i;return" url("+d+r(b,a)+d+") "});return i}function U(){var a,c;a=f.getElementsByTagName("BASE");for(var d=a.length>0?a[0].href:f.location.href,b=0;b<f.styleSheets.length;b++)if(c=f.styleSheets[b],c.href!=i&&(a=r(c.href,d)))c.cssText=A(y(a));q.length>0&&setInterval(function(){for(var a=0,c=q.length;a<c;a++){var b=q[a];if(b.disabled!==b.a)b.disabled?(b.disabled=!1,b.a=!0,b.disabled=!0):b.a=b.disabled}},250)}if(!/*@cc_on!@*/true){var f=document,p=f.documentElement,n=function(){if(j.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){return null}}(),m=/MSIE (\d+)/.exec(navigator.userAgent)[1];if(!(f.compatMode!="CSS1Compat"||m<6||m>8||!n)){var z={NW:"*.Dom.select",MooTools:"$$",DOMAssistant:"*.$",Prototype:"$$",YAHOO:"*.util.Selector.query",Sizzle:"*",jQuery:"*",dojo:"*.query"},t,q=[],O=0,N=!0,M="slvzr",R=/(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)\s*/g,S=/@import\s*(?:(?:(?:url\(\s*(['"]?)(.*)\1)\s*\))|(?:(['"])(.*)\3))[^;]*;/g,T=/\burl\(\s*(["']?)(?!data:)([^"')]+)\1\s*\)/g,L=/^:(empty|(first|last|only|nth(-last)?)-(child|of-type))$/,B=/:(:first-(?:line|letter))/g,C=/(^|})\s*([^\{]*?[\[:][^{]+)/g,G=/([ +~>])|(:[a-z-]+(?:\(.*?\)+)?)|(\[.*?\])/g,H=/(:not\()?:(hover|enabled|disabled|focus|checked|target|active|visited|first-line|first-letter)\)?/g,P=/[^\w-]/g,K=/^(INPUT|SELECT|TEXTAREA|BUTTON)$/,J=/^(checkbox|radio)$/,v=m>6?/[\$\^*]=(['"])\1/:null,E=/([(\[+~])\s+/g,F=/\s+([)\]+~])/g,Q=/\s+/g,x=/^\s*((?:[\S\s]*\S)?)\s*$/,i="",o=" ",h="$1";(function(a,c){function d(){try{p.doScroll("left")}catch(a){setTimeout(d,50);return}b("poll")}function b(d){if(!(d.type=="readystatechange"&&f.readyState!="complete")&&((d.type=="load"?a:f).detachEvent("on"+d.type,b,!1),!e&&(e=!0)))c.call(a,d.type||d)}var e=!1,g=!0;if(f.readyState=="complete")c.call(a,i);else{if(f.createEventObject&&p.doScroll){try{g=!a.frameElement}catch(h){}g&&d()}k(f,"readystatechange",b);k(a,"load",b)}})(j,function(){for(var a in z){var c,d,b=j;if(j[a]){for(c=z[a].replace("*",a).split(".");(d=c.shift())&&(b=b[d]););if(typeof b=="function"){t=b;U();break}}}})}}})(this);
@@ -1,5 +0,0 @@
1
- /*!
2
- * selectivizr v1.0.1 - (c) Keith Clark, freely distributable under the terms of the MIT license.
3
- * selectivizr.com
4
- */
5
- var k=true,p=false;(function(A){function N(a){return a.replace(O,q).replace(P,function(b,e,c){b=c.split(",");c=0;for(var g=b.length;c<g;c++){var h=Q(b[c].replace(R,q).replace(S,q))+w,f=[];b[c]=h.replace(T,function(d,l,m,j,i){if(l){if(f.length>0){d=f;var x;i=h.substring(0,i).replace(U,o);if(i==o||i.charAt(i.length-1)==w)i+="*";try{x=y(i)}catch(ha){}if(x){i=0;for(m=x.length;i<m;i++){j=x[i];for(var B=j.className,C=0,V=d.length;C<V;C++){var r=d[C];if(!RegExp("(^|\\s)"+r.className+"(\\s|$)").test(j.className))if(r.b&&(r.b===k||r.b(j)===k))B=E(B,r.className,k)}j.className=B}}f=[]}return l}else{if(l=m?W(m):!F||F.test(j)?{className:G(j),b:k}:null){f.push(l);return"."+l.className}return d}})}return e+b.join(",")})}function W(a){var b=k,e=G(a.slice(1)),c=a.substring(0,5)==":not(",g,h;if(c)a=a.slice(5,-1);var f=a.indexOf("(");if(f>-1)a=a.substring(0,f);if(a.charAt(0)==":")switch(a.slice(1)){case "root":b=function(d){return c?d!=H:d==H};break;case "target":if(s==8){b=function(d){function l(){var m=location.hash,j=m.slice(1);return c?m==""||d.id!=j:m!=""&&d.id==j}t(A,"hashchange",function(){u(d,e,l())});return l()};break}return p;case "checked":b=function(d){X.test(d.type)&&t(d,"propertychange",function(){event.propertyName=="checked"&&u(d,e,d.checked!==c)});return d.checked!==c};break;case "disabled":c=!c;case "enabled":b=function(d){if(Y.test(d.tagName)){t(d,"propertychange",function(){event.propertyName=="$disabled"&&u(d,e,d.a===c)});z.push(d);d.a=d.disabled;return d.disabled===c}return a==":enabled"?c:!c};break;case "focus":g="focus";h="blur";case "hover":if(!g){g="mouseenter";h="mouseleave"}b=function(d){t(d,c?h:g,function(){u(d,e,k)});t(d,c?g:h,function(){u(d,e,p)});return c};break;default:if(!Z.test(a))return p}return{className:e,b:b}}function G(a){return I+"-"+(s==6&&$?aa++:a.replace(ba,function(b){return b.charCodeAt(0)}))}function Q(a){return a.replace(J,q).replace(ca,w)}function u(a,b,e){var c=a.className;b=E(c,b,e);if(b!=c){a.className=b;a.parentNode.className+=o}}function E(a,b,e){var c=RegExp("(^|\\s)"+b+"(\\s|$)"),g=c.test(a);return e?g?a:a+w+b:g?a.replace(c,q).replace(J,q):a}function t(a,b,e){a.attachEvent("on"+b,e)}function D(a,b){if(/^https?:\/\//i.test(a))return b.substring(0,b.indexOf("/",8))==a.substring(0,a.indexOf("/",8))?a:null;if(a.charAt(0)=="/")return b.substring(0,b.indexOf("/",8))+a;var e=b.split("?")[0];if(a.charAt(0)!="?"&&e.charAt(e.length-1)!="/")e=e.substring(0,e.lastIndexOf("/")+1);return e+a}function K(a){if(a){v.open("GET",a,p);v.send();return(v.status==200?v.responseText:o).replace(da,o).replace(ea,function(b,e,c,g,h){return K(D(c||h,a))}).replace(fa,function(b,e,c){e=e||"";return" url("+e+D(c,a)+e+") "})}return o}function ga(){var a,b;a=n.getElementsByTagName("BASE");for(var e=a.length>0?a[0].href:n.location.href,c=0;c<n.styleSheets.length;c++){b=n.styleSheets[c];if(b.href!=o)if(a=D(b.href,e))b.cssText=N(K(a))}z.length>0&&setInterval(function(){for(var g=0,h=z.length;g<h;g++){var f=z[g];if(f.disabled!==f.a)if(f.disabled){f.disabled=p;f.a=k;f.disabled=k}else f.a=f.disabled}},250)}if(!/*@cc_on!@*/true){var n=document,H=n.documentElement,v=function(){if(A.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){return null}}(),s=/MSIE ([\d])/.exec(navigator.userAgent)[1];if(!(n.compatMode!="CSS1Compat"||s<6||s>8||!v)){var L={NW:"*.Dom.select",DOMAssistant:"*.$",Prototype:"$$",YAHOO:"*.util.Selector.query",MooTools:"$$",Sizzle:"*",jQuery:"*",dojo:"*.query"},y,z=[],aa=0,$=k,I="slvzr",M=I+"DOMReady",da=/(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)\s*/g,ea=/@import\s*(?:(?:(?:url\(\s*(['"]?)(.*)\1)\s*\))|(?:(['"])(.*)\3))[^;]*;/g,fa=/\burl\(\s*(["']?)([^"')]+)\1\s*\)/g,Z=/^:(empty|(first|last|only|nth(-last)?)-(child|of-type))$/,O=/:(:first-(?:line|letter))/g,P=/(^|})\s*([^\{]*?[\[:][^{]+)/g,T=/([ +~>])|(:[a-z-]+(?:\(.*?\)+)?)|(\[.*?\])/g,U=/(:not\()?:(hover|enabled|disabled|focus|checked|target|active|visited|first-line|first-letter)\)?/g,ba=/[^\w-]/g,Y=/^(INPUT|SELECT|TEXTAREA|BUTTON)$/,X=/^(checkbox|radio)$/,F=s>6?/[\$\^*]=(['"])\1/:null,R=/([(\[+~])\s+/g,S=/\s+([)\]+~])/g,ca=/\s+/g,J=/^\s*((?:[\S\s]*\S)?)\s*$/,o="",w=" ",q="$1";n.write("<script id="+M+" defer src='//:'><\/script>");n.getElementById(M).onreadystatechange=function(){if(this.readyState=="complete"){a:{var a,b;for(b in L)if(A[b]&&(a=eval(L[b].replace("*",b)))){y=a;break a}y=p}if(y){ga();this.parentNode.removeChild(this)}}}}}})(this);
@@ -1,25 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
3
- <cross-domain-policy>
4
-
5
-
6
- <!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
7
-
8
- <!-- Most restrictive policy: -->
9
- <site-control permitted-cross-domain-policies="none"/>
10
-
11
-
12
-
13
- <!-- Least restrictive policy: -->
14
- <!--
15
- <site-control permitted-cross-domain-policies="all"/>
16
- <allow-access-from domain="*" to-ports="*" secure="false"/>
17
- <allow-http-request-headers-from domain="*" headers="*" secure="false"/>
18
- -->
19
- <!--
20
- If you host a crossdomain.xml file with allow-access-from domain="*"
21
- and don’t understand all of the points described here, you probably
22
- have a nasty security vulnerability. ~ simon willison
23
- -->
24
-
25
- </cross-domain-policy>
Binary file
Binary file
@@ -1,22 +0,0 @@
1
- # survivalkitHelper will first check your ENV and
2
- # then this yml file for these values. If they are both
3
- # empty, the google code block will not be used.
4
- #
5
- # e.g. ENV['GOOGLE_ACCOUNT_ID'] || yml[:google_account_id]
6
- # e.g. ENV['GOOGLE_API_KEY'] || yml[:google_api_key]
7
- #
8
- defaults: &defaults
9
- :google_account_id: ''
10
- :google_api_key: ''
11
-
12
- :development:
13
- <<: *defaults
14
-
15
- :test:
16
- <<: *defaults
17
-
18
- :staging:
19
- <<: *defaults
20
-
21
- :production:
22
- <<: *defaults
@@ -1,478 +0,0 @@
1
- # Apache configuration file
2
- # httpd.apache.org/docs/2.2/mod/quickreference.html
3
-
4
- # Note .htaccess files are an overhead, this logic should be in your Apache config if possible
5
- # httpd.apache.org/docs/2.2/howto/htaccess.html
6
-
7
- # Techniques in here adapted from all over, including:
8
- # Kroc Camen: camendesign.com/.htaccess
9
- # perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/
10
- # Sample .htaccess file of CMS MODx: modxcms.com
11
-
12
-
13
- ###
14
- ### If you run a webserver other than apache, consider:
15
- ### github.com/paulirish/html5-boilerplate-server-configs
16
- ###
17
-
18
-
19
-
20
- # ----------------------------------------------------------------------
21
- # Better website experience for IE users
22
- # ----------------------------------------------------------------------
23
-
24
- # Force the latest IE version, in various cases when it may fall back to IE7 mode
25
- # github.com/rails/rails/commit/123eb25#commitcomment-118920
26
- # Use ChromeFrame if it's installed for a better experience for the poor IE folk
27
-
28
- <IfModule mod_setenvif.c>
29
- <IfModule mod_headers.c>
30
- BrowserMatch MSIE ie
31
- Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
32
- </IfModule>
33
- </IfModule>
34
-
35
- <IfModule mod_headers.c>
36
- # Because X-UA-Compatible isn't sent to non-IE (to save header bytes),
37
- # We need to inform proxies that content changes based on UA
38
- Header append Vary User-Agent
39
- # Cache control is set only if mod_headers is enabled, so that's unncessary to declare
40
- </IfModule>
41
-
42
-
43
- # ----------------------------------------------------------------------
44
- # Cross-domain AJAX requests
45
- # ----------------------------------------------------------------------
46
-
47
- # Serve cross-domain ajax requests, disabled.
48
- # enable-cors.org
49
- # code.google.com/p/html5security/wiki/CrossOriginRequestSecurity
50
-
51
- # <IfModule mod_headers.c>
52
- # Header set Access-Control-Allow-Origin "*"
53
- # </IfModule>
54
-
55
-
56
-
57
- # ----------------------------------------------------------------------
58
- # Webfont access
59
- # ----------------------------------------------------------------------
60
-
61
- # allow access from all domains for webfonts
62
- # alternatively you could only whitelist
63
- # your subdomains like "sub.domain.com"
64
-
65
- <FilesMatch "\.(ttf|otf|eot|woff|font.css)$">
66
- <IfModule mod_headers.c>
67
- Header set Access-Control-Allow-Origin "*"
68
- </IfModule>
69
- </FilesMatch>
70
-
71
-
72
-
73
- # ----------------------------------------------------------------------
74
- # Proper MIME type for all files
75
- # ----------------------------------------------------------------------
76
-
77
- # audio
78
- AddType audio/ogg oga ogg
79
-
80
- # video
81
- AddType video/ogg ogv
82
- AddType video/mp4 mp4
83
- AddType video/webm webm
84
-
85
- # Proper svg serving. Required for svg webfonts on iPad
86
- # twitter.com/FontSquirrel/status/14855840545
87
- AddType image/svg+xml svg svgz
88
- AddEncoding gzip svgz
89
-
90
- # webfonts
91
- AddType application/vnd.ms-fontobject eot
92
- AddType font/truetype ttf
93
- AddType font/opentype otf
94
- AddType application/x-font-woff woff
95
-
96
- # assorted types
97
- AddType image/x-icon ico
98
- AddType image/webp webp
99
- AddType text/cache-manifest appcache manifest
100
- AddType text/x-component htc
101
- AddType application/x-chrome-extension crx
102
- AddType application/x-xpinstall xpi
103
- AddType application/octet-stream safariextz
104
-
105
-
106
-
107
- # ----------------------------------------------------------------------
108
- # Allow concatenation from within specific js and css files
109
- # ----------------------------------------------------------------------
110
-
111
- # e.g. Inside of script.combined.js you could have
112
- # <!--#include file="libs/jquery-1.5.0.min.js" -->
113
- # <!--#include file="plugins/jquery.idletimer.js" -->
114
- # and they would be included into this single file
115
-
116
- # this is not in use in the boilerplate as it stands. you may
117
- # choose to name your files in this way for this advantage
118
- # or concatenate and minify them manually.
119
- # Disabled by default.
120
-
121
- # <FilesMatch "\.combined\.(js|css)$">
122
- # Options +Includes
123
- # SetOutputFilter INCLUDES
124
- # </FilesMatch>
125
-
126
-
127
-
128
- # ----------------------------------------------------------------------
129
- # gzip compression
130
- # ----------------------------------------------------------------------
131
-
132
- <IfModule mod_deflate.c>
133
-
134
-
135
- # force deflate for mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/
136
- <IfModule mod_setenvif.c>
137
- <IfModule mod_headers.c>
138
- SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s,?\s(gzip|deflate)?|X{4,13}|~{4,13}|-{4,13})$ HAVE_Accept-Encoding
139
- RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
140
- </IfModule>
141
- </IfModule>
142
- # html, txt, css, js, json, xml, htc:
143
- <IfModule filter_module>
144
- FilterDeclare COMPRESS
145
- FilterProvider COMPRESS DEFLATE resp=Content-Type /text/(html|css|javascript|plain|x(ml|-component))/
146
- FilterProvider COMPRESS DEFLATE resp=Content-Type /application/(javascript|json|xml|x-javascript)/
147
- FilterChain COMPRESS
148
- FilterProtocol COMPRESS change=yes;byteranges=no
149
- </IfModule>
150
-
151
- <IfModule !mod_filter.c>
152
- # Legacy versions of Apache
153
- AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
154
- AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
155
- AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
156
- </IfModule>
157
-
158
- # webfonts and svg:
159
- <FilesMatch "\.(ttf|otf|eot|svg)$" >
160
- SetOutputFilter DEFLATE
161
- </FilesMatch>
162
- </IfModule>
163
-
164
-
165
-
166
- # ----------------------------------------------------------------------
167
- # Expires headers (for better cache control)
168
- # ----------------------------------------------------------------------
169
-
170
- # these are pretty far-future expires headers
171
- # they assume you control versioning with cachebusting query params like
172
- # <script src="application.js?20100608">
173
- # additionally, consider that outdated proxies may miscache
174
- # www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/
175
-
176
- # if you don't use filenames to version, lower the css and js to something like
177
- # "access plus 1 week" or so
178
-
179
- <IfModule mod_expires.c>
180
- ExpiresActive on
181
-
182
- # Perhaps better to whitelist expires rules? Perhaps.
183
- ExpiresDefault "access plus 1 month"
184
-
185
- # cache.appcache needs re-requests in FF 3.6 (thx Remy ~Introducing HTML5)
186
- ExpiresByType text/cache-manifest "access plus 0 seconds"
187
-
188
- # your document html
189
- ExpiresByType text/html "access plus 0 seconds"
190
-
191
- # data
192
- ExpiresByType text/xml "access plus 0 seconds"
193
- ExpiresByType application/xml "access plus 0 seconds"
194
- ExpiresByType application/json "access plus 0 seconds"
195
-
196
- # rss feed
197
- ExpiresByType application/rss+xml "access plus 1 hour"
198
-
199
- # favicon (cannot be renamed)
200
- ExpiresByType image/x-icon "access plus 1 week"
201
-
202
- # media: images, video, audio
203
- ExpiresByType image/gif "access plus 1 month"
204
- ExpiresByType image/png "access plus 1 month"
205
- ExpiresByType image/jpg "access plus 1 month"
206
- ExpiresByType image/jpeg "access plus 1 month"
207
- ExpiresByType video/ogg "access plus 1 month"
208
- ExpiresByType audio/ogg "access plus 1 month"
209
- ExpiresByType video/mp4 "access plus 1 month"
210
- ExpiresByType video/webm "access plus 1 month"
211
-
212
- # htc files (css3pie)
213
- ExpiresByType text/x-component "access plus 1 month"
214
-
215
- # webfonts
216
- ExpiresByType font/truetype "access plus 1 month"
217
- ExpiresByType font/opentype "access plus 1 month"
218
- ExpiresByType application/x-font-woff "access plus 1 month"
219
- ExpiresByType image/svg+xml "access plus 1 month"
220
- ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
221
-
222
- # css and javascript
223
- ExpiresByType text/css "access plus 2 months"
224
- ExpiresByType application/javascript "access plus 2 months"
225
- ExpiresByType text/javascript "access plus 2 months"
226
-
227
- <IfModule mod_headers.c>
228
- Header append Cache-Control "public"
229
- </IfModule>
230
-
231
- </IfModule>
232
-
233
-
234
-
235
- # ----------------------------------------------------------------------
236
- # ETag removal
237
- # ----------------------------------------------------------------------
238
-
239
- # Since we're sending far-future expires, we don't need ETags for
240
- # static content.
241
- # developer.yahoo.com/performance/rules.html#etags
242
- FileETag None
243
-
244
-
245
-
246
- # ----------------------------------------------------------------------
247
- # Stop screen flicker in IE on CSS rollovers
248
- # ----------------------------------------------------------------------
249
-
250
- # The following directives stop screen flicker in IE on CSS rollovers - in
251
- # combination with the "ExpiresByType" rules for images (see above). If
252
- # needed, un-comment the following rules.
253
-
254
- # BrowserMatch "MSIE" brokenvary=1
255
- # BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
256
- # BrowserMatch "Opera" !brokenvary
257
- # SetEnvIf brokenvary 1 force-no-vary
258
-
259
-
260
-
261
- # ----------------------------------------------------------------------
262
- # Cookie setting from iframes
263
- # ----------------------------------------------------------------------
264
-
265
- # Allow cookies to be set from iframes (for IE only)
266
- # If needed, uncomment and specify a path or regex in the Location directive
267
-
268
- # <IfModule mod_headers.c>
269
- # <Location />
270
- # Header set P3P "policyref=\"/w3c/p3p.xml\", CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\""
271
- # </Location>
272
- # </IfModule>
273
-
274
-
275
-
276
- # ----------------------------------------------------------------------
277
- # Start rewrite engine
278
- # ----------------------------------------------------------------------
279
-
280
- # Turning on the rewrite engine is necessary for the following rules and features.
281
-
282
- <IfModule mod_rewrite.c>
283
- RewriteEngine On
284
- </IfModule>
285
-
286
-
287
-
288
- # ----------------------------------------------------------------------
289
- # Suppress or force the "www." at the beginning of URLs
290
- # ----------------------------------------------------------------------
291
-
292
- # The same content should never be available under two different URLs - especially not with and
293
- # without "www." at the beginning, since this can cause SEO problems (duplicate content).
294
- # That's why you should choose one of the alternatives and redirect the other one.
295
-
296
- # By default option 1 (no "www.") is activated. Remember: Shorter URLs are sexier.
297
- # no-www.org/faq.php?q=class_b
298
-
299
- # If you rather want to use option 2, just comment out all option 1 lines
300
- # and uncomment option 2.
301
- # IMPORTANT: NEVER USE BOTH RULES AT THE SAME TIME!
302
-
303
- # ----------------------------------------------------------------------
304
-
305
- # Option 1:
306
- # Rewrite "www.domain.com -> domain.com"
307
-
308
- <IfModule mod_rewrite.c>
309
- RewriteCond %{HTTPS} !=on
310
- RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
311
- RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
312
- </IfModule>
313
-
314
- # ----------------------------------------------------------------------
315
-
316
- # Option 2:
317
- # To rewrite "domain.com -> www.domain.com" uncomment the following lines.
318
- # Be aware that the following rule might not be a good idea if you
319
- # use "real" subdomains for certain parts of your website.
320
-
321
- # <IfModule mod_rewrite.c>
322
- # RewriteCond %{HTTPS} !=on
323
- # RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
324
- # RewriteCond %{HTTP_HOST} (.+)$ [NC]
325
- # RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]
326
- # </IfModule>
327
-
328
-
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
-
385
- # ----------------------------------------------------------------------
386
- # Prevent SSL cert warnings
387
- # ----------------------------------------------------------------------
388
-
389
- # Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent
390
- # https://www.domain.com when your cert only allows https://secure.domain.com
391
- # Uncomment the following lines to use this feature.
392
-
393
- # <IfModule mod_rewrite.c>
394
- # RewriteCond %{SERVER_PORT} !^443
395
- # RewriteRule (.*) https://example-domain-please-change-me.com/$1 [R=301,L]
396
- # </IfModule>
397
-
398
-
399
-
400
- # ----------------------------------------------------------------------
401
- # Prevent 404 errors for non-existing redirected folders
402
- # ----------------------------------------------------------------------
403
-
404
- # without -MultiViews, Apache will give a 404 for a rewrite if a folder of the same name does not exist
405
- # e.g. /blog/hello : webmasterworld.com/apache/3808792.htm
406
-
407
- Options -MultiViews
408
-
409
-
410
-
411
- # ----------------------------------------------------------------------
412
- # custom 404 page
413
- # ----------------------------------------------------------------------
414
-
415
- # You can add custom pages to handle 500 or 403 pretty easily, if you like.
416
- ErrorDocument 404 /404.html
417
-
418
-
419
-
420
- # ----------------------------------------------------------------------
421
- # UTF-8 encoding
422
- # ----------------------------------------------------------------------
423
-
424
- # use utf-8 encoding for anything served text/plain or text/html
425
- AddDefaultCharset utf-8
426
-
427
- # force utf-8 for a number of file formats
428
- AddCharset utf-8 .html .css .js .xml .json .rss
429
-
430
-
431
-
432
- # ----------------------------------------------------------------------
433
- # A little more security
434
- # ----------------------------------------------------------------------
435
-
436
-
437
- # Do we want to advertise the exact version number of Apache we're running?
438
- # Probably not.
439
- ## This can only be enabled if used in httpd.conf - It will not work in .htaccess
440
- # ServerTokens Prod
441
-
442
-
443
- # "-Indexes" will have Apache block users from browsing folders without a default document
444
- # Usually you should leave this activated, because you shouldn't allow everybody to surf through
445
- # every folder on your server (which includes rather private places like CMS system folders).
446
- Options -Indexes
447
-
448
-
449
- # Block access to "hidden" directories whose names begin with a period. This
450
- # includes directories used by version control systems such as Subversion or Git.
451
- <IfModule mod_rewrite.c>
452
- RewriteRule "(^|/)\." - [F]
453
- </IfModule>
454
-
455
-
456
- # If your server is not already configured as such, the following directive
457
- # should be uncommented in order to set PHP's register_globals option to OFF.
458
- # This closes a major security hole that is abused by most XSS (cross-site
459
- # scripting) attacks. For more information: http://php.net/register_globals
460
- #
461
- # IF REGISTER_GLOBALS DIRECTIVE CAUSES 500 INTERNAL SERVER ERRORS :
462
- #
463
- # Your server does not allow PHP directives to be set via .htaccess. In that
464
- # case you must make this change in your php.ini file instead. If you are
465
- # using a commercial web host, contact the administrators for assistance in
466
- # doing this. Not all servers allow local php.ini files, and they should
467
- # include all PHP configurations (not just this one), or you will effectively
468
- # reset everything to PHP defaults. Consult www.php.net for more detailed
469
- # information about setting PHP directives.
470
-
471
- # php_flag register_globals Off
472
-
473
-
474
- # Increase cookie security
475
- <IfModule php5_module>
476
- php_value session.cookie_httponly true
477
- </IfModule>
478
-