jekyll-theme-hydejack 7.5.2 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (328) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +1 -4
  3. data/README.md +139 -86
  4. data/_includes/body/analytics.html +36 -0
  5. data/_includes/{comments.html → body/comments.html} +0 -0
  6. data/_includes/{footer.html → body/footer.html} +4 -2
  7. data/_includes/body/index.html +22 -0
  8. data/_includes/body/main.html +18 -0
  9. data/_includes/{menu.html → body/menu.html} +1 -0
  10. data/_includes/{nav.html → body/nav.html} +0 -0
  11. data/_includes/body/scripts.html +22 -0
  12. data/_includes/{sidebar.html → body/sidebar.html} +19 -6
  13. data/_includes/{about.html → components/about.html} +1 -1
  14. data/_includes/{author.html → components/author.html} +3 -3
  15. data/_includes/{avatar-tag.html → components/avatar-tag.html} +0 -0
  16. data/_includes/{srcset-img.html → components/hy-img.html} +24 -8
  17. data/_includes/{link.html → components/link.html} +0 -0
  18. data/_includes/{message.html → components/message.html} +0 -0
  19. data/_includes/{pagination.html → components/pagination.html} +2 -2
  20. data/_includes/{post-list-item.html → components/post-list-item.html} +0 -0
  21. data/_includes/{post.html → components/post.html} +21 -10
  22. data/_includes/{related-posts.html → components/related-posts.html} +1 -1
  23. data/_includes/components/social-list-item.html +40 -0
  24. data/_includes/components/social.html +23 -0
  25. data/_includes/{tag-list.html → components/tag-list.html} +0 -0
  26. data/_includes/head/index.html +9 -0
  27. data/_includes/head/links.html +7 -5
  28. data/_includes/head/meta.html +3 -3
  29. data/_includes/{page-style.html → head/page-style.html} +1 -1
  30. data/_includes/head/scripts.html +10 -39
  31. data/_includes/head/styles.html +42 -15
  32. data/_includes/header.txt +1 -1
  33. data/_includes/my-body.html +42 -0
  34. data/_includes/my-scripts.html +55 -0
  35. data/_includes/scripts/load-js.js +60 -0
  36. data/_includes/scripts/load-js.min.js +1 -0
  37. data/_includes/{smart-url → smart-url.txt} +0 -0
  38. data/_includes/styles/inline.scss +15 -19
  39. data/_includes/styles/style.scss +20 -17
  40. data/_includes/templates/animation.html +1 -1
  41. data/_includes/templates/back.html +1 -1
  42. data/_includes/templates/cookies-banner.html +1 -1
  43. data/_includes/templates/error.html +1 -1
  44. data/_includes/{templates.html → templates/index.html} +1 -2
  45. data/_includes/templates/loading.html +1 -1
  46. data/_includes/templates/permalink.html +1 -1
  47. data/_layouts/about.html +29 -30
  48. data/_layouts/base.html +20 -62
  49. data/_layouts/blog.html +20 -22
  50. data/_layouts/compress.html +1 -1
  51. data/_layouts/default.html +13 -18
  52. data/_layouts/home.html +11 -16
  53. data/_layouts/list.html +13 -18
  54. data/_layouts/not-found.html +11 -16
  55. data/_layouts/page.html +12 -17
  56. data/_layouts/post.html +15 -20
  57. data/_layouts/redirect.html +11 -16
  58. data/_sass/_mixins.scss +10 -15
  59. data/_sass/_spinner.scss +10 -15
  60. data/_sass/_variables.scss +35 -19
  61. data/_sass/hydejack/__inline/_avatar.scss +33 -32
  62. data/_sass/hydejack/__inline/_base.scss +30 -68
  63. data/_sass/hydejack/__inline/_break-layout.scss +19 -26
  64. data/_sass/hydejack/__inline/_content.scss +29 -34
  65. data/_sass/hydejack/__inline/_footer.scss +19 -26
  66. data/_sass/hydejack/__inline/_images.scss +38 -0
  67. data/_sass/hydejack/__inline/_katex.scss +19 -26
  68. data/_sass/hydejack/__inline/_links.scss +45 -0
  69. data/_sass/hydejack/__inline/_mark-external.scss +19 -26
  70. data/_sass/hydejack/__inline/_menu.scss +28 -35
  71. data/_sass/hydejack/__inline/_sidebar.scss +76 -76
  72. data/_sass/hydejack/__inline/_social.scss +25 -31
  73. data/_sass/hydejack/__inline/_utilities.scss +42 -0
  74. data/_sass/hydejack/__link/_avatar.scss +29 -28
  75. data/_sass/hydejack/__link/_base.scss +19 -83
  76. data/_sass/hydejack/__link/_break-layout.scss +35 -34
  77. data/_sass/hydejack/__link/_content.scss +19 -26
  78. data/_sass/hydejack/__link/_footer.scss +19 -26
  79. data/_sass/hydejack/__link/_images.scss +84 -0
  80. data/_sass/hydejack/__link/_katex.scss +19 -26
  81. data/_sass/hydejack/__link/_links.scss +53 -0
  82. data/_sass/hydejack/__link/_mark-external.scss +19 -26
  83. data/_sass/hydejack/__link/_menu.scss +29 -50
  84. data/_sass/hydejack/__link/_sidebar.scss +71 -118
  85. data/_sass/hydejack/__link/_social.scss +19 -26
  86. data/_sass/hydejack/__link/_utilities.scss +51 -0
  87. data/_sass/hydejack/_avatar.pre.scss +26 -20
  88. data/_sass/hydejack/_base.pre.scss +22 -88
  89. data/_sass/hydejack/_break-layout.pre.scss +26 -23
  90. data/_sass/hydejack/_content.pre.scss +20 -23
  91. data/_sass/hydejack/_footer.pre.scss +10 -15
  92. data/_sass/hydejack/_images.pre.scss +77 -0
  93. data/_sass/hydejack/_katex.pre.scss +10 -15
  94. data/_sass/hydejack/_links.pre.scss +47 -0
  95. data/_sass/hydejack/_mark-external.pre.scss +10 -15
  96. data/_sass/hydejack/_menu.pre.scss +31 -38
  97. data/_sass/hydejack/_sidebar.pre.scss +98 -116
  98. data/_sass/hydejack/_social.pre.scss +16 -20
  99. data/_sass/hydejack/_utilities.pre.scss +43 -0
  100. data/_sass/my-variables.scss +0 -8
  101. data/_sass/pooleparty/__inline/_base.scss +19 -28
  102. data/_sass/pooleparty/__inline/_code.scss +19 -26
  103. data/_sass/pooleparty/__inline/_footer.scss +19 -26
  104. data/_sass/pooleparty/__inline/_footnotes.scss +19 -26
  105. data/_sass/pooleparty/__inline/_message.scss +19 -26
  106. data/_sass/pooleparty/__inline/_pagination.scss +19 -26
  107. data/_sass/pooleparty/__inline/_posts.scss +19 -26
  108. data/_sass/pooleparty/__inline/_read-more.scss +25 -0
  109. data/_sass/pooleparty/__inline/_related.scss +19 -26
  110. data/_sass/pooleparty/__inline/_table.scss +19 -26
  111. data/_sass/pooleparty/__inline/_type.scss +25 -39
  112. data/_sass/pooleparty/__link/_base.scss +19 -26
  113. data/_sass/pooleparty/__link/_code.scss +19 -26
  114. data/_sass/pooleparty/__link/_footer.scss +19 -26
  115. data/_sass/pooleparty/__link/_footnotes.scss +30 -26
  116. data/_sass/pooleparty/__link/_message.scss +19 -26
  117. data/_sass/pooleparty/__link/_pagination.scss +19 -26
  118. data/_sass/pooleparty/__link/_posts.scss +20 -27
  119. data/_sass/pooleparty/__link/_read-more.scss +45 -0
  120. data/_sass/pooleparty/__link/_related.scss +19 -26
  121. data/_sass/pooleparty/__link/_table.scss +19 -26
  122. data/_sass/pooleparty/__link/_type.scss +27 -48
  123. data/_sass/pooleparty/_base.pre.scss +10 -17
  124. data/_sass/pooleparty/_code.pre.scss +10 -15
  125. data/_sass/pooleparty/_footer.pre.scss +10 -15
  126. data/_sass/pooleparty/_footnotes.pre.scss +21 -15
  127. data/_sass/pooleparty/_message.pre.scss +10 -15
  128. data/_sass/pooleparty/_pagination.pre.scss +10 -15
  129. data/_sass/pooleparty/_posts.pre.scss +11 -16
  130. data/_sass/pooleparty/_read-more.pre.scss +36 -0
  131. data/_sass/pooleparty/_related.pre.scss +10 -15
  132. data/_sass/pooleparty/_table.pre.scss +10 -15
  133. data/_sass/pooleparty/_type.pre.scss +24 -50
  134. data/assets/Resume.pdf +0 -0
  135. data/assets/bower.json +3 -3
  136. data/assets/bower_components/fontfaceobserver/.bower.json +33 -0
  137. data/assets/bower_components/fontfaceobserver/.gitignore +2 -0
  138. data/assets/bower_components/fontfaceobserver/.travis.yml +16 -0
  139. data/assets/bower_components/fontfaceobserver/Gruntfile.js +101 -0
  140. data/assets/bower_components/fontfaceobserver/LICENSE +23 -0
  141. data/assets/bower_components/fontfaceobserver/bower.json +22 -0
  142. data/assets/bower_components/fontfaceobserver/exports.js +8 -0
  143. data/assets/bower_components/fontfaceobserver/externs-commonjs.js +10 -0
  144. data/assets/bower_components/fontfaceobserver/externs.js +15 -0
  145. data/assets/bower_components/fontfaceobserver/fontfaceobserver.js +12 -0
  146. data/assets/bower_components/fontfaceobserver/fontfaceobserver.standalone.js +8 -0
  147. data/assets/bower_components/fontfaceobserver/package.json +57 -0
  148. data/assets/bower_components/fontfaceobserver/src/descriptors.js +10 -0
  149. data/assets/bower_components/fontfaceobserver/src/observer.js +349 -0
  150. data/assets/bower_components/fontfaceobserver/src/ruler.js +130 -0
  151. data/assets/bower_components/fontfaceobserver/test/assets/index.html +8 -0
  152. data/assets/bower_components/fontfaceobserver/test/assets/late.css +1 -0
  153. data/assets/bower_components/fontfaceobserver/test/assets/sourcesanspro-regular.eot +0 -0
  154. data/assets/bower_components/fontfaceobserver/test/assets/sourcesanspro-regular.ttf +0 -0
  155. data/assets/bower_components/fontfaceobserver/test/assets/sourcesanspro-regular.woff +0 -0
  156. data/assets/bower_components/fontfaceobserver/test/assets/subset.eot +0 -0
  157. data/assets/bower_components/fontfaceobserver/test/assets/subset.ttf +0 -0
  158. data/assets/bower_components/fontfaceobserver/test/assets/subset.woff +0 -0
  159. data/assets/bower_components/fontfaceobserver/test/deps.js +5 -0
  160. data/assets/bower_components/fontfaceobserver/test/index.html +97 -0
  161. data/assets/bower_components/fontfaceobserver/test/observer-test.js +465 -0
  162. data/assets/bower_components/fontfaceobserver/test/ruler-test.js +112 -0
  163. data/assets/bower_components/fontfaceobserver/vendor/google/base.js +1489 -0
  164. data/assets/bower_components/katex/.bower.json +7 -6
  165. data/assets/bower_components/katex/dist/contrib/auto-render.js +790 -0
  166. data/assets/bower_components/katex/dist/contrib/auto-render.min.js +1 -1
  167. data/assets/bower_components/katex/dist/contrib/copy-tex.css +12 -0
  168. data/assets/bower_components/katex/dist/contrib/copy-tex.js +174 -0
  169. data/assets/bower_components/katex/dist/contrib/copy-tex.min.css +1 -0
  170. data/assets/bower_components/katex/dist/contrib/copy-tex.min.js +1 -0
  171. data/assets/bower_components/katex/dist/contrib/mathtex-script-type.js +113 -0
  172. data/assets/bower_components/katex/dist/contrib/mathtex-script-type.min.js +1 -0
  173. data/assets/bower_components/katex/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  174. data/assets/bower_components/katex/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  175. data/assets/bower_components/katex/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  176. data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  177. data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  178. data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  179. data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  180. data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  181. data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  182. data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  183. data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  184. data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  185. data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  186. data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  187. data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  188. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  189. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  190. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  191. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  192. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  193. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  194. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  195. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  196. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  197. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  198. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  199. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  200. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  201. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  202. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  203. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  204. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  205. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  206. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  207. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  208. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  209. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  210. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  211. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  212. data/assets/bower_components/katex/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  213. data/assets/bower_components/katex/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  214. data/assets/bower_components/katex/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  215. data/assets/bower_components/katex/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  216. data/assets/bower_components/katex/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  217. data/assets/bower_components/katex/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  218. data/assets/bower_components/katex/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  219. data/assets/bower_components/katex/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  220. data/assets/bower_components/katex/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  221. data/assets/bower_components/katex/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  222. data/assets/bower_components/katex/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  223. data/assets/bower_components/katex/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  224. data/assets/bower_components/katex/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  225. data/assets/bower_components/katex/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  226. data/assets/bower_components/katex/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  227. data/assets/bower_components/katex/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  228. data/assets/bower_components/katex/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  229. data/assets/bower_components/katex/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  230. data/assets/bower_components/katex/dist/katex.css +129 -209
  231. data/assets/bower_components/katex/dist/katex.js +14381 -9023
  232. data/assets/bower_components/katex/dist/katex.min.css +1 -1
  233. data/assets/bower_components/katex/dist/katex.min.js +1 -6
  234. data/assets/bower_components/katex/flow-typed/match-at.js +3 -0
  235. data/assets/bower_components/katex/flow-typed/object-assign.js +6 -0
  236. data/assets/bower_components/katex/package-lock.json +13848 -0
  237. data/assets/css/hydejack-8.0.0.css +3 -0
  238. data/assets/img/default-1.jpg +0 -0
  239. data/assets/img/example-content-ii.jpg +0 -0
  240. data/assets/img/example-content-iii.jpg +0 -0
  241. data/assets/img/hydejack-8.jpg +0 -0
  242. data/assets/img/hydejack-8@0,25x.jpg +0 -0
  243. data/assets/img/hydejack-8@0,5x.jpg +0 -0
  244. data/assets/img/projects/hy-drawer.svg +12 -0
  245. data/assets/img/projects/hy-img.svg +17 -0
  246. data/assets/img/projects/hy-push-state.svg +13 -0
  247. data/assets/img/resume.png +0 -0
  248. data/assets/img/sidebar-bg.jpg +0 -0
  249. data/assets/img/swipe.svg +22 -0
  250. data/assets/img/w3m.png +0 -0
  251. data/assets/js/hydejack-8.0.0.js +46 -0
  252. data/assets/js/sw.js +318 -0
  253. data/assets/manifest.json +4 -3
  254. data/assets/version.json +1 -1
  255. data/licenses/Apache-2.0.md +1 -4
  256. data/licenses/GPL-3.0.md +1 -4
  257. data/licenses/MIT.md +1 -4
  258. data/licenses/PRO.md +2 -6
  259. data/licenses/README.md +10 -0
  260. data/licenses/W3C.md +31 -0
  261. metadata +107 -94
  262. data/_includes/blog.html +0 -5
  263. data/_includes/body.html +0 -25
  264. data/_includes/head.html +0 -5
  265. data/_includes/scripts/load-js-deferred.js +0 -68
  266. data/_includes/scripts/load-js-deferred.min.js +0 -1
  267. data/_includes/social-list-item.html +0 -34
  268. data/_includes/social.html +0 -20
  269. data/assets/bower_components/katex/dist/fonts/KaTeX_AMS-Regular.eot +0 -0
  270. data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Bold.eot +0 -0
  271. data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Regular.eot +0 -0
  272. data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Bold.eot +0 -0
  273. data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Regular.eot +0 -0
  274. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Bold.eot +0 -0
  275. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Italic.eot +0 -0
  276. data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Regular.eot +0 -0
  277. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-BoldItalic.eot +0 -0
  278. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  279. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  280. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  281. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Italic.eot +0 -0
  282. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Regular.eot +0 -0
  283. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Regular.ttf +0 -0
  284. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Regular.woff +0 -0
  285. data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Regular.woff2 +0 -0
  286. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Bold.eot +0 -0
  287. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Italic.eot +0 -0
  288. data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Regular.eot +0 -0
  289. data/assets/bower_components/katex/dist/fonts/KaTeX_Script-Regular.eot +0 -0
  290. data/assets/bower_components/katex/dist/fonts/KaTeX_Size1-Regular.eot +0 -0
  291. data/assets/bower_components/katex/dist/fonts/KaTeX_Size2-Regular.eot +0 -0
  292. data/assets/bower_components/katex/dist/fonts/KaTeX_Size3-Regular.eot +0 -0
  293. data/assets/bower_components/katex/dist/fonts/KaTeX_Size4-Regular.eot +0 -0
  294. data/assets/bower_components/katex/dist/fonts/KaTeX_Typewriter-Regular.eot +0 -0
  295. data/assets/bower_components/webfontloader/.bower.json +0 -38
  296. data/assets/bower_components/webfontloader/CHANGELOG +0 -419
  297. data/assets/bower_components/webfontloader/Gemfile +0 -3
  298. data/assets/bower_components/webfontloader/LICENSE +0 -176
  299. data/assets/bower_components/webfontloader/Rakefile +0 -269
  300. data/assets/bower_components/webfontloader/bower.json +0 -23
  301. data/assets/bower_components/webfontloader/browsers.json +0 -133
  302. data/assets/bower_components/webfontloader/externs.js +0 -19
  303. data/assets/bower_components/webfontloader/package.json +0 -37
  304. data/assets/bower_components/webfontloader/src/closure.js +0 -2
  305. data/assets/bower_components/webfontloader/src/core/cssclassname.js +0 -46
  306. data/assets/bower_components/webfontloader/src/core/domhelper.js +0 -405
  307. data/assets/bower_components/webfontloader/src/core/eventdispatcher.js +0 -195
  308. data/assets/bower_components/webfontloader/src/core/font.js +0 -140
  309. data/assets/bower_components/webfontloader/src/core/fontmodule.js +0 -16
  310. data/assets/bower_components/webfontloader/src/core/fontmoduleloader.js +0 -47
  311. data/assets/bower_components/webfontloader/src/core/fontruler.js +0 -60
  312. data/assets/bower_components/webfontloader/src/core/fontwatcher.js +0 -171
  313. data/assets/bower_components/webfontloader/src/core/fontwatchrunner.js +0 -249
  314. data/assets/bower_components/webfontloader/src/core/initialize.js +0 -97
  315. data/assets/bower_components/webfontloader/src/core/nativefontwatchrunner.js +0 -69
  316. data/assets/bower_components/webfontloader/src/core/stylesheetwaiter.js +0 -48
  317. data/assets/bower_components/webfontloader/src/core/webfont.js +0 -97
  318. data/assets/bower_components/webfontloader/src/modules.yml +0 -34
  319. data/assets/bower_components/webfontloader/src/modules/custom.js +0 -63
  320. data/assets/bower_components/webfontloader/src/modules/fontdeck.js +0 -66
  321. data/assets/bower_components/webfontloader/src/modules/google/fontapiparser.js +0 -181
  322. data/assets/bower_components/webfontloader/src/modules/google/fontapiurlbuilder.js +0 -77
  323. data/assets/bower_components/webfontloader/src/modules/google/googlefontapi.js +0 -54
  324. data/assets/bower_components/webfontloader/src/modules/monotype.js +0 -110
  325. data/assets/bower_components/webfontloader/src/modules/typekit.js +0 -73
  326. data/assets/bower_components/webfontloader/webfontloader.gemspec +0 -191
  327. data/assets/bower_components/webfontloader/webfontloader.js +0 -17
  328. data/assets/js/hydejack-7.5.2.js +0 -249
@@ -1,171 +0,0 @@
1
- goog.provide('webfont.FontWatcher');
2
-
3
- goog.require('webfont.FontWatchRunner');
4
- goog.require('webfont.NativeFontWatchRunner');
5
-
6
- /**
7
- * @typedef {Object.<string, Array.<string>>}
8
- */
9
- webfont.FontTestStrings;
10
-
11
- /**
12
- * @constructor
13
- * @param {webfont.DomHelper} domHelper
14
- * @param {webfont.EventDispatcher} eventDispatcher
15
- * @param {number=} opt_timeout
16
- */
17
- webfont.FontWatcher = function(domHelper, eventDispatcher, opt_timeout) {
18
- this.domHelper_ = domHelper;
19
- this.eventDispatcher_ = eventDispatcher;
20
- this.currentlyWatched_ = 0;
21
- this.last_ = false;
22
- this.success_ = false;
23
- this.timeout_ = opt_timeout;
24
- };
25
-
26
- goog.scope(function () {
27
- var FontWatcher = webfont.FontWatcher,
28
- FontWatchRunner = webfont.FontWatchRunner,
29
- NativeFontWatchRunner = webfont.NativeFontWatchRunner;
30
-
31
- /**
32
- * @type {null|boolean}
33
- */
34
- FontWatcher.SHOULD_USE_NATIVE_LOADER = null;
35
-
36
- /**
37
- * @return {string}
38
- */
39
- FontWatcher.getUserAgent = function () {
40
- return window.navigator.userAgent;
41
- };
42
-
43
- /**
44
- * @return {string}
45
- */
46
- FontWatcher.getVendor = function () {
47
- return window.navigator.vendor;
48
- };
49
-
50
- /**
51
- * Returns true if this browser has support for
52
- * the CSS font loading API.
53
- *
54
- * @return {boolean}
55
- */
56
- FontWatcher.shouldUseNativeLoader = function () {
57
- if (FontWatcher.SHOULD_USE_NATIVE_LOADER === null) {
58
- if (!!window.FontFace) {
59
- var match = /Gecko.*Firefox\/(\d+)/.exec(FontWatcher.getUserAgent());
60
- var safari10Match = /OS X.*Version\/10\..*Safari/.exec(FontWatcher.getUserAgent()) && /Apple/.exec(FontWatcher.getVendor());
61
-
62
- if (match) {
63
- FontWatcher.SHOULD_USE_NATIVE_LOADER = parseInt(match[1], 10) > 42;
64
- } else if (safari10Match) {
65
- FontWatcher.SHOULD_USE_NATIVE_LOADER = false;
66
- } else {
67
- FontWatcher.SHOULD_USE_NATIVE_LOADER = true;
68
- }
69
- } else {
70
- FontWatcher.SHOULD_USE_NATIVE_LOADER = false;
71
- }
72
- }
73
- return FontWatcher.SHOULD_USE_NATIVE_LOADER;
74
- };
75
-
76
- /**
77
- * Watches a set of font families.
78
- * @param {Array.<webfont.Font>} fonts The fonts to watch.
79
- * @param {webfont.FontTestStrings} fontTestStrings The font test strings for
80
- * each family.
81
- * @param {Object.<String, boolean>} metricCompatibleFonts
82
- * @param {boolean} last True if this is the last set of fonts to watch.
83
- */
84
- FontWatcher.prototype.watchFonts = function(fonts,
85
- fontTestStrings, metricCompatibleFonts, last) {
86
- var length = fonts.length,
87
- testStrings = fontTestStrings || {};
88
-
89
- if (length === 0 && last) {
90
- this.eventDispatcher_.dispatchInactive();
91
- return;
92
- }
93
-
94
- this.currentlyWatched_ += fonts.length;
95
-
96
- if (last) {
97
- this.last_ = last;
98
- }
99
-
100
- var i, fontWatchRunners = [];
101
- for (i = 0; i < fonts.length; i++) {
102
- var font = fonts[i],
103
- testString = testStrings[font.getName()];
104
-
105
- this.eventDispatcher_.dispatchFontLoading(font);
106
-
107
- var fontWatchRunner = null;
108
-
109
- if (FontWatcher.shouldUseNativeLoader()) {
110
- fontWatchRunner = new NativeFontWatchRunner(
111
- goog.bind(this.fontActive_, this),
112
- goog.bind(this.fontInactive_, this),
113
- this.domHelper_,
114
- font,
115
- this.timeout_,
116
- testString
117
- );
118
- } else {
119
- fontWatchRunner = new FontWatchRunner(
120
- goog.bind(this.fontActive_, this),
121
- goog.bind(this.fontInactive_, this),
122
- this.domHelper_,
123
- font,
124
- this.timeout_,
125
- metricCompatibleFonts,
126
- testString
127
- );
128
- }
129
-
130
- fontWatchRunners.push(fontWatchRunner);
131
- }
132
-
133
- for (i = 0; i < fontWatchRunners.length; i++) {
134
- fontWatchRunners[i].start();
135
- }
136
- };
137
-
138
- /**
139
- * Called by a FontWatchRunner when a font has been detected as active.
140
- * @param {webfont.Font} font
141
- * @private
142
- */
143
- FontWatcher.prototype.fontActive_ = function(font) {
144
- this.eventDispatcher_.dispatchFontActive(font);
145
- this.success_ = true;
146
- this.decreaseCurrentlyWatched_();
147
- };
148
-
149
- /**
150
- * Called by a FontWatchRunner when a font has been detected as inactive.
151
- * @param {webfont.Font} font
152
- * @private
153
- */
154
- FontWatcher.prototype.fontInactive_ = function(font) {
155
- this.eventDispatcher_.dispatchFontInactive(font);
156
- this.decreaseCurrentlyWatched_();
157
- };
158
-
159
- /**
160
- * @private
161
- */
162
- FontWatcher.prototype.decreaseCurrentlyWatched_ = function() {
163
- if (--this.currentlyWatched_ == 0 && this.last_) {
164
- if (this.success_) {
165
- this.eventDispatcher_.dispatchActive();
166
- } else {
167
- this.eventDispatcher_.dispatchInactive();
168
- }
169
- }
170
- };
171
- });
@@ -1,249 +0,0 @@
1
- goog.provide('webfont.FontWatchRunner');
2
-
3
- goog.require('webfont.Font');
4
- goog.require('webfont.FontRuler');
5
-
6
- /**
7
- * @constructor
8
- * @param {function(webfont.Font)} activeCallback
9
- * @param {function(webfont.Font)} inactiveCallback
10
- * @param {webfont.DomHelper} domHelper
11
- * @param {webfont.Font} font
12
- * @param {number=} opt_timeout
13
- * @param {Object.<string, boolean>=} opt_metricCompatibleFonts
14
- * @param {string=} opt_fontTestString
15
- */
16
- webfont.FontWatchRunner = function(activeCallback, inactiveCallback, domHelper,
17
- font, opt_timeout, opt_metricCompatibleFonts, opt_fontTestString) {
18
- this.activeCallback_ = activeCallback;
19
- this.inactiveCallback_ = inactiveCallback;
20
- this.domHelper_ = domHelper;
21
- this.font_ = font;
22
- this.fontTestString_ = opt_fontTestString || webfont.FontWatchRunner.DEFAULT_TEST_STRING;
23
- this.lastResortWidths_ = {};
24
- this.timeout_ = opt_timeout || 3000;
25
-
26
- this.metricCompatibleFonts_ = opt_metricCompatibleFonts || null;
27
-
28
- this.fontRulerA_ = null;
29
- this.fontRulerB_ = null;
30
- this.lastResortRulerA_ = null;
31
- this.lastResortRulerB_ = null;
32
-
33
- this.setupRulers_();
34
- };
35
-
36
- /**
37
- * @enum {string}
38
- * @const
39
- */
40
- webfont.FontWatchRunner.LastResortFonts = {
41
- SERIF: 'serif',
42
- SANS_SERIF: 'sans-serif'
43
- };
44
-
45
- /**
46
- * Default test string. Characters are chosen so that their widths vary a lot
47
- * between the fonts in the default stacks. We want each fallback stack
48
- * to always start out at a different width than the other.
49
- * @type {string}
50
- * @const
51
- */
52
- webfont.FontWatchRunner.DEFAULT_TEST_STRING = 'BESbswy';
53
-
54
- goog.scope(function () {
55
- var FontWatchRunner = webfont.FontWatchRunner,
56
- Font = webfont.Font,
57
- FontRuler = webfont.FontRuler;
58
-
59
- /**
60
- * @type {null|boolean}
61
- */
62
- FontWatchRunner.HAS_WEBKIT_FALLBACK_BUG = null;
63
-
64
- /**
65
- * @return {string}
66
- */
67
- FontWatchRunner.getUserAgent = function () {
68
- return window.navigator.userAgent;
69
- };
70
-
71
- /**
72
- * Returns true if this browser is WebKit and it has the fallback bug
73
- * which is present in WebKit 536.11 and earlier.
74
- *
75
- * @return {boolean}
76
- */
77
- FontWatchRunner.hasWebKitFallbackBug = function () {
78
- if (FontWatchRunner.HAS_WEBKIT_FALLBACK_BUG === null) {
79
- var match = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(FontWatchRunner.getUserAgent());
80
-
81
- FontWatchRunner.HAS_WEBKIT_FALLBACK_BUG = !!match &&
82
- (parseInt(match[1], 10) < 536 ||
83
- (parseInt(match[1], 10) === 536 &&
84
- parseInt(match[2], 10) <= 11));
85
- }
86
- return FontWatchRunner.HAS_WEBKIT_FALLBACK_BUG;
87
- };
88
-
89
- /**
90
- * @private
91
- */
92
- FontWatchRunner.prototype.setupRulers_ = function() {
93
- this.fontRulerA_ = new FontRuler(this.domHelper_, this.fontTestString_);
94
- this.fontRulerB_ = new FontRuler(this.domHelper_, this.fontTestString_);
95
- this.lastResortRulerA_ = new FontRuler(this.domHelper_, this.fontTestString_);
96
- this.lastResortRulerB_ = new FontRuler(this.domHelper_, this.fontTestString_);
97
-
98
- this.fontRulerA_.setFont(new Font(this.font_.getName() + ',' + FontWatchRunner.LastResortFonts.SERIF, this.font_.getVariation()));
99
- this.fontRulerB_.setFont(new Font(this.font_.getName() + ',' + FontWatchRunner.LastResortFonts.SANS_SERIF, this.font_.getVariation()));
100
- this.lastResortRulerA_.setFont(new Font(FontWatchRunner.LastResortFonts.SERIF, this.font_.getVariation()));
101
- this.lastResortRulerB_.setFont(new Font(FontWatchRunner.LastResortFonts.SANS_SERIF, this.font_.getVariation()));
102
-
103
- this.fontRulerA_.insert();
104
- this.fontRulerB_.insert();
105
- this.lastResortRulerA_.insert();
106
- this.lastResortRulerB_.insert();
107
- };
108
-
109
- FontWatchRunner.prototype.start = function() {
110
- this.lastResortWidths_[FontWatchRunner.LastResortFonts.SERIF] = this.lastResortRulerA_.getWidth();
111
- this.lastResortWidths_[FontWatchRunner.LastResortFonts.SANS_SERIF] = this.lastResortRulerB_.getWidth();
112
-
113
- this.started_ = goog.now();
114
-
115
- this.check_();
116
- };
117
-
118
- /**
119
- * Returns true if the given width matches the generic font family width.
120
- *
121
- * @private
122
- * @param {number} width
123
- * @param {string} lastResortFont
124
- * @return {boolean}
125
- */
126
- FontWatchRunner.prototype.widthMatches_ = function(width, lastResortFont) {
127
- return width === this.lastResortWidths_[lastResortFont];
128
- };
129
-
130
- /**
131
- * Return true if the given widths match any of the generic font family
132
- * widths.
133
- *
134
- * @private
135
- * @param {number} a
136
- * @param {number} b
137
- * @return {boolean}
138
- */
139
- FontWatchRunner.prototype.widthsMatchLastResortWidths_ = function(a, b) {
140
- for (var font in FontWatchRunner.LastResortFonts) {
141
- if (FontWatchRunner.LastResortFonts.hasOwnProperty(font)) {
142
- if (this.widthMatches_(a, FontWatchRunner.LastResortFonts[font]) &&
143
- this.widthMatches_(b, FontWatchRunner.LastResortFonts[font])) {
144
- return true;
145
- }
146
- }
147
- }
148
- return false;
149
- };
150
-
151
- /**
152
- * @private
153
- * Returns true if the loading has timed out.
154
- * @return {boolean}
155
- */
156
- FontWatchRunner.prototype.hasTimedOut_ = function() {
157
- return goog.now() - this.started_ >= this.timeout_;
158
- };
159
-
160
- /**
161
- * Returns true if both fonts match the normal fallback fonts.
162
- *
163
- * @private
164
- * @param {number} a
165
- * @param {number} b
166
- * @return {boolean}
167
- */
168
- FontWatchRunner.prototype.isFallbackFont_ = function (a, b) {
169
- return this.widthMatches_(a, FontWatchRunner.LastResortFonts.SERIF) &&
170
- this.widthMatches_(b, FontWatchRunner.LastResortFonts.SANS_SERIF);
171
- };
172
-
173
- /**
174
- * Returns true if the WebKit bug is present and both widths match a last resort font.
175
- *
176
- * @private
177
- * @param {number} a
178
- * @param {number} b
179
- * @return {boolean}
180
- */
181
- FontWatchRunner.prototype.isLastResortFont_ = function (a, b) {
182
- return FontWatchRunner.hasWebKitFallbackBug() && this.widthsMatchLastResortWidths_(a, b);
183
- };
184
-
185
- /**
186
- * Returns true if the current font is metric compatible. Also returns true
187
- * if we do not have a list of metric compatible fonts.
188
- *
189
- * @private
190
- * @return {boolean}
191
- */
192
- FontWatchRunner.prototype.isMetricCompatibleFont_ = function () {
193
- return this.metricCompatibleFonts_ === null || this.metricCompatibleFonts_.hasOwnProperty(this.font_.getName());
194
- };
195
-
196
- /**
197
- * Checks the width of the two spans against their original widths during each
198
- * async loop. If the width of one of the spans is different than the original
199
- * width, then we know that the font is rendering and finish with the active
200
- * callback. If we wait more than 5 seconds and nothing has changed, we finish
201
- * with the inactive callback.
202
- *
203
- * @private
204
- */
205
- FontWatchRunner.prototype.check_ = function() {
206
- var widthA = this.fontRulerA_.getWidth();
207
- var widthB = this.fontRulerB_.getWidth();
208
-
209
- if (this.isFallbackFont_(widthA, widthB) || this.isLastResortFont_(widthA, widthB)) {
210
- if (this.hasTimedOut_()) {
211
- if (this.isLastResortFont_(widthA, widthB) && this.isMetricCompatibleFont_()) {
212
- this.finish_(this.activeCallback_);
213
- } else {
214
- this.finish_(this.inactiveCallback_);
215
- }
216
- } else {
217
- this.asyncCheck_();
218
- }
219
- } else {
220
- this.finish_(this.activeCallback_);
221
- }
222
- };
223
-
224
- /**
225
- * @private
226
- */
227
- FontWatchRunner.prototype.asyncCheck_ = function() {
228
- setTimeout(goog.bind(function () {
229
- this.check_();
230
- }, this), 50);
231
- };
232
-
233
- /**
234
- * @private
235
- * @param {function(webfont.Font)} callback
236
- */
237
- FontWatchRunner.prototype.finish_ = function(callback) {
238
- // Remove elements and trigger callback (which adds active/inactive class) asynchronously to avoid reflow chain if
239
- // several fonts are finished loading right after each other
240
- setTimeout(goog.bind(function () {
241
- this.fontRulerA_.remove();
242
- this.fontRulerB_.remove();
243
- this.lastResortRulerA_.remove();
244
- this.lastResortRulerB_.remove();
245
- callback(this.font_);
246
- }, this), 0);
247
- };
248
-
249
- });
@@ -1,97 +0,0 @@
1
- goog.provide('webfont');
2
-
3
- goog.require('webfont.WebFont');
4
-
5
- goog.require('webfont.modules.Typekit');
6
- goog.require('webfont.modules.Fontdeck');
7
- goog.require('webfont.modules.Monotype');
8
- goog.require('webfont.modules.Custom');
9
- goog.require('webfont.modules.google.GoogleFontApi');
10
-
11
- /**
12
- * @define {boolean}
13
- */
14
- var INCLUDE_CUSTOM_MODULE = false;
15
-
16
- /**
17
- * @define {boolean}
18
- */
19
- var INCLUDE_FONTDECK_MODULE = false;
20
-
21
- /**
22
- * @define {boolean}
23
- */
24
- var INCLUDE_MONOTYPE_MODULE = false;
25
-
26
- /**
27
- * @define {boolean}
28
- */
29
- var INCLUDE_TYPEKIT_MODULE = false;
30
-
31
- /**
32
- * @define {boolean}
33
- */
34
- var INCLUDE_GOOGLE_MODULE = false;
35
-
36
- /**
37
- * @define {string}
38
- */
39
- var WEBFONT = 'WebFont';
40
-
41
- /**
42
- * @define {string}
43
- */
44
- var WEBFONT_CONFIG = 'WebFontConfig';
45
-
46
- /**
47
- * @type {webfont.WebFont}
48
- */
49
- var webFontLoader = new webfont.WebFont(window);
50
-
51
- if (INCLUDE_CUSTOM_MODULE) {
52
- webFontLoader.addModule(webfont.modules.Custom.NAME, function (configuration, domHelper) {
53
- return new webfont.modules.Custom(domHelper, configuration);
54
- });
55
- }
56
-
57
- if (INCLUDE_FONTDECK_MODULE) {
58
- webFontLoader.addModule(webfont.modules.Fontdeck.NAME, function (configuration, domHelper) {
59
- return new webfont.modules.Fontdeck(domHelper, configuration);
60
- });
61
- }
62
-
63
- if (INCLUDE_MONOTYPE_MODULE) {
64
- webFontLoader.addModule(webfont.modules.Monotype.NAME, function (configuration, domHelper) {
65
- return new webfont.modules.Monotype(domHelper, configuration);
66
- });
67
- }
68
-
69
- if (INCLUDE_TYPEKIT_MODULE) {
70
- webFontLoader.addModule(webfont.modules.Typekit.NAME, function (configuration, domHelper) {
71
- return new webfont.modules.Typekit(domHelper, configuration);
72
- });
73
- }
74
-
75
- if (INCLUDE_GOOGLE_MODULE) {
76
- webFontLoader.addModule(webfont.modules.google.GoogleFontApi.NAME, function (configuration, domHelper) {
77
- return new webfont.modules.google.GoogleFontApi(domHelper, configuration);
78
- });
79
- }
80
-
81
- var exports = {
82
- 'load': goog.bind(webFontLoader.load, webFontLoader)
83
- };
84
-
85
- if (typeof define === "function" && define.amd) {
86
- define(function () {
87
- return exports;
88
- });
89
- } else if (typeof module !== "undefined" && module.exports) {
90
- module.exports = exports;
91
- } else {
92
- window[WEBFONT] = exports;
93
-
94
- if (window[WEBFONT_CONFIG]) {
95
- webFontLoader.load(window[WEBFONT_CONFIG]);
96
- }
97
- }