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,69 +0,0 @@
1
- goog.provide('webfont.NativeFontWatchRunner');
2
-
3
- goog.require('webfont.Font');
4
-
5
- goog.scope(function () {
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 {string=} opt_fontTestString
14
- */
15
- webfont.NativeFontWatchRunner = function(activeCallback, inactiveCallback, domHelper, font, opt_timeout, opt_fontTestString) {
16
- this.activeCallback_ = activeCallback;
17
- this.inactiveCallback_ = inactiveCallback;
18
- this.font_ = font;
19
- this.domHelper_ = domHelper;
20
- this.timeout_ = opt_timeout || 3000;
21
- this.fontTestString_ = opt_fontTestString || undefined;
22
- };
23
-
24
- var NativeFontWatchRunner = webfont.NativeFontWatchRunner;
25
-
26
- NativeFontWatchRunner.prototype.start = function () {
27
- var doc = this.domHelper_.getLoadWindow().document,
28
- that = this;
29
-
30
- var start = goog.now();
31
-
32
- var loader = new Promise(function (resolve, reject) {
33
- var check = function () {
34
- var now = goog.now();
35
-
36
- if (now - start >= that.timeout_) {
37
- reject();
38
- } else {
39
- doc.fonts.load(that.font_.toCssString(), that.fontTestString_).then(function (fonts) {
40
- if (fonts.length >= 1) {
41
- resolve();
42
- } else {
43
- setTimeout(check, 25);
44
- }
45
- }, function () {
46
- reject();
47
- });
48
- }
49
- };
50
-
51
- check();
52
- });
53
-
54
- var timeoutId = null,
55
- timer = new Promise(function (resolve, reject) {
56
- timeoutId = setTimeout(reject, that.timeout_);
57
- });
58
-
59
- Promise.race([timer, loader]).then(function () {
60
- if (timeoutId) {
61
- clearTimeout(timeoutId);
62
- timeoutId = null;
63
- }
64
- that.activeCallback_(that.font_);
65
- }, function () {
66
- that.inactiveCallback_(that.font_);
67
- });
68
- };
69
- });
@@ -1,48 +0,0 @@
1
- goog.provide('webfont.StyleSheetWaiter');
2
-
3
- /**
4
- * A utility class for handling callback from DomHelper.loadStylesheet().
5
- *
6
- * @constructor
7
- */
8
- webfont.StyleSheetWaiter = function() {
9
- /** @private @type {number} */
10
- this.waitingCount_ = 0;
11
- /** @private @type {Function} */
12
- this.onReady_ = null;
13
- };
14
-
15
- goog.scope(function () {
16
- var StyleSheetWaiter = webfont.StyleSheetWaiter;
17
-
18
- /**
19
- * @return {function(Error)}
20
- */
21
- StyleSheetWaiter.prototype.startWaitingLoad = function() {
22
- var self = this;
23
- self.waitingCount_++;
24
- return function(error) {
25
- self.waitingCount_--;
26
- self.fireIfReady_();
27
- };
28
- };
29
-
30
- /**
31
- * @param {Function} fn
32
- */
33
- StyleSheetWaiter.prototype.waitWhileNeededThen = function(fn) {
34
- this.onReady_ = fn;
35
- this.fireIfReady_();
36
- };
37
-
38
- /**
39
- * @private
40
- */
41
- StyleSheetWaiter.prototype.fireIfReady_ = function() {
42
- var isReady = 0 == this.waitingCount_;
43
- if (isReady && this.onReady_) {
44
- this.onReady_();
45
- this.onReady_ = null;
46
- }
47
- };
48
- });
@@ -1,97 +0,0 @@
1
- goog.provide('webfont.WebFont');
2
-
3
- goog.require('webfont.DomHelper');
4
- goog.require('webfont.EventDispatcher');
5
- goog.require('webfont.FontWatcher');
6
- goog.require('webfont.FontModuleLoader');
7
-
8
- /**
9
- * @param {Window} mainWindow The main application window containing
10
- * webfontloader.js.
11
- * @constructor
12
- */
13
- webfont.WebFont = function(mainWindow) {
14
- this.mainWindow_ = mainWindow;
15
- this.fontModuleLoader_ = new webfont.FontModuleLoader();
16
- this.moduleLoading_ = 0;
17
- this.events_ = true;
18
- this.classes_ = true;
19
- };
20
-
21
- goog.scope(function () {
22
- var WebFont = webfont.WebFont,
23
- DomHelper = webfont.DomHelper,
24
- EventDispatcher = webfont.EventDispatcher,
25
- FontWatcher = webfont.FontWatcher;
26
-
27
- /**
28
- * @param {string} name
29
- * @param {webfont.FontModuleFactory} factory
30
- */
31
- WebFont.prototype.addModule = function(name, factory) {
32
- this.fontModuleLoader_.addModuleFactory(name, factory);
33
- };
34
-
35
- /**
36
- * @param {Object} configuration
37
- */
38
- WebFont.prototype.load = function(configuration) {
39
- var context = configuration['context'] || this.mainWindow_;
40
- this.domHelper_ = new DomHelper(this.mainWindow_, context);
41
-
42
- this.events_ = configuration['events'] !== false;
43
- this.classes_ = configuration['classes'] !== false;
44
-
45
- var eventDispatcher = new EventDispatcher(
46
- this.domHelper_,
47
- configuration
48
- );
49
-
50
- this.load_(eventDispatcher, configuration);
51
- };
52
-
53
- /**
54
- * @param {webfont.EventDispatcher} eventDispatcher
55
- * @param {webfont.FontWatcher} fontWatcher
56
- * @param {Array.<webfont.Font>} fonts
57
- * @param {webfont.FontTestStrings=} opt_fontTestStrings
58
- * @param {Object.<string, boolean>=} opt_metricCompatibleFonts
59
- */
60
- WebFont.prototype.onModuleReady_ = function(eventDispatcher, fontWatcher, fonts, opt_fontTestStrings, opt_metricCompatibleFonts) {
61
- var allModulesLoaded = --this.moduleLoading_ == 0;
62
-
63
- if (this.classes_ || this.events_) {
64
- setTimeout(function () {
65
- fontWatcher.watchFonts(fonts, opt_fontTestStrings || null, opt_metricCompatibleFonts || null, allModulesLoaded);
66
- }, 0);
67
- }
68
- };
69
-
70
- /**
71
- * @param {webfont.EventDispatcher} eventDispatcher
72
- * @param {Object} configuration
73
- */
74
- WebFont.prototype.load_ = function(eventDispatcher, configuration) {
75
- var modules = [],
76
- timeout = configuration['timeout'],
77
- self = this;
78
-
79
- // Immediately dispatch the loading event before initializing the modules
80
- // so we know for sure that the loading event is synchronous.
81
- eventDispatcher.dispatchLoading();
82
-
83
- modules = this.fontModuleLoader_.getModules(configuration, this.domHelper_);
84
-
85
- var fontWatcher = new webfont.FontWatcher(this.domHelper_, eventDispatcher, timeout);
86
-
87
- this.moduleLoading_ = modules.length;
88
-
89
- for (var i = 0, len = modules.length; i < len; i++) {
90
- var module = modules[i];
91
-
92
- module.load(function (fonts, opt_fontTestStrings, opt_metricCompatibleFonts) {
93
- self.onModuleReady_(eventDispatcher, fontWatcher, fonts, opt_fontTestStrings, opt_metricCompatibleFonts);
94
- });
95
- }
96
- };
97
- });
@@ -1,34 +0,0 @@
1
- core:
2
- - ../tools/compiler/base.js
3
- - core/domhelper.js
4
- - core/stylesheetwaiter.js
5
- - core/cssclassname.js
6
- - core/font.js
7
- - core/eventdispatcher.js
8
- - core/fontmodule.js
9
- - core/fontmoduleloader.js
10
- - core/fontruler.js
11
- - core/nativefontwatchrunner.js
12
- - core/fontwatchrunner.js
13
- - core/fontwatcher.js
14
- - core/webfont.js
15
- - core/initialize.js
16
-
17
-
18
-
19
- google:
20
- - modules/google/fontapiurlbuilder.js
21
- - modules/google/fontapiparser.js
22
- - modules/google/googlefontapi.js
23
-
24
- fontdeck:
25
- - modules/fontdeck.js
26
-
27
- typekit:
28
- - modules/typekit.js
29
-
30
- monotype:
31
- - modules/monotype.js
32
-
33
- custom:
34
- - modules/custom.js
@@ -1,63 +0,0 @@
1
- goog.provide('webfont.modules.Custom');
2
-
3
- goog.require('webfont.Font');
4
- goog.require('webfont.StyleSheetWaiter');
5
-
6
- /**
7
- *
8
- * WebFont.load({
9
- * custom: {
10
- * families: ['Font1', 'Font2'],
11
- * urls: [ 'https://moo', 'https://meuh' ] }
12
- * });
13
- *
14
- * @constructor
15
- * @implements {webfont.FontModule}
16
- */
17
- webfont.modules.Custom = function(domHelper, configuration) {
18
- this.domHelper_ = domHelper;
19
- this.configuration_ = configuration;
20
- };
21
-
22
- /**
23
- * @const
24
- * @type {string}
25
- */
26
- webfont.modules.Custom.NAME = 'custom';
27
-
28
- goog.scope(function () {
29
- var Custom = webfont.modules.Custom,
30
- Font = webfont.Font,
31
- StyleSheetWaiter = webfont.StyleSheetWaiter;
32
-
33
- Custom.prototype.load = function(onReady) {
34
- var i, len;
35
- var urls = this.configuration_['urls'] || [];
36
- var familiesConfiguration = this.configuration_['families'] || [];
37
- var fontTestStrings = this.configuration_['testStrings'] || {};
38
- var waiter = new StyleSheetWaiter();
39
- for (i = 0, len = urls.length; i < len; i++) {
40
- this.domHelper_.loadStylesheet(urls[i], waiter.startWaitingLoad());
41
- }
42
-
43
- var fonts = [];
44
-
45
- for (i = 0, len = familiesConfiguration.length; i < len; i++) {
46
- var components = familiesConfiguration[i].split(":");
47
-
48
- if (components[1]) {
49
- var variations = components[1].split(",");
50
-
51
- for (var j = 0; j < variations.length; j += 1) {
52
- fonts.push(new Font(components[0], variations[j]));
53
- }
54
- } else {
55
- fonts.push(new Font(components[0]));
56
- }
57
- }
58
-
59
- waiter.waitWhileNeededThen(function() {
60
- onReady(fonts, fontTestStrings);
61
- });
62
- };
63
- });
@@ -1,66 +0,0 @@
1
- goog.provide('webfont.modules.Fontdeck');
2
-
3
- goog.require('webfont.Font');
4
-
5
- /**
6
- * @constructor
7
- * @implements {webfont.FontModule}
8
- */
9
- webfont.modules.Fontdeck = function(domHelper, configuration) {
10
- this.domHelper_ = domHelper;
11
- this.configuration_ = configuration;
12
- this.fonts_ = [];
13
- };
14
-
15
- /**
16
- * @const
17
- * @type {string}
18
- */
19
- webfont.modules.Fontdeck.NAME = 'fontdeck';
20
- webfont.modules.Fontdeck.HOOK = '__webfontfontdeckmodule__';
21
- webfont.modules.Fontdeck.API = 'https://f.fontdeck.com/s/css/js/';
22
-
23
- goog.scope(function () {
24
- var Fontdeck = webfont.modules.Fontdeck,
25
- Font = webfont.Font,
26
- FontVariationDescription = webfont.FontVariationDescription;
27
-
28
- Fontdeck.prototype.getScriptSrc = function(projectId) {
29
- // For empty iframes, fall back to main window's hostname.
30
- var hostname = this.domHelper_.getHostName();
31
- var api = this.configuration_['api'] || webfont.modules.Fontdeck.API;
32
- return api + hostname + '/' + projectId + '.js';
33
- };
34
-
35
- Fontdeck.prototype.load = function(onReady) {
36
- var projectId = this.configuration_['id'];
37
- var loadWindow = this.domHelper_.getLoadWindow();
38
- var self = this;
39
-
40
- if (projectId) {
41
- // Provide data to Fontdeck for processing.
42
- if (!loadWindow[webfont.modules.Fontdeck.HOOK]) {
43
- loadWindow[webfont.modules.Fontdeck.HOOK] = {};
44
- }
45
-
46
- // Fontdeck will call this function to indicate support status
47
- // and what fonts are provided.
48
- loadWindow[webfont.modules.Fontdeck.HOOK][projectId] = function(fontdeckSupports, data) {
49
- for (var i = 0, j = data['fonts'].length; i<j; ++i) {
50
- var font = data['fonts'][i];
51
- self.fonts_.push(new Font(font['name'], Font.parseCssVariation('font-weight:' + font['weight'] + ';font-style:' + font['style'])));
52
- }
53
- onReady(self.fonts_);
54
- };
55
-
56
- // Call the Fontdeck API.
57
- this.domHelper_.loadScript(this.getScriptSrc(projectId), function (err) {
58
- if (err) {
59
- onReady([]);
60
- }
61
- });
62
- } else {
63
- onReady([]);
64
- }
65
- };
66
- });
@@ -1,181 +0,0 @@
1
- goog.provide('webfont.modules.google.FontApiParser');
2
-
3
- goog.require('webfont.Font');
4
-
5
- /**
6
- * @constructor
7
- */
8
- webfont.modules.google.FontApiParser = function(fontFamilies) {
9
- this.fontFamilies_ = fontFamilies;
10
- this.parsedFonts_ = [];
11
- this.fontTestStrings_ = {};
12
- };
13
-
14
- webfont.modules.google.FontApiParser.INT_FONTS = {
15
- 'latin': webfont.FontWatchRunner.DEFAULT_TEST_STRING,
16
- 'latin-ext': '\u00E7\u00F6\u00FC\u011F\u015F',
17
- 'cyrillic': '\u0439\u044f\u0416',
18
- 'greek': '\u03b1\u03b2\u03a3',
19
- 'khmer': '\u1780\u1781\u1782',
20
- 'Hanuman': '\u1780\u1781\u1782' // For backward compatibility
21
- };
22
-
23
- webfont.modules.google.FontApiParser.WEIGHTS = {
24
- 'thin': '1',
25
- 'extralight': '2',
26
- 'extra-light': '2',
27
- 'ultralight': '2',
28
- 'ultra-light': '2',
29
- 'light': '3',
30
- 'regular': '4',
31
- 'book': '4',
32
- 'medium': '5',
33
- 'semi-bold': '6',
34
- 'semibold': '6',
35
- 'demi-bold': '6',
36
- 'demibold': '6',
37
- 'bold': '7',
38
- 'extra-bold': '8',
39
- 'extrabold': '8',
40
- 'ultra-bold': '8',
41
- 'ultrabold': '8',
42
- 'black': '9',
43
- 'heavy': '9',
44
- 'l': '3',
45
- 'r': '4',
46
- 'b': '7'
47
- };
48
-
49
- webfont.modules.google.FontApiParser.STYLES = {
50
- 'i': 'i',
51
- 'italic': 'i',
52
- 'n': 'n',
53
- 'normal': 'n'
54
- };
55
-
56
- webfont.modules.google.FontApiParser.VARIATION_MATCH =
57
- new RegExp("^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|" +
58
- "(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i" +
59
- "|normal|italic)?$");
60
-
61
- goog.scope(function () {
62
- var FontApiParser = webfont.modules.google.FontApiParser,
63
- Font = webfont.Font;
64
-
65
- FontApiParser.prototype.parse = function() {
66
- var length = this.fontFamilies_.length;
67
-
68
- for (var i = 0; i < length; i++) {
69
- var elements = this.fontFamilies_[i].split(":");
70
- var fontFamily = elements[0].replace(/\+/g, " ");
71
- var variations = ['n4'];
72
-
73
- if (elements.length >= 2) {
74
- var fvds = this.parseVariations_(elements[1]);
75
-
76
- if (fvds.length > 0) {
77
- variations = fvds;
78
- }
79
- if (elements.length == 3) {
80
- var subsets = this.parseSubsets_(elements[2]);
81
- if (subsets.length > 0) {
82
- var fontTestString = FontApiParser.INT_FONTS[subsets[0]];
83
-
84
- if (fontTestString) {
85
- this.fontTestStrings_[fontFamily] = fontTestString;
86
- }
87
- }
88
- }
89
- }
90
-
91
- // For backward compatibility
92
- if (!this.fontTestStrings_[fontFamily]) {
93
- var hanumanTestString = FontApiParser.INT_FONTS[fontFamily];
94
- if (hanumanTestString) {
95
- this.fontTestStrings_[fontFamily] = hanumanTestString;
96
- }
97
- }
98
-
99
- for (var j = 0; j < variations.length; j += 1) {
100
- this.parsedFonts_.push(new Font(fontFamily, variations[j]));
101
- }
102
- }
103
- };
104
-
105
- FontApiParser.prototype.generateFontVariationDescription_ = function(variation) {
106
- if (!variation.match(/^[\w-]+$/)) {
107
- return '';
108
- }
109
- var normalizedVariation = variation.toLowerCase();
110
- var groups = FontApiParser.VARIATION_MATCH.exec(normalizedVariation);
111
- if (groups == null) {
112
- return '';
113
- }
114
- var styleMatch = this.normalizeStyle_(groups[2]);
115
- var weightMatch = this.normalizeWeight_(groups[1]);
116
- return [styleMatch, weightMatch].join('');
117
- };
118
-
119
-
120
- FontApiParser.prototype.normalizeStyle_ = function(parsedStyle) {
121
- if (parsedStyle == null || parsedStyle == '') {
122
- return 'n';
123
- }
124
- return FontApiParser.STYLES[parsedStyle];
125
- };
126
-
127
-
128
- FontApiParser.prototype.normalizeWeight_ = function(parsedWeight) {
129
- if (parsedWeight == null || parsedWeight == '') {
130
- return '4';
131
- }
132
- var weight = FontApiParser.WEIGHTS[parsedWeight];
133
- if (weight) {
134
- return weight;
135
- }
136
- if (isNaN(parsedWeight)) {
137
- return '4';
138
- }
139
- return parsedWeight.substr(0, 1);
140
- };
141
-
142
-
143
- FontApiParser.prototype.parseVariations_ = function(variations) {
144
- var finalVariations = [];
145
-
146
- if (!variations) {
147
- return finalVariations;
148
- }
149
- var providedVariations = variations.split(",");
150
- var length = providedVariations.length;
151
-
152
- for (var i = 0; i < length; i++) {
153
- var variation = providedVariations[i];
154
- var fvd = this.generateFontVariationDescription_(variation);
155
-
156
- if (fvd) {
157
- finalVariations.push(fvd);
158
- }
159
- }
160
- return finalVariations;
161
- };
162
-
163
-
164
- FontApiParser.prototype.parseSubsets_ = function(subsets) {
165
- var finalSubsets = [];
166
-
167
- if (!subsets) {
168
- return finalSubsets;
169
- }
170
- return subsets.split(",");
171
- };
172
-
173
-
174
- FontApiParser.prototype.getFonts = function() {
175
- return this.parsedFonts_;
176
- };
177
-
178
- FontApiParser.prototype.getFontTestStrings = function() {
179
- return this.fontTestStrings_;
180
- };
181
- });