us_web_design_standards 0.0.0 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +37 -4
  3. data/app/assets/fonts/merriweather-bold-webfont.eot +0 -0
  4. data/app/assets/fonts/merriweather-bold-webfont.svg +294 -0
  5. data/app/assets/fonts/merriweather-bold-webfont.ttf +0 -0
  6. data/app/assets/fonts/merriweather-bold-webfont.woff +0 -0
  7. data/app/assets/fonts/merriweather-bold-webfont.woff2 +0 -0
  8. data/app/assets/fonts/merriweather-italic-webfont.eot +0 -0
  9. data/app/assets/fonts/merriweather-italic-webfont.svg +283 -0
  10. data/app/assets/fonts/merriweather-italic-webfont.ttf +0 -0
  11. data/app/assets/fonts/merriweather-italic-webfont.woff +0 -0
  12. data/app/assets/fonts/merriweather-italic-webfont.woff2 +0 -0
  13. data/app/assets/fonts/merriweather-light-webfont.eot +0 -0
  14. data/app/assets/fonts/merriweather-light-webfont.svg +299 -0
  15. data/app/assets/fonts/merriweather-light-webfont.ttf +0 -0
  16. data/app/assets/fonts/merriweather-light-webfont.woff +0 -0
  17. data/app/assets/fonts/merriweather-light-webfont.woff2 +0 -0
  18. data/app/assets/fonts/merriweather-regular-webfont.eot +0 -0
  19. data/app/assets/fonts/merriweather-regular-webfont.svg +294 -0
  20. data/app/assets/fonts/merriweather-regular-webfont.ttf +0 -0
  21. data/app/assets/fonts/merriweather-regular-webfont.woff +0 -0
  22. data/app/assets/fonts/merriweather-regular-webfont.woff2 +0 -0
  23. data/app/assets/fonts/sourcesanspro-bold-webfont.eot +0 -0
  24. data/app/assets/fonts/sourcesanspro-bold-webfont.svg +965 -0
  25. data/app/assets/fonts/sourcesanspro-bold-webfont.ttf +0 -0
  26. data/app/assets/fonts/sourcesanspro-bold-webfont.woff +0 -0
  27. data/app/assets/fonts/sourcesanspro-bold-webfont.woff2 +0 -0
  28. data/app/assets/fonts/sourcesanspro-italic-webfont.eot +0 -0
  29. data/app/assets/fonts/sourcesanspro-italic-webfont.svg +853 -0
  30. data/app/assets/fonts/sourcesanspro-italic-webfont.ttf +0 -0
  31. data/app/assets/fonts/sourcesanspro-italic-webfont.woff +0 -0
  32. data/app/assets/fonts/sourcesanspro-italic-webfont.woff2 +0 -0
  33. data/app/assets/fonts/sourcesanspro-light-webfont.eot +0 -0
  34. data/app/assets/fonts/sourcesanspro-light-webfont.svg +915 -0
  35. data/app/assets/fonts/sourcesanspro-light-webfont.ttf +0 -0
  36. data/app/assets/fonts/sourcesanspro-light-webfont.woff +0 -0
  37. data/app/assets/fonts/sourcesanspro-light-webfont.woff2 +0 -0
  38. data/app/assets/fonts/sourcesanspro-regular-webfont.eot +0 -0
  39. data/app/assets/fonts/sourcesanspro-regular-webfont.svg +989 -0
  40. data/app/assets/fonts/sourcesanspro-regular-webfont.ttf +0 -0
  41. data/app/assets/fonts/sourcesanspro-regular-webfont.woff +0 -0
  42. data/app/assets/fonts/sourcesanspro-regular-webfont.woff2 +0 -0
  43. data/app/assets/images/alerts/error.png +0 -0
  44. data/app/assets/images/alerts/error.svg +17 -0
  45. data/app/assets/images/alerts/info.png +0 -0
  46. data/app/assets/images/alerts/info.svg +18 -0
  47. data/app/assets/images/alerts/success.png +0 -0
  48. data/app/assets/images/alerts/success.svg +12 -0
  49. data/app/assets/images/alerts/warning.png +0 -0
  50. data/app/assets/images/alerts/warning.svg +16 -0
  51. data/app/assets/images/arrow-down.png +0 -0
  52. data/app/assets/images/arrow-down.svg +1 -0
  53. data/app/assets/images/arrow-right.png +0 -0
  54. data/app/assets/images/arrow-right.svg +1 -0
  55. data/app/assets/images/correct8.png +0 -0
  56. data/app/assets/images/correct8.svg +1 -0
  57. data/app/assets/images/correct9.png +0 -0
  58. data/app/assets/images/correct9.svg +1 -0
  59. data/app/assets/images/favicons/favicon-114.png +0 -0
  60. data/app/assets/images/favicons/favicon-144.png +0 -0
  61. data/app/assets/images/favicons/favicon-16.png +0 -0
  62. data/app/assets/images/favicons/favicon-192.png +0 -0
  63. data/app/assets/images/favicons/favicon-57.png +0 -0
  64. data/app/assets/images/favicons/favicon-72.png +0 -0
  65. data/app/assets/images/favicons/favicon.ico +0 -0
  66. data/app/assets/images/favicons/favicon.png +0 -0
  67. data/app/assets/images/logo-img.png +0 -0
  68. data/app/assets/images/minus.png +0 -0
  69. data/app/assets/images/minus.svg +1 -0
  70. data/app/assets/images/plus.png +0 -0
  71. data/app/assets/images/plus.svg +1 -0
  72. data/app/assets/images/search.png +0 -0
  73. data/app/assets/images/search.svg +1 -0
  74. data/app/assets/images/social-icons/png/facebook25.png +0 -0
  75. data/app/assets/images/social-icons/png/rss25.png +0 -0
  76. data/app/assets/images/social-icons/png/twitter16.png +0 -0
  77. data/app/assets/images/social-icons/png/youtube15.png +0 -0
  78. data/app/assets/images/social-icons/svg/facebook25.svg +1 -0
  79. data/app/assets/images/social-icons/svg/rss25.svg +1 -0
  80. data/app/assets/images/social-icons/svg/twitter16.svg +1 -0
  81. data/app/assets/images/social-icons/svg/youtube15.svg +1 -0
  82. data/app/assets/images/us_flag_small.png +0 -0
  83. data/app/assets/javascript/components.js +376 -0
  84. data/app/assets/javascript/vendor/html5shiv.js +301 -0
  85. data/app/assets/javascript/vendor/jquery-1.11.3.min.js +5 -0
  86. data/app/assets/javascript/vendor/jquery-1.11.3.min.map +1 -0
  87. data/app/assets/javascript/vendor/rem.min.js +7 -0
  88. data/app/assets/javascript/vendor/respond.js +341 -0
  89. data/app/assets/javascript/vendor/selectivizr-min.js +22 -0
  90. data/app/assets/stylesheets/components/_accordions.scss +95 -0
  91. data/app/assets/stylesheets/components/_alerts.scss +78 -0
  92. data/app/assets/stylesheets/components/_disclaimer.scss +25 -0
  93. data/app/assets/stylesheets/components/_footer.scss +292 -0
  94. data/app/assets/stylesheets/components/_forms.scss +179 -0
  95. data/app/assets/stylesheets/components/_search.scss +101 -0
  96. data/app/assets/stylesheets/components/_sidenav.scss +78 -0
  97. data/app/assets/stylesheets/components/_skipnav.scss +24 -0
  98. data/app/assets/stylesheets/core/_base.scss +24 -0
  99. data/app/assets/stylesheets/core/_defaults.scss +92 -0
  100. data/app/assets/stylesheets/core/_grid-settings.scss +10 -0
  101. data/app/assets/stylesheets/core/_grid.scss +116 -0
  102. data/app/assets/stylesheets/core/_utilities.scss +105 -0
  103. data/app/assets/stylesheets/core/_variables.scss +88 -0
  104. data/app/assets/stylesheets/elements/_buttons.scss +187 -0
  105. data/app/assets/stylesheets/elements/_figure.scss +9 -0
  106. data/app/assets/stylesheets/elements/_inputs.scss +328 -0
  107. data/app/assets/stylesheets/elements/_labels.scss +39 -0
  108. data/app/assets/stylesheets/elements/_list.scss +82 -0
  109. data/app/assets/stylesheets/elements/_table.scss +39 -0
  110. data/app/assets/stylesheets/elements/_typography.scss +220 -0
  111. data/app/assets/stylesheets/lib/_normalize.scss +427 -0
  112. data/app/assets/stylesheets/lib/bourbon/_bourbon-deprecated-upcoming.scss +411 -0
  113. data/app/assets/stylesheets/lib/bourbon/_bourbon.scss +87 -0
  114. data/app/assets/stylesheets/lib/bourbon/addons/_border-color.scss +26 -0
  115. data/app/assets/stylesheets/lib/bourbon/addons/_border-radius.scss +48 -0
  116. data/app/assets/stylesheets/lib/bourbon/addons/_border-style.scss +25 -0
  117. data/app/assets/stylesheets/lib/bourbon/addons/_border-width.scss +25 -0
  118. data/app/assets/stylesheets/lib/bourbon/addons/_buttons.scss +64 -0
  119. data/app/assets/stylesheets/lib/bourbon/addons/_clearfix.scss +25 -0
  120. data/app/assets/stylesheets/lib/bourbon/addons/_ellipsis.scss +30 -0
  121. data/app/assets/stylesheets/lib/bourbon/addons/_font-stacks.scss +31 -0
  122. data/app/assets/stylesheets/lib/bourbon/addons/_hide-text.scss +27 -0
  123. data/app/assets/stylesheets/lib/bourbon/addons/_margin.scss +26 -0
  124. data/app/assets/stylesheets/lib/bourbon/addons/_padding.scss +26 -0
  125. data/app/assets/stylesheets/lib/bourbon/addons/_position.scss +48 -0
  126. data/app/assets/stylesheets/lib/bourbon/addons/_prefixer.scss +66 -0
  127. data/app/assets/stylesheets/lib/bourbon/addons/_retina-image.scss +25 -0
  128. data/app/assets/stylesheets/lib/bourbon/addons/_size.scss +51 -0
  129. data/app/assets/stylesheets/lib/bourbon/addons/_text-inputs.scss +112 -0
  130. data/app/assets/stylesheets/lib/bourbon/addons/_timing-functions.scss +34 -0
  131. data/app/assets/stylesheets/lib/bourbon/addons/_triangle.scss +63 -0
  132. data/app/assets/stylesheets/lib/bourbon/addons/_word-wrap.scss +29 -0
  133. data/app/assets/stylesheets/lib/bourbon/css3/_animation.scss +43 -0
  134. data/app/assets/stylesheets/lib/bourbon/css3/_appearance.scss +3 -0
  135. data/app/assets/stylesheets/lib/bourbon/css3/_backface-visibility.scss +3 -0
  136. data/app/assets/stylesheets/lib/bourbon/css3/_background-image.scss +42 -0
  137. data/app/assets/stylesheets/lib/bourbon/css3/_background.scss +55 -0
  138. data/app/assets/stylesheets/lib/bourbon/css3/_border-image.scss +59 -0
  139. data/app/assets/stylesheets/lib/bourbon/css3/_calc.scss +4 -0
  140. data/app/assets/stylesheets/lib/bourbon/css3/_columns.scss +47 -0
  141. data/app/assets/stylesheets/lib/bourbon/css3/_filter.scss +4 -0
  142. data/app/assets/stylesheets/lib/bourbon/css3/_flex-box.scss +287 -0
  143. data/app/assets/stylesheets/lib/bourbon/css3/_font-face.scss +24 -0
  144. data/app/assets/stylesheets/lib/bourbon/css3/_font-feature-settings.scss +4 -0
  145. data/app/assets/stylesheets/lib/bourbon/css3/_hidpi-media-query.scss +10 -0
  146. data/app/assets/stylesheets/lib/bourbon/css3/_hyphens.scss +4 -0
  147. data/app/assets/stylesheets/lib/bourbon/css3/_image-rendering.scss +14 -0
  148. data/app/assets/stylesheets/lib/bourbon/css3/_keyframes.scss +36 -0
  149. data/app/assets/stylesheets/lib/bourbon/css3/_linear-gradient.scss +38 -0
  150. data/app/assets/stylesheets/lib/bourbon/css3/_perspective.scss +8 -0
  151. data/app/assets/stylesheets/lib/bourbon/css3/_placeholder.scss +8 -0
  152. data/app/assets/stylesheets/lib/bourbon/css3/_radial-gradient.scss +39 -0
  153. data/app/assets/stylesheets/lib/bourbon/css3/_selection.scss +42 -0
  154. data/app/assets/stylesheets/lib/bourbon/css3/_text-decoration.scss +19 -0
  155. data/app/assets/stylesheets/lib/bourbon/css3/_transform.scss +15 -0
  156. data/app/assets/stylesheets/lib/bourbon/css3/_transition.scss +71 -0
  157. data/app/assets/stylesheets/lib/bourbon/css3/_user-select.scss +3 -0
  158. data/app/assets/stylesheets/lib/bourbon/functions/_assign-inputs.scss +11 -0
  159. data/app/assets/stylesheets/lib/bourbon/functions/_contains-falsy.scss +20 -0
  160. data/app/assets/stylesheets/lib/bourbon/functions/_contains.scss +26 -0
  161. data/app/assets/stylesheets/lib/bourbon/functions/_is-length.scss +11 -0
  162. data/app/assets/stylesheets/lib/bourbon/functions/_is-light.scss +21 -0
  163. data/app/assets/stylesheets/lib/bourbon/functions/_is-number.scss +11 -0
  164. data/app/assets/stylesheets/lib/bourbon/functions/_is-size.scss +13 -0
  165. data/app/assets/stylesheets/lib/bourbon/functions/_modular-scale.scss +69 -0
  166. data/app/assets/stylesheets/lib/bourbon/functions/_px-to-em.scss +13 -0
  167. data/app/assets/stylesheets/lib/bourbon/functions/_px-to-rem.scss +15 -0
  168. data/app/assets/stylesheets/lib/bourbon/functions/_shade.scss +24 -0
  169. data/app/assets/stylesheets/lib/bourbon/functions/_strip-units.scss +17 -0
  170. data/app/assets/stylesheets/lib/bourbon/functions/_tint.scss +24 -0
  171. data/app/assets/stylesheets/lib/bourbon/functions/_transition-property-name.scss +22 -0
  172. data/app/assets/stylesheets/lib/bourbon/functions/_unpack.scss +27 -0
  173. data/app/assets/stylesheets/lib/bourbon/helpers/_convert-units.scss +21 -0
  174. data/app/assets/stylesheets/lib/bourbon/helpers/_directional-values.scss +96 -0
  175. data/app/assets/stylesheets/lib/bourbon/helpers/_font-source-declaration.scss +43 -0
  176. data/app/assets/stylesheets/lib/bourbon/helpers/_gradient-positions-parser.scss +13 -0
  177. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-angle-parser.scss +25 -0
  178. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-gradient-parser.scss +41 -0
  179. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-positions-parser.scss +61 -0
  180. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-side-corner-parser.scss +31 -0
  181. data/app/assets/stylesheets/lib/bourbon/helpers/_radial-arg-parser.scss +69 -0
  182. data/app/assets/stylesheets/lib/bourbon/helpers/_radial-gradient-parser.scss +50 -0
  183. data/app/assets/stylesheets/lib/bourbon/helpers/_radial-positions-parser.scss +18 -0
  184. data/app/assets/stylesheets/lib/bourbon/helpers/_render-gradients.scss +26 -0
  185. data/app/assets/stylesheets/lib/bourbon/helpers/_shape-size-stripper.scss +10 -0
  186. data/app/assets/stylesheets/lib/bourbon/helpers/_str-to-num.scss +50 -0
  187. data/app/assets/stylesheets/lib/bourbon/settings/_asset-pipeline.scss +7 -0
  188. data/app/assets/stylesheets/lib/bourbon/settings/_prefixer.scss +9 -0
  189. data/app/assets/stylesheets/lib/bourbon/settings/_px-to-em.scss +1 -0
  190. data/app/assets/stylesheets/lib/neat/_neat-helpers.scss +8 -0
  191. data/app/assets/stylesheets/lib/neat/_neat.scss +23 -0
  192. data/app/assets/stylesheets/lib/neat/functions/_new-breakpoint.scss +49 -0
  193. data/app/assets/stylesheets/lib/neat/functions/_private.scss +114 -0
  194. data/app/assets/stylesheets/lib/neat/grid/_box-sizing.scss +15 -0
  195. data/app/assets/stylesheets/lib/neat/grid/_direction-context.scss +33 -0
  196. data/app/assets/stylesheets/lib/neat/grid/_display-context.scss +28 -0
  197. data/app/assets/stylesheets/lib/neat/grid/_fill-parent.scss +22 -0
  198. data/app/assets/stylesheets/lib/neat/grid/_media.scss +92 -0
  199. data/app/assets/stylesheets/lib/neat/grid/_omega.scss +87 -0
  200. data/app/assets/stylesheets/lib/neat/grid/_outer-container.scss +38 -0
  201. data/app/assets/stylesheets/lib/neat/grid/_pad.scss +25 -0
  202. data/app/assets/stylesheets/lib/neat/grid/_private.scss +35 -0
  203. data/app/assets/stylesheets/lib/neat/grid/_row.scss +52 -0
  204. data/app/assets/stylesheets/lib/neat/grid/_shift.scss +50 -0
  205. data/app/assets/stylesheets/lib/neat/grid/_span-columns.scss +94 -0
  206. data/app/assets/stylesheets/lib/neat/grid/_to-deprecate.scss +97 -0
  207. data/app/assets/stylesheets/lib/neat/grid/_visual-grid.scss +42 -0
  208. data/app/assets/stylesheets/lib/neat/settings/_disable-warnings.scss +13 -0
  209. data/app/assets/stylesheets/lib/neat/settings/_grid.scss +51 -0
  210. data/app/assets/stylesheets/lib/neat/settings/_visual-grid.scss +27 -0
  211. data/app/assets/stylesheets/us_web_design_standards.scss +39 -0
  212. data/app/assets/stylesheets/us_web_design_standards_fonts.css +102 -0
  213. data/assets/_scss/us_web_design_standards.scss +24 -24
  214. data/lib/us_web_design_standards.rb +10 -0
  215. data/lib/us_web_design_standards/assets.rb +14 -11
  216. data/lib/us_web_design_standards/generator.rb +8 -5
  217. data/lib/us_web_design_standards/version.rb +1 -1
  218. metadata +226 -3
  219. data/assets/css/normalize.min.css +0 -1
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ width="216px" height="146px" viewBox="0 0 216 146" enable-background="new 0 0 216 146" xml:space="preserve">
6
+ <path d="M162.18,41.592c-5.595-9.586-13.185-17.176-22.771-22.771c-9.588-5.595-20.055-8.392-31.408-8.392
7
+ c-11.352,0-21.821,2.797-31.408,8.392c-9.587,5.594-17.177,13.184-22.772,22.771C48.225,51.179,45.428,61.649,45.428,73
8
+ c0,11.351,2.798,21.82,8.392,31.408c5.595,9.584,13.185,17.176,22.772,22.771c9.587,5.595,20.056,8.392,31.408,8.392
9
+ c11.352,0,21.822-2.797,31.408-8.392c9.586-5.594,17.176-13.185,22.771-22.771c5.594-9.588,8.391-20.058,8.391-31.408
10
+ C170.57,61.649,167.773,51.178,162.18,41.592z M118.43,112.025c0,0.761-0.246,1.398-0.734,1.914s-1.086,0.773-1.793,0.773H100.26
11
+ c-0.706,0-1.331-0.271-1.874-0.814c-0.543-0.543-0.814-1.168-0.814-1.873V96.546c0-0.706,0.271-1.331,0.814-1.874
12
+ c0.543-0.543,1.168-0.814,1.874-0.814h15.643c0.707,0,1.306,0.258,1.793,0.773c0.488,0.518,0.734,1.154,0.734,1.915V112.025z
13
+ M118.266,83.999c-0.055,0.543-0.339,1.019-0.854,1.426c-0.517,0.407-1.154,0.61-1.914,0.61h-15.073
14
+ c-0.761,0-1.413-0.203-1.956-0.61c-0.543-0.407-0.815-0.883-0.815-1.426l-1.385-50.595c0-0.653,0.271-1.141,0.814-1.467
15
+ c0.544-0.434,1.196-0.652,1.956-0.652h17.926c0.761,0,1.412,0.217,1.955,0.652c0.543,0.326,0.813,0.815,0.813,1.467L118.266,83.999z
16
+ "/>
17
+ </svg>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ width="216px" height="146px" viewBox="0 0 216 146" enable-background="new 0 0 216 146" xml:space="preserve">
6
+ <path d="M162.18,41.592c-5.595-9.586-13.185-17.176-22.771-22.771c-9.588-5.595-20.055-8.392-31.408-8.392
7
+ c-11.352,0-21.822,2.797-31.408,8.392c-9.587,5.594-17.177,13.184-22.772,22.771C48.225,51.179,45.428,61.649,45.428,73
8
+ c0,11.352,2.798,21.82,8.392,31.408c5.595,9.585,13.185,17.176,22.772,22.771c9.587,5.595,20.056,8.392,31.408,8.392
9
+ c11.352,0,21.822-2.797,31.408-8.392c9.586-5.594,17.176-13.185,22.771-22.771c5.594-9.587,8.391-20.057,8.391-31.408
10
+ C170.57,61.648,167.773,51.178,162.18,41.592z M97.572,26.071c0-0.761,0.244-1.385,0.733-1.874c0.489-0.488,1.114-0.733,1.874-0.733
11
+ h15.644c0.76,0,1.385,0.245,1.872,0.733c0.488,0.489,0.734,1.113,0.734,1.874v13.036c0,0.76-0.246,1.385-0.734,1.873
12
+ c-0.487,0.489-1.112,0.733-1.872,0.733h-15.644c-0.76,0-1.385-0.244-1.874-0.733c-0.489-0.488-0.733-1.113-0.733-1.873V26.071z
13
+ M128.857,112.107c0,0.76-0.246,1.385-0.733,1.872c-0.487,0.489-1.112,0.733-1.874,0.733h-36.5c-0.761,0-1.385-0.244-1.874-0.733
14
+ c-0.489-0.488-0.733-1.113-0.733-1.873V99.07c0-0.762,0.244-1.385,0.733-1.874c0.489-0.488,1.114-0.733,1.874-0.733h7.822V70.392
15
+ H89.75c-0.761,0-1.385-0.244-1.874-0.733c-0.489-0.488-0.733-1.113-0.733-1.874V54.75c0-0.761,0.244-1.385,0.733-1.874
16
+ c0.489-0.489,1.114-0.733,1.874-0.733h26.073c0.76,0,1.385,0.244,1.872,0.733c0.488,0.489,0.734,1.113,0.734,1.874v41.714h7.82
17
+ c0.761,0,1.386,0.245,1.874,0.733c0.487,0.488,0.733,1.113,0.733,1.874V112.107z"/>
18
+ </svg>
@@ -0,0 +1,12 @@
1
+ <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
2
+ width="216px" height="216px" viewBox="0 0 216 216" xml:space="preserve">
3
+ <path d="M162.18,41.592c-5.595-9.586-13.185-17.176-22.771-22.771c-9.588-5.595-20.055-8.392-31.408-8.392
4
+ c-11.352,0-21.822,2.797-31.408,8.392c-9.587,5.594-17.177,13.184-22.772,22.771C48.225,51.179,45.428,61.649,45.428,73
5
+ c0,11.352,2.798,21.82,8.392,31.408c5.595,9.585,13.185,17.176,22.772,22.771c9.587,5.595,20.056,8.392,31.408,8.392
6
+ c11.352,0,21.822-2.797,31.408-8.392c9.586-5.594,17.176-13.185,22.771-22.771c5.594-9.587,8.391-20.057,8.391-31.408
7
+ C170.57,61.648,167.773,51.178,162.18,41.592z M148.572,63.468l-44.239,44.239c-1.032,1.032-2.281,1.549-3.748,1.549
8
+ c-1.412,0-2.634-0.517-3.666-1.549L67.425,78.215c-0.977-0.979-1.466-2.199-1.466-3.666c0-1.521,0.488-2.771,1.466-3.749
9
+ l7.414-7.332c1.033-1.032,2.254-1.548,3.667-1.548s2.635,0.516,3.667,1.548l18.413,18.413l33.241-33.16
10
+ c1.032-1.032,2.254-1.548,3.666-1.548c1.411,0,2.635,0.516,3.666,1.548l7.414,7.333c0.979,0.977,1.467,2.226,1.467,3.747
11
+ C150.04,61.268,149.552,62.49,148.572,63.468z"/>
12
+ </svg>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ width="216px" height="146px" viewBox="0 0 216 146" enable-background="new 0 0 216 146" xml:space="preserve">
6
+ <path d="M179.695,125.388L117.126,10.673c-0.924-1.684-2.2-3.015-3.832-3.992c-1.628-0.978-3.394-1.467-5.295-1.467
7
+ c-1.901,0-3.667,0.49-5.296,1.467s-2.906,2.308-3.829,3.992L36.303,125.388c-1.901,3.423-1.847,6.845,0.163,10.267
8
+ c0.924,1.574,2.187,2.824,3.789,3.746c1.603,0.924,3.327,1.387,5.174,1.387H170.57c1.849,0,3.572-0.463,5.175-1.387
9
+ c1.603-0.922,2.864-2.172,3.789-3.746C181.544,132.232,181.598,128.811,179.695,125.388z M118.43,117.24
10
+ c0,0.76-0.259,1.398-0.773,1.914c-0.516,0.516-1.127,0.773-1.834,0.773H100.18c-0.706,0-1.317-0.257-1.833-0.773
11
+ c-0.516-0.517-0.774-1.154-0.774-1.914v-15.48c0-0.76,0.258-1.397,0.774-1.914c0.516-0.516,1.126-0.773,1.833-0.773h15.642
12
+ c0.707,0,1.318,0.257,1.834,0.773c0.515,0.517,0.773,1.154,0.773,1.914V117.24z M118.268,86.77
13
+ c-0.056,0.543-0.341,0.991-0.856,1.344c-0.517,0.354-1.154,0.529-1.915,0.529h-15.073c-0.76,0-1.412-0.176-1.955-0.529
14
+ c-0.544-0.354-0.815-0.801-0.815-1.346l-1.385-37.231c0-0.761,0.272-1.331,0.815-1.711c0.706-0.597,1.358-0.896,1.956-0.896h17.924
15
+ c0.598,0,1.25,0.298,1.956,0.896c0.543,0.38,0.813,0.896,0.813,1.548L118.268,86.77z"/>
16
+ </svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 444.8 444.8"><path d="M248.1 352L434 165.9c7.2-6.9 10.8-15.4 10.8-25.7 0-10.3-3.6-18.8-10.8-25.7l-21.4-21.7c-7-7-15.6-10.6-25.7-10.6-9.9 0-18.6 3.5-26 10.6L222.4 231.5 83.7 92.8c-7-7-15.6-10.6-25.7-10.6-9.9 0-18.6 3.5-26 10.6l-21.4 21.7c-7 7-10.6 15.6-10.6 25.7s3.5 18.7 10.6 25.7L196.4 352c7.4 7 16.1 10.6 26 10.6 10.1 0 18.7-3.5 25.7-10.6z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="444.819" height="444.819" viewBox="0 0 444.819 444.819"><path d="M352.025 196.712L165.885 10.848C159.028 3.615 150.468 0 140.185 0s-18.84 3.62-25.696 10.848l-21.7 21.416c-7.045 7.043-10.567 15.604-10.567 25.692 0 9.897 3.52 18.56 10.566 25.98L231.544 222.41 92.785 361.168c-7.04 7.043-10.563 15.604-10.563 25.693 0 9.9 3.52 18.566 10.564 25.98l21.7 21.417c7.043 7.043 15.612 10.564 25.697 10.564 10.09 0 18.656-3.52 25.697-10.564L352.025 248.39c7.046-7.423 10.57-16.084 10.57-25.98.002-10.09-3.524-18.655-10.57-25.698z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 216 146"><path fill="#fff" d="M168.86 37.966l-11.08-11.08c-1.52-1.52-3.367-2.28-5.54-2.28-2.172 0-4.02.76-5.54 2.28L93.254 80.414 69.3 56.38c-1.52-1.522-3.367-2.282-5.54-2.282-2.172 0-4.02.76-5.54 2.28L47.14 67.46c-1.52 1.522-2.28 3.37-2.28 5.542 0 2.172.76 4.02 2.28 5.54l29.493 29.493 11.08 11.08c1.52 1.52 3.368 2.28 5.54 2.28 2.173 0 4.02-.76 5.54-2.28l11.082-11.08L168.86 49.05c1.52-1.52 2.283-3.37 2.283-5.54 0-2.174-.76-4.02-2.28-5.54z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 216 146"><path fill="#0071bc" d="M168.86 37.966l-11.08-11.08c-1.52-1.52-3.367-2.28-5.54-2.28-2.172 0-4.02.76-5.54 2.28L93.254 80.414 69.3 56.38c-1.52-1.522-3.367-2.282-5.54-2.282-2.172 0-4.02.76-5.54 2.28L47.14 67.46c-1.52 1.522-2.28 3.37-2.28 5.542 0 2.172.76 4.02 2.28 5.54l29.493 29.493 11.08 11.08c1.52 1.52 3.368 2.28 5.54 2.28 2.173 0 4.02-.76 5.54-2.28l11.082-11.08L168.86 49.05c1.52-1.52 2.283-3.37 2.283-5.54 0-2.174-.76-4.02-2.28-5.54z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="401.991" height="401.991" viewBox="0 0 401.991 401.991"><path d="M394 154.174c-5.33-5.33-11.806-7.995-19.417-7.995H27.406c-7.61 0-14.084 2.66-19.414 7.99C2.662 159.5 0 165.97 0 173.586v54.82c0 7.617 2.662 14.086 7.992 19.41 5.33 5.332 11.803 7.994 19.414 7.994h347.176c7.61 0 14.086-2.66 19.417-7.993 5.32-5.324 7.99-11.793 7.99-19.41v-54.82c0-7.615-2.66-14.087-7.99-19.413z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="401.994" height="401.994" viewBox="0 0 401.994 401.994"><path d="M394 154.175c-5.33-5.33-11.806-7.994-19.417-7.994H255.81V27.41c0-7.61-2.665-14.084-7.993-19.414C242.487 2.666 236.02 0 228.397 0h-54.81c-7.613 0-14.085 2.663-19.415 7.993-5.33 5.33-7.994 11.803-7.994 19.414v118.775H27.408c-7.612 0-14.085 2.664-19.415 7.994S0 165.973 0 173.59v54.818c0 7.618 2.662 14.086 7.992 19.41 5.33 5.333 11.803 7.995 19.414 7.995h118.77V374.59c0 7.61 2.665 14.09 7.995 19.417 5.33 5.325 11.806 7.987 19.418 7.987H228.4c7.618 0 14.087-2.662 19.418-7.987 5.332-5.33 7.994-11.806 7.994-19.417V255.813h118.77c7.618 0 14.09-2.662 19.417-7.994 5.325-5.33 7.99-11.797 7.99-19.415v-54.82c0-7.615-2.66-14.086-7.993-19.413z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 216 146"><path fill="#fff" d="M172.77 123.025L144.825 95.08c6.735-9.722 10.104-20.56 10.104-32.508 0-7.767-1.51-15.195-4.527-22.283-3.014-7.09-7.088-13.2-12.22-18.336s-11.243-9.207-18.33-12.22c-7.09-3.016-14.52-4.523-22.286-4.523-7.768 0-15.196 1.508-22.284 4.523-7.09 3.014-13.2 7.088-18.332 12.22-5.132 5.134-9.206 11.245-12.22 18.333-3.015 7.088-4.522 14.515-4.522 22.282 0 7.766 1.507 15.192 4.522 22.282 3.014 7.088 7.088 13.197 12.22 18.33 5.134 5.134 11.245 9.207 18.333 12.222 7.09 3.015 14.516 4.522 22.283 4.522 11.95 0 22.786-3.37 32.51-10.105l27.943 27.863c1.955 2.064 4.397 3.096 7.332 3.096 2.824 0 5.27-1.03 7.332-3.096 2.064-2.063 3.096-4.508 3.096-7.332 0-2.877-1.002-5.322-3.013-7.33zm-49.413-34.668C116.214 95.5 107.62 99.07 97.57 99.07c-10.048 0-18.643-3.57-25.786-10.713C64.64 81.214 61.07 72.62 61.07 62.57c0-10.047 3.572-18.643 10.714-25.785C78.926 29.642 87.522 26.07 97.57 26.07c10.048 0 18.643 3.573 25.787 10.715 7.143 7.142 10.715 15.738 10.715 25.786 0 10.05-3.573 18.647-10.715 25.79z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="216" height="146" viewBox="0 0 216 146"><path d="M118.348 49.86V38.293c0-1.737.08-3.082.243-4.032.165-.95.53-1.886 1.104-2.81.57-.923 1.494-1.56 2.77-1.914 1.277-.354 2.975-.53 5.094-.53h11.568V5.866H120.63c-10.702 0-18.387 2.54-23.058 7.617-4.67 5.08-7.006 12.56-7.006 22.446v13.93H76.714V73h13.85v67.134h27.784V73h18.494l2.444-23.14h-20.938z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="216" height="146" viewBox="0 0 216 146"><path d="M66.28 99.072c-4.347 0-8.04 1.52-11.082 4.562-3.04 3.042-4.562 6.735-4.562 11.08 0 4.347 1.52 8.04 4.562 11.08 3.042 3.042 6.736 4.563 11.08 4.563 4.346 0 8.04-1.52 11.08-4.562 3.042-3.042 4.563-6.734 4.563-11.08s-1.52-8.04-4.56-11.08c-3.04-3.042-6.733-4.563-11.08-4.563zm36.01-20.37c-6.138-6.19-13.172-11.12-21.102-14.786-7.93-3.667-16.24-5.853-24.93-6.56h-.408c-1.412 0-2.58.463-3.503 1.386-1.14.977-1.71 2.254-1.71 3.83V73.57c0 1.357.447 2.525 1.343 3.503.896.98 2.023 1.522 3.38 1.63 12.44 1.195 23.07 6.206 31.897 15.032 8.826 8.825 13.837 19.458 15.032 31.896.106 1.36.65 2.488 1.63 3.384.975.897 2.142 1.346 3.5 1.346h11c1.574 0 2.85-.57 3.83-1.71 1.03-1.09 1.492-2.393 1.385-3.914-.707-8.69-2.894-17-6.56-24.93-3.666-7.93-8.595-14.964-14.787-21.102z"/><path d="M155.573 84.04c-5.812-13.01-13.796-24.565-23.953-34.668-10.103-10.157-21.658-18.14-34.667-23.953-13.008-5.814-26.628-9.074-40.86-9.78h-.243c-1.412 0-2.607.49-3.585 1.467-1.086.976-1.63 2.226-1.63 3.747v11.65c0 1.358.477 2.54 1.427 3.544s2.104 1.534 3.462 1.59c11.678.706 22.772 3.477 33.282 8.31 10.51 4.835 19.635 11.12 27.375 18.86 7.74 7.74 14.03 16.866 18.86 27.376 4.837 10.512 7.58 21.604 8.23 33.282.057 1.357.586 2.512 1.59 3.462 1.006.95 2.215 1.427 3.627 1.427h11.65c1.52 0 2.768-.544 3.747-1.632 1.087-1.086 1.574-2.36 1.468-3.828-.704-14.232-3.964-27.852-9.776-40.86z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="216" height="146" viewBox="0 0 216 146"><path d="M172.2 33.24c-5.05 2.174-10.103 3.53-15.152 4.076 5.703-3.422 9.56-8.256 11.57-14.502-5.216 3.095-10.783 5.213-16.703 6.354-5.215-5.54-11.623-8.31-19.228-8.31-7.278 0-13.483 2.565-18.617 7.698-5.133 5.133-7.7 11.338-7.7 18.616 0 1.955.218 3.965.653 6.03-10.755-.544-20.844-3.246-30.268-8.107-9.424-4.862-17.422-11.34-23.994-19.432-2.39 4.073-3.582 8.5-3.582 13.28 0 4.508 1.06 8.69 3.178 12.547 2.118 3.856 4.97 6.98 8.555 9.37-4.237-.164-8.202-1.278-11.895-3.342v.326c0 6.355 1.996 11.935 5.988 16.743 3.992 4.808 9.03 7.835 15.113 9.084-2.28.6-4.59.9-6.925.9-1.52 0-3.177-.137-4.97-.407 1.685 5.27 4.78 9.6 9.29 12.995 4.507 3.396 9.613 5.146 15.316 5.256-9.56 7.495-20.45 11.243-32.67 11.243-2.336 0-4.454-.107-6.355-.325 12.22 7.876 25.69 11.813 40.41 11.813 9.344 0 18.116-1.48 26.316-4.44 8.203-2.96 15.21-6.924 21.02-11.895 5.812-4.97 10.823-10.686 15.032-17.15 4.21-6.463 7.345-13.21 9.41-20.245 2.064-7.035 3.096-14.08 3.096-21.143 0-1.52-.027-2.66-.082-3.422 5.163-3.746 9.563-8.282 13.2-13.604z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="216" height="146" viewBox="0 0 216 146"><path d="M166.254 75.443c-.705-3.205-2.268-5.893-4.684-8.065-2.418-2.172-5.202-3.45-8.353-3.83-9.993-1.085-25.065-1.628-45.218-1.628-20.155 0-35.2.543-45.14 1.63-3.204.38-6 1.656-8.39 3.828-2.39 2.173-3.967 4.86-4.728 8.065-1.412 6.302-2.118 15.807-2.118 28.517 0 12.927.706 22.433 2.118 28.517.707 3.203 2.27 5.893 4.686 8.064 2.416 2.176 5.2 3.425 8.35 3.75C72.776 145.43 87.85 146 108 146s35.225-.57 45.217-1.71c3.15-.327 5.92-1.576 8.31-3.75 2.392-2.17 3.967-4.86 4.727-8.063 1.412-6.302 2.12-15.807 2.12-28.517-.002-12.927-.71-22.433-2.12-28.517zm-84.162 8.23h-8.718v46.358h-8.147V83.677h-8.555v-7.66h25.42v7.66zm21.997 46.358h-7.254v-4.4c-2.933 3.317-5.704 4.97-8.31 4.97-2.5 0-4.075-1.002-4.726-3.01-.433-1.305-.65-3.288-.65-5.95V89.783h7.25v29.656c0 1.737.027 2.688.082 2.85.163 1.142.733 1.712 1.71 1.712 1.467 0 3.016-1.14 4.645-3.422V89.783h7.25v40.248zm27.7-12.055c0 3.965-.246 6.682-.73 8.15-.928 2.984-2.855 4.478-5.788 4.478-2.607 0-5.133-1.493-7.578-4.478v3.91h-7.25v-54.02h7.25v17.68c2.337-2.93 4.86-4.4 7.578-4.4 2.933 0 4.86 1.523 5.785 4.564.486 1.41.73 4.1.73 8.063v16.048zm27.536-6.68h-14.583v7.088c0 3.75 1.248 5.622 3.747 5.622 1.793 0 2.88-.977 3.26-2.934.108-.542.163-2.2.163-4.97h7.414v1.06c0 2.663-.055 4.237-.163 4.728-.162 1.465-.73 2.932-1.71 4.398-1.956 2.88-4.89 4.318-8.8 4.318-3.748 0-6.68-1.384-8.8-4.153-1.574-2.01-2.362-5.16-2.362-9.45v-14.1c0-4.29.76-7.44 2.28-9.45 2.12-2.77 5.025-4.154 8.72-4.154 3.64 0 6.52 1.384 8.635 4.154 1.468 2.01 2.2 5.16 2.2 9.45v8.392z"/><path d="M121.36 95.895c-1.25 0-2.47.6-3.665 1.793v24.522c1.195 1.194 2.416 1.792 3.666 1.792 2.12 0 3.18-1.818 3.18-5.46v-17.188c0-3.64-1.06-5.46-3.18-5.46zm27.05 0c-2.443 0-3.665 1.847-3.665 5.54v3.747h7.332v-3.748c0-3.694-1.223-5.54-3.666-5.54zM77.368 32.508v22.08h8.147v-22.08L95.372 0h-8.31l-5.54 21.428L75.74 0h-8.636c1.52 4.563 3.286 9.64 5.296 15.236 2.553 7.495 4.21 13.253 4.97 17.272zm28.922 22.65c3.747 0 6.625-1.385 8.635-4.155 1.52-2.01 2.28-5.215 2.28-9.614V27.13c0-4.344-.76-7.522-2.28-9.532-2.01-2.77-4.888-4.155-8.636-4.155-3.64 0-6.495 1.385-8.558 4.155-1.52 2.01-2.28 5.188-2.28 9.533v14.26c0 4.346.76 7.55 2.28 9.615 2.064 2.77 4.915 4.155 8.555 4.155zm-3.505-29.494c0-3.748 1.168-5.622 3.504-5.622s3.5 1.874 3.5 5.622v17.11c0 3.802-1.167 5.702-3.503 5.702s-3.505-1.9-3.505-5.703v-17.11zm25.908 29.494c2.717 0 5.515-1.684 8.393-5.052v4.48h7.414V13.933h-7.414v31.04c-1.63 2.337-3.177 3.504-4.645 3.504-.976 0-1.546-.597-1.71-1.792-.053-.11-.08-1.06-.08-2.852v-29.9h-7.414v32.1c0 2.77.218 4.807.652 6.11.707 2.01 2.31 3.016 4.807 3.016z"/></svg>
@@ -0,0 +1,376 @@
1
+ 'use strict';
2
+
3
+ /* globals $: false */
4
+
5
+
6
+
7
+ /*! politespace - v0.1.5 - 2015-07-09
8
+ Politely add spaces to input values to increase readability (credit card numbers, phone numbers, etc).
9
+ * https://github.com/filamentgroup/politespace
10
+ * Copyright (c) 2015 Filament Group (@filamentgroup)
11
+ * MIT License */
12
+ // TODO when moving to import system, install this with npm install politespace
13
+ (function( w ){
14
+ "use strict";
15
+
16
+ var Politespace = function( element ) {
17
+ if( !element ) {
18
+ throw new Error( "Politespace requires an element argument." );
19
+ }
20
+
21
+ if( !element.getAttribute ) {
22
+ // Cut the mustard
23
+ return;
24
+ }
25
+
26
+ this.element = element;
27
+ this.type = this.element.getAttribute( "type" );
28
+ this.delimiter = this.element.getAttribute( "data-delimiter" ) || " ";
29
+ // https://en.wikipedia.org/wiki/Decimal_mark
30
+ this.decimalMark = this.element.getAttribute( "data-decimal-mark" ) || "";
31
+ this.reverse = this.element.getAttribute( "data-reverse" ) !== null;
32
+ this.groupLength = this.element.getAttribute( "data-grouplength" ) || 3;
33
+ };
34
+
35
+ Politespace.prototype._divideIntoArray = function( value ) {
36
+ var split = ( '' + this.groupLength ).split( ',' ),
37
+ isUniformSplit = split.length === 1,
38
+ dividedValue = [],
39
+ loopIndex = 0,
40
+ groupLength,
41
+ substrStart,
42
+ useCharCount;
43
+
44
+ while( split.length && loopIndex < value.length ) {
45
+ if( isUniformSplit ) {
46
+ groupLength = split[ 0 ];
47
+ } else {
48
+ // use the next split or the rest of the string if open ended, ala "3,3,"
49
+ groupLength = split.shift() || value.length - loopIndex;
50
+ }
51
+
52
+ // Use min if we’re at the end of a reversed string
53
+ // (substrStart below grows larger than the string length)
54
+ useCharCount = Math.min( parseInt( groupLength, 10 ), value.length - loopIndex );
55
+
56
+ if( this.reverse ) {
57
+ substrStart = -1 * (useCharCount + loopIndex);
58
+ } else {
59
+ substrStart = loopIndex;
60
+ }
61
+ dividedValue.push( value.substr( substrStart, useCharCount ) );
62
+ loopIndex += useCharCount;
63
+ }
64
+
65
+ if( this.reverse ) {
66
+ dividedValue.reverse();
67
+ }
68
+
69
+ return dividedValue;
70
+ };
71
+
72
+ Politespace.prototype.format = function( value ) {
73
+ var split;
74
+ var val = this.unformat( value );
75
+ var suffix = '';
76
+
77
+ if( this.decimalMark ) {
78
+ split = val.split( this.decimalMark );
79
+ suffix = split.length > 1 ? this.decimalMark + split[ 1 ] : '';
80
+ val = split[ 0 ];
81
+ }
82
+
83
+ return this._divideIntoArray( val ).join( this.delimiter ) + suffix;
84
+ };
85
+
86
+ Politespace.prototype.trimMaxlength = function( value ) {
87
+ var maxlength = this.element.getAttribute( "maxlength" );
88
+ // Note input type="number" maxlength does nothing
89
+ if( maxlength ) {
90
+ value = value.substr( 0, maxlength );
91
+ }
92
+ return value;
93
+ };
94
+
95
+ Politespace.prototype.getValue = function() {
96
+ return this.trimMaxlength( this.element.value );
97
+ };
98
+
99
+ Politespace.prototype.update = function() {
100
+ this.element.value = this.useProxy() ? this.getValue() : this.format( this.getValue() );
101
+ };
102
+
103
+ Politespace.prototype.unformat = function( value ) {
104
+ return value.replace( new RegExp( this.delimiter, 'g' ), '' );
105
+ };
106
+
107
+ Politespace.prototype.reset = function() {
108
+ this.element.value = this.unformat( this.element.value );
109
+ };
110
+
111
+ Politespace.prototype.useProxy = function() {
112
+ return this.type === "number";
113
+ };
114
+
115
+ Politespace.prototype.updateProxy = function() {
116
+ var proxy;
117
+ if( this.useProxy() ) {
118
+ proxy = this.element.parentNode.firstChild;
119
+ proxy.innerHTML = this.format( this.getValue() );
120
+ proxy.style.width = this.element.offsetWidth + "px";
121
+ }
122
+ };
123
+
124
+ Politespace.prototype.createProxy = function() {
125
+ if( !this.useProxy() ) {
126
+ return;
127
+ }
128
+
129
+ function getStyle( el, prop ) {
130
+ return window.getComputedStyle( el, null ).getPropertyValue( prop );
131
+ }
132
+ function sumStyles( el, props ) {
133
+ var total = 0;
134
+ for( var j=0, k=props.length; j<k; j++ ) {
135
+ total += parseFloat( getStyle( el, props[ j ] ) );
136
+ }
137
+ return total;
138
+ }
139
+
140
+ var parent = this.element.parentNode;
141
+ var el = document.createElement( "div" );
142
+ var proxy = document.createElement( "div" );
143
+ proxy.style.font = getStyle( this.element, "font" );
144
+ proxy.style.paddingLeft = sumStyles( this.element, [ "padding-left", "border-left-width" ] ) + "px";
145
+ proxy.style.paddingRight = sumStyles( this.element, [ "padding-right", "border-right-width" ] ) + "px";
146
+ proxy.style.top = sumStyles( this.element, [ "padding-top", "border-top-width", "margin-top" ] ) + "px";
147
+
148
+ el.appendChild( proxy );
149
+ el.className = "politespace-proxy active";
150
+ var formEl = parent.replaceChild( el, this.element );
151
+ el.appendChild( formEl );
152
+
153
+ this.updateProxy();
154
+ };
155
+
156
+ w.Politespace = Politespace;
157
+
158
+ }( this ));
159
+
160
+ (function( $ ) {
161
+ "use strict";
162
+
163
+ // jQuery Plugin
164
+
165
+ var componentName = "politespace",
166
+ enhancedAttr = "data-enhanced",
167
+ initSelector = "[data-" + componentName + "]:not([" + enhancedAttr + "])";
168
+
169
+ $.fn[ componentName ] = function(){
170
+ return this.each( function(){
171
+ var polite = new Politespace( this );
172
+ if( polite.type === "number" ) {
173
+ polite.createProxy();
174
+ }
175
+
176
+ $( this )
177
+ .bind( "input keydown", function() {
178
+ polite.updateProxy();
179
+ })
180
+ .bind( "blur", function() {
181
+ $( this ).closest( ".politespace-proxy" ).addClass( "active" );
182
+ polite.update();
183
+ polite.updateProxy();
184
+ })
185
+ .bind( "focus", function() {
186
+ $( this ).closest( ".politespace-proxy" ).removeClass( "active" );
187
+ polite.reset();
188
+ })
189
+ .data( componentName, polite );
190
+
191
+ polite.update();
192
+ });
193
+ };
194
+
195
+ // auto-init on enhance (which is called on domready)
196
+ $(document).ready(function() {
197
+ $('[data-' + componentName + ']').politespace();
198
+ });
199
+
200
+ }( jQuery ));
201
+
202
+ /**
203
+ * Accordion
204
+ *
205
+ * An accordion component.
206
+ *
207
+ * @param {jQuery} $el A jQuery html element to turn into an accordion.
208
+ */
209
+ function Accordion($el) {
210
+ var self = this;
211
+ this.$root = $el;
212
+ this.$root.on('click', 'button', function(ev) {
213
+ var expanded = JSON.parse($(this).attr('aria-expanded'));
214
+ ev.preventDefault();
215
+ self.hideAll();
216
+ if (!expanded) {
217
+ self.show($(this));
218
+ }
219
+ });
220
+ }
221
+
222
+ Accordion.prototype.$ = function(selector) {
223
+ return this.$root.find(selector);
224
+ }
225
+
226
+ Accordion.prototype.hide = function($button) {
227
+ var selector = $button.attr('aria-controls'),
228
+ $content = this.$('#' + selector);
229
+
230
+ $button.attr('aria-expanded', false);
231
+ $content.attr('aria-hidden', true);
232
+ };
233
+
234
+ Accordion.prototype.show = function($button) {
235
+ var selector = $button.attr('aria-controls'),
236
+ $content = this.$('#' + selector);
237
+
238
+ $button.attr('aria-expanded', true);
239
+ $content.attr('aria-hidden', false);
240
+ };
241
+
242
+ Accordion.prototype.hideAll = function() {
243
+ var self = this;
244
+ this.$('button').each(function() {
245
+ self.hide($(this));
246
+ });
247
+ };
248
+
249
+ /**
250
+ * accordion
251
+ *
252
+ * Initialize a new Accordion component.
253
+ *
254
+ * @param {jQuery} $el A jQuery html element to turn into an accordion.
255
+ */
256
+ function accordion($el) {
257
+ return new Accordion($el);
258
+ }
259
+
260
+ function togglePassword($el) {
261
+ var fieldSelector = '#' + $el.attr('aria-controls'),
262
+ $field = $el.parents('form').find(fieldSelector),
263
+ showing = false;
264
+
265
+ $el.on('click', function(ev) {
266
+ ev.preventDefault();
267
+ toggleFieldMask($field, showing);
268
+ $el.text(showing ? 'Show password' : 'Hide password');
269
+ showing = !showing;
270
+ });
271
+ }
272
+
273
+ function toggleSSN($el) {
274
+ var fieldSelector = '#' + $el.attr('aria-controls'),
275
+ $field = $el.parents('form').find(fieldSelector),
276
+ showing = false;
277
+
278
+ $el.on('click', function(ev) {
279
+ ev.preventDefault();
280
+ toggleFieldMask($field, showing);
281
+ $el.text(showing ? 'Show SSN' : 'Hide SSN');
282
+ showing = !showing;
283
+ });
284
+ }
285
+
286
+ function toggleMultiPassword($el) {
287
+ var fieldSelector = '#password, #confirmPassword',
288
+ $fields = $el.parents('form').find(fieldSelector),
289
+ showing = false;
290
+
291
+ $el.on('click', function(ev) {
292
+ ev.preventDefault();
293
+ toggleFieldMask($fields, showing);
294
+ $el.text(showing ? 'Show my typing' : 'Hide my typing');
295
+ showing = !showing;
296
+ });
297
+ }
298
+
299
+ function toggleFieldMask($field, showing) {
300
+ $field.attr('autocapitalize', 'off');
301
+ $field.attr('autocorrect', 'off');
302
+ $field.attr('type', showing ? 'password' : 'text');
303
+ }
304
+
305
+ function validator($el) {
306
+ var data = $('#password[data-validation-element]').data(),
307
+ key,
308
+ validatorName,
309
+ validatorPattern,
310
+ $validatorCheckbox,
311
+ $checkList = $($el.data('validationElement'));
312
+
313
+ function validate() {
314
+ for (key in data) {
315
+ if (key.startsWith('validate')) {
316
+ validatorName = key.split('validate')[1];
317
+ validatorPattern = new RegExp(data[key]);
318
+ $validatorCheckbox = $checkList.find('[data-validator=' +
319
+ validatorName.toLowerCase() + ']');
320
+
321
+ if (!validatorPattern.test($el.val())) {
322
+ $validatorCheckbox.toggleClass('usa-checklist-checked', false);
323
+ }
324
+ else {
325
+ $validatorCheckbox.toggleClass('usa-checklist-checked', true);
326
+ }
327
+ }
328
+ }
329
+ }
330
+
331
+ $el.on('keyup', validate);
332
+ }
333
+
334
+ $(function() {
335
+ $('[class^=usa-accordion]').each(function() {
336
+ accordion($(this));
337
+ });
338
+
339
+ var footerAccordion = function() {
340
+ if (window.innerWidth < 600) {
341
+
342
+ $('.usa-footer-big nav ul').addClass('hidden');
343
+
344
+ $('.usa-footer-big nav .usa-footer-primary-link').unbind('click');
345
+
346
+ $('.usa-footer-big nav .usa-footer-primary-link').bind('click', function() {
347
+ $(this).parent().removeClass('hidden')
348
+ .siblings().addClass('hidden');
349
+ });
350
+ } else {
351
+
352
+ $('.usa-footer-big nav ul').removeClass('hidden');
353
+
354
+ $('.usa-footer-big nav .usa-footer-primary-link').unbind('click');
355
+ }
356
+ };
357
+
358
+ footerAccordion();
359
+
360
+ $(window).resize(footerAccordion);
361
+
362
+ // Fixing skip nav focus behavior in chrome
363
+ $('.skipnav').click(function(){
364
+ $('#main-content').attr('tabindex','0');
365
+ });
366
+
367
+ $('#main-content').blur(function(){
368
+ $(this).attr('tabindex','-1');
369
+ });
370
+
371
+ togglePassword($('.usa-show_password'));
372
+ toggleMultiPassword($('.usa-show_multipassword'));
373
+ toggleSSN($('.usa-show_ssn'));
374
+ validator($('.js-validate_password'));
375
+
376
+ });