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.
- checksums.yaml +4 -4
- data/LICENSE.md +1 -4
- data/README.md +139 -86
- data/_includes/body/analytics.html +36 -0
- data/_includes/{comments.html → body/comments.html} +0 -0
- data/_includes/{footer.html → body/footer.html} +4 -2
- data/_includes/body/index.html +22 -0
- data/_includes/body/main.html +18 -0
- data/_includes/{menu.html → body/menu.html} +1 -0
- data/_includes/{nav.html → body/nav.html} +0 -0
- data/_includes/body/scripts.html +22 -0
- data/_includes/{sidebar.html → body/sidebar.html} +19 -6
- data/_includes/{about.html → components/about.html} +1 -1
- data/_includes/{author.html → components/author.html} +3 -3
- data/_includes/{avatar-tag.html → components/avatar-tag.html} +0 -0
- data/_includes/{srcset-img.html → components/hy-img.html} +24 -8
- data/_includes/{link.html → components/link.html} +0 -0
- data/_includes/{message.html → components/message.html} +0 -0
- data/_includes/{pagination.html → components/pagination.html} +2 -2
- data/_includes/{post-list-item.html → components/post-list-item.html} +0 -0
- data/_includes/{post.html → components/post.html} +21 -10
- data/_includes/{related-posts.html → components/related-posts.html} +1 -1
- data/_includes/components/social-list-item.html +40 -0
- data/_includes/components/social.html +23 -0
- data/_includes/{tag-list.html → components/tag-list.html} +0 -0
- data/_includes/head/index.html +9 -0
- data/_includes/head/links.html +7 -5
- data/_includes/head/meta.html +3 -3
- data/_includes/{page-style.html → head/page-style.html} +1 -1
- data/_includes/head/scripts.html +10 -39
- data/_includes/head/styles.html +42 -15
- data/_includes/header.txt +1 -1
- data/_includes/my-body.html +42 -0
- data/_includes/my-scripts.html +55 -0
- data/_includes/scripts/load-js.js +60 -0
- data/_includes/scripts/load-js.min.js +1 -0
- data/_includes/{smart-url → smart-url.txt} +0 -0
- data/_includes/styles/inline.scss +15 -19
- data/_includes/styles/style.scss +20 -17
- data/_includes/templates/animation.html +1 -1
- data/_includes/templates/back.html +1 -1
- data/_includes/templates/cookies-banner.html +1 -1
- data/_includes/templates/error.html +1 -1
- data/_includes/{templates.html → templates/index.html} +1 -2
- data/_includes/templates/loading.html +1 -1
- data/_includes/templates/permalink.html +1 -1
- data/_layouts/about.html +29 -30
- data/_layouts/base.html +20 -62
- data/_layouts/blog.html +20 -22
- data/_layouts/compress.html +1 -1
- data/_layouts/default.html +13 -18
- data/_layouts/home.html +11 -16
- data/_layouts/list.html +13 -18
- data/_layouts/not-found.html +11 -16
- data/_layouts/page.html +12 -17
- data/_layouts/post.html +15 -20
- data/_layouts/redirect.html +11 -16
- data/_sass/_mixins.scss +10 -15
- data/_sass/_spinner.scss +10 -15
- data/_sass/_variables.scss +35 -19
- data/_sass/hydejack/__inline/_avatar.scss +33 -32
- data/_sass/hydejack/__inline/_base.scss +30 -68
- data/_sass/hydejack/__inline/_break-layout.scss +19 -26
- data/_sass/hydejack/__inline/_content.scss +29 -34
- data/_sass/hydejack/__inline/_footer.scss +19 -26
- data/_sass/hydejack/__inline/_images.scss +38 -0
- data/_sass/hydejack/__inline/_katex.scss +19 -26
- data/_sass/hydejack/__inline/_links.scss +45 -0
- data/_sass/hydejack/__inline/_mark-external.scss +19 -26
- data/_sass/hydejack/__inline/_menu.scss +28 -35
- data/_sass/hydejack/__inline/_sidebar.scss +76 -76
- data/_sass/hydejack/__inline/_social.scss +25 -31
- data/_sass/hydejack/__inline/_utilities.scss +42 -0
- data/_sass/hydejack/__link/_avatar.scss +29 -28
- data/_sass/hydejack/__link/_base.scss +19 -83
- data/_sass/hydejack/__link/_break-layout.scss +35 -34
- data/_sass/hydejack/__link/_content.scss +19 -26
- data/_sass/hydejack/__link/_footer.scss +19 -26
- data/_sass/hydejack/__link/_images.scss +84 -0
- data/_sass/hydejack/__link/_katex.scss +19 -26
- data/_sass/hydejack/__link/_links.scss +53 -0
- data/_sass/hydejack/__link/_mark-external.scss +19 -26
- data/_sass/hydejack/__link/_menu.scss +29 -50
- data/_sass/hydejack/__link/_sidebar.scss +71 -118
- data/_sass/hydejack/__link/_social.scss +19 -26
- data/_sass/hydejack/__link/_utilities.scss +51 -0
- data/_sass/hydejack/_avatar.pre.scss +26 -20
- data/_sass/hydejack/_base.pre.scss +22 -88
- data/_sass/hydejack/_break-layout.pre.scss +26 -23
- data/_sass/hydejack/_content.pre.scss +20 -23
- data/_sass/hydejack/_footer.pre.scss +10 -15
- data/_sass/hydejack/_images.pre.scss +77 -0
- data/_sass/hydejack/_katex.pre.scss +10 -15
- data/_sass/hydejack/_links.pre.scss +47 -0
- data/_sass/hydejack/_mark-external.pre.scss +10 -15
- data/_sass/hydejack/_menu.pre.scss +31 -38
- data/_sass/hydejack/_sidebar.pre.scss +98 -116
- data/_sass/hydejack/_social.pre.scss +16 -20
- data/_sass/hydejack/_utilities.pre.scss +43 -0
- data/_sass/my-variables.scss +0 -8
- data/_sass/pooleparty/__inline/_base.scss +19 -28
- data/_sass/pooleparty/__inline/_code.scss +19 -26
- data/_sass/pooleparty/__inline/_footer.scss +19 -26
- data/_sass/pooleparty/__inline/_footnotes.scss +19 -26
- data/_sass/pooleparty/__inline/_message.scss +19 -26
- data/_sass/pooleparty/__inline/_pagination.scss +19 -26
- data/_sass/pooleparty/__inline/_posts.scss +19 -26
- data/_sass/pooleparty/__inline/_read-more.scss +25 -0
- data/_sass/pooleparty/__inline/_related.scss +19 -26
- data/_sass/pooleparty/__inline/_table.scss +19 -26
- data/_sass/pooleparty/__inline/_type.scss +25 -39
- data/_sass/pooleparty/__link/_base.scss +19 -26
- data/_sass/pooleparty/__link/_code.scss +19 -26
- data/_sass/pooleparty/__link/_footer.scss +19 -26
- data/_sass/pooleparty/__link/_footnotes.scss +30 -26
- data/_sass/pooleparty/__link/_message.scss +19 -26
- data/_sass/pooleparty/__link/_pagination.scss +19 -26
- data/_sass/pooleparty/__link/_posts.scss +20 -27
- data/_sass/pooleparty/__link/_read-more.scss +45 -0
- data/_sass/pooleparty/__link/_related.scss +19 -26
- data/_sass/pooleparty/__link/_table.scss +19 -26
- data/_sass/pooleparty/__link/_type.scss +27 -48
- data/_sass/pooleparty/_base.pre.scss +10 -17
- data/_sass/pooleparty/_code.pre.scss +10 -15
- data/_sass/pooleparty/_footer.pre.scss +10 -15
- data/_sass/pooleparty/_footnotes.pre.scss +21 -15
- data/_sass/pooleparty/_message.pre.scss +10 -15
- data/_sass/pooleparty/_pagination.pre.scss +10 -15
- data/_sass/pooleparty/_posts.pre.scss +11 -16
- data/_sass/pooleparty/_read-more.pre.scss +36 -0
- data/_sass/pooleparty/_related.pre.scss +10 -15
- data/_sass/pooleparty/_table.pre.scss +10 -15
- data/_sass/pooleparty/_type.pre.scss +24 -50
- data/assets/Resume.pdf +0 -0
- data/assets/bower.json +3 -3
- data/assets/bower_components/fontfaceobserver/.bower.json +33 -0
- data/assets/bower_components/fontfaceobserver/.gitignore +2 -0
- data/assets/bower_components/fontfaceobserver/.travis.yml +16 -0
- data/assets/bower_components/fontfaceobserver/Gruntfile.js +101 -0
- data/assets/bower_components/fontfaceobserver/LICENSE +23 -0
- data/assets/bower_components/fontfaceobserver/bower.json +22 -0
- data/assets/bower_components/fontfaceobserver/exports.js +8 -0
- data/assets/bower_components/fontfaceobserver/externs-commonjs.js +10 -0
- data/assets/bower_components/fontfaceobserver/externs.js +15 -0
- data/assets/bower_components/fontfaceobserver/fontfaceobserver.js +12 -0
- data/assets/bower_components/fontfaceobserver/fontfaceobserver.standalone.js +8 -0
- data/assets/bower_components/fontfaceobserver/package.json +57 -0
- data/assets/bower_components/fontfaceobserver/src/descriptors.js +10 -0
- data/assets/bower_components/fontfaceobserver/src/observer.js +349 -0
- data/assets/bower_components/fontfaceobserver/src/ruler.js +130 -0
- data/assets/bower_components/fontfaceobserver/test/assets/index.html +8 -0
- data/assets/bower_components/fontfaceobserver/test/assets/late.css +1 -0
- data/assets/bower_components/fontfaceobserver/test/assets/sourcesanspro-regular.eot +0 -0
- data/assets/bower_components/fontfaceobserver/test/assets/sourcesanspro-regular.ttf +0 -0
- data/assets/bower_components/fontfaceobserver/test/assets/sourcesanspro-regular.woff +0 -0
- data/assets/bower_components/fontfaceobserver/test/assets/subset.eot +0 -0
- data/assets/bower_components/fontfaceobserver/test/assets/subset.ttf +0 -0
- data/assets/bower_components/fontfaceobserver/test/assets/subset.woff +0 -0
- data/assets/bower_components/fontfaceobserver/test/deps.js +5 -0
- data/assets/bower_components/fontfaceobserver/test/index.html +97 -0
- data/assets/bower_components/fontfaceobserver/test/observer-test.js +465 -0
- data/assets/bower_components/fontfaceobserver/test/ruler-test.js +112 -0
- data/assets/bower_components/fontfaceobserver/vendor/google/base.js +1489 -0
- data/assets/bower_components/katex/.bower.json +7 -6
- data/assets/bower_components/katex/dist/contrib/auto-render.js +790 -0
- data/assets/bower_components/katex/dist/contrib/auto-render.min.js +1 -1
- data/assets/bower_components/katex/dist/contrib/copy-tex.css +12 -0
- data/assets/bower_components/katex/dist/contrib/copy-tex.js +174 -0
- data/assets/bower_components/katex/dist/contrib/copy-tex.min.css +1 -0
- data/assets/bower_components/katex/dist/contrib/copy-tex.min.js +1 -0
- data/assets/bower_components/katex/dist/contrib/mathtex-script-type.js +113 -0
- data/assets/bower_components/katex/dist/contrib/mathtex-script-type.min.js +1 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Bold.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Italic.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Regular.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Italic.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Script-Regular.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- data/assets/bower_components/katex/dist/katex.css +129 -209
- data/assets/bower_components/katex/dist/katex.js +14381 -9023
- data/assets/bower_components/katex/dist/katex.min.css +1 -1
- data/assets/bower_components/katex/dist/katex.min.js +1 -6
- data/assets/bower_components/katex/flow-typed/match-at.js +3 -0
- data/assets/bower_components/katex/flow-typed/object-assign.js +6 -0
- data/assets/bower_components/katex/package-lock.json +13848 -0
- data/assets/css/hydejack-8.0.0.css +3 -0
- data/assets/img/default-1.jpg +0 -0
- data/assets/img/example-content-ii.jpg +0 -0
- data/assets/img/example-content-iii.jpg +0 -0
- data/assets/img/hydejack-8.jpg +0 -0
- data/assets/img/hydejack-8@0,25x.jpg +0 -0
- data/assets/img/hydejack-8@0,5x.jpg +0 -0
- data/assets/img/projects/hy-drawer.svg +12 -0
- data/assets/img/projects/hy-img.svg +17 -0
- data/assets/img/projects/hy-push-state.svg +13 -0
- data/assets/img/resume.png +0 -0
- data/assets/img/sidebar-bg.jpg +0 -0
- data/assets/img/swipe.svg +22 -0
- data/assets/img/w3m.png +0 -0
- data/assets/js/hydejack-8.0.0.js +46 -0
- data/assets/js/sw.js +318 -0
- data/assets/manifest.json +4 -3
- data/assets/version.json +1 -1
- data/licenses/Apache-2.0.md +1 -4
- data/licenses/GPL-3.0.md +1 -4
- data/licenses/MIT.md +1 -4
- data/licenses/PRO.md +2 -6
- data/licenses/README.md +10 -0
- data/licenses/W3C.md +31 -0
- metadata +107 -94
- data/_includes/blog.html +0 -5
- data/_includes/body.html +0 -25
- data/_includes/head.html +0 -5
- data/_includes/scripts/load-js-deferred.js +0 -68
- data/_includes/scripts/load-js-deferred.min.js +0 -1
- data/_includes/social-list-item.html +0 -34
- data/_includes/social.html +0 -20
- data/assets/bower_components/katex/dist/fonts/KaTeX_AMS-Regular.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Bold.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Caligraphic-Regular.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Bold.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Fraktur-Regular.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Bold.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Italic.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Main-Regular.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Math-BoldItalic.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Italic.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Regular.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Regular.ttf +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Regular.woff +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Math-Regular.woff2 +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Bold.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Italic.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_SansSerif-Regular.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Script-Regular.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Size1-Regular.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Size2-Regular.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Size3-Regular.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Size4-Regular.eot +0 -0
- data/assets/bower_components/katex/dist/fonts/KaTeX_Typewriter-Regular.eot +0 -0
- data/assets/bower_components/webfontloader/.bower.json +0 -38
- data/assets/bower_components/webfontloader/CHANGELOG +0 -419
- data/assets/bower_components/webfontloader/Gemfile +0 -3
- data/assets/bower_components/webfontloader/LICENSE +0 -176
- data/assets/bower_components/webfontloader/Rakefile +0 -269
- data/assets/bower_components/webfontloader/bower.json +0 -23
- data/assets/bower_components/webfontloader/browsers.json +0 -133
- data/assets/bower_components/webfontloader/externs.js +0 -19
- data/assets/bower_components/webfontloader/package.json +0 -37
- data/assets/bower_components/webfontloader/src/closure.js +0 -2
- data/assets/bower_components/webfontloader/src/core/cssclassname.js +0 -46
- data/assets/bower_components/webfontloader/src/core/domhelper.js +0 -405
- data/assets/bower_components/webfontloader/src/core/eventdispatcher.js +0 -195
- data/assets/bower_components/webfontloader/src/core/font.js +0 -140
- data/assets/bower_components/webfontloader/src/core/fontmodule.js +0 -16
- data/assets/bower_components/webfontloader/src/core/fontmoduleloader.js +0 -47
- data/assets/bower_components/webfontloader/src/core/fontruler.js +0 -60
- data/assets/bower_components/webfontloader/src/core/fontwatcher.js +0 -171
- data/assets/bower_components/webfontloader/src/core/fontwatchrunner.js +0 -249
- data/assets/bower_components/webfontloader/src/core/initialize.js +0 -97
- data/assets/bower_components/webfontloader/src/core/nativefontwatchrunner.js +0 -69
- data/assets/bower_components/webfontloader/src/core/stylesheetwaiter.js +0 -48
- data/assets/bower_components/webfontloader/src/core/webfont.js +0 -97
- data/assets/bower_components/webfontloader/src/modules.yml +0 -34
- data/assets/bower_components/webfontloader/src/modules/custom.js +0 -63
- data/assets/bower_components/webfontloader/src/modules/fontdeck.js +0 -66
- data/assets/bower_components/webfontloader/src/modules/google/fontapiparser.js +0 -181
- data/assets/bower_components/webfontloader/src/modules/google/fontapiurlbuilder.js +0 -77
- data/assets/bower_components/webfontloader/src/modules/google/googlefontapi.js +0 -54
- data/assets/bower_components/webfontloader/src/modules/monotype.js +0 -110
- data/assets/bower_components/webfontloader/src/modules/typekit.js +0 -73
- data/assets/bower_components/webfontloader/webfontloader.gemspec +0 -191
- data/assets/bower_components/webfontloader/webfontloader.js +0 -17
- data/assets/js/hydejack-7.5.2.js +0 -249
@@ -1,195 +0,0 @@
|
|
1
|
-
goog.provide('webfont.EventDispatcher');
|
2
|
-
|
3
|
-
goog.require('webfont.CssClassName');
|
4
|
-
|
5
|
-
/**
|
6
|
-
* A class to dispatch events and manage the event class names on an html
|
7
|
-
* element that represent the current state of fonts on the page. Active class
|
8
|
-
* names always overwrite inactive class names of the same type, while loading
|
9
|
-
* class names may be present whenever a font is loading (regardless of if an
|
10
|
-
* associated active or inactive class name is also present).
|
11
|
-
*
|
12
|
-
* @param {webfont.DomHelper} domHelper
|
13
|
-
* @param {Object} config
|
14
|
-
* @constructor
|
15
|
-
*/
|
16
|
-
webfont.EventDispatcher = function(domHelper, config) {
|
17
|
-
this.domHelper_ = domHelper;
|
18
|
-
this.htmlElement_ = domHelper.getLoadWindow().document.documentElement;
|
19
|
-
this.callbacks_ = config;
|
20
|
-
this.namespace_ = webfont.EventDispatcher.DEFAULT_NAMESPACE;
|
21
|
-
this.cssClassName_ = new webfont.CssClassName('-');
|
22
|
-
this.dispatchEvents_ = config['events'] !== false;
|
23
|
-
this.setClasses_ = config['classes'] !== false;
|
24
|
-
};
|
25
|
-
|
26
|
-
/**
|
27
|
-
* @const
|
28
|
-
* @type {string}
|
29
|
-
*/
|
30
|
-
webfont.EventDispatcher.DEFAULT_NAMESPACE = 'wf';
|
31
|
-
|
32
|
-
/**
|
33
|
-
* @const
|
34
|
-
* @type {string}
|
35
|
-
*/
|
36
|
-
webfont.EventDispatcher.LOADING = 'loading';
|
37
|
-
|
38
|
-
/**
|
39
|
-
* @const
|
40
|
-
* @type {string}
|
41
|
-
*/
|
42
|
-
webfont.EventDispatcher.ACTIVE = 'active';
|
43
|
-
|
44
|
-
/**
|
45
|
-
* @const
|
46
|
-
* @type {string}
|
47
|
-
*/
|
48
|
-
webfont.EventDispatcher.INACTIVE = 'inactive';
|
49
|
-
|
50
|
-
/**
|
51
|
-
* @const
|
52
|
-
* @type {string}
|
53
|
-
*/
|
54
|
-
webfont.EventDispatcher.FONT = 'font';
|
55
|
-
|
56
|
-
goog.scope(function () {
|
57
|
-
var EventDispatcher = webfont.EventDispatcher;
|
58
|
-
|
59
|
-
/**
|
60
|
-
* Dispatch the loading event and append the loading class name.
|
61
|
-
*/
|
62
|
-
EventDispatcher.prototype.dispatchLoading = function() {
|
63
|
-
if (this.setClasses_) {
|
64
|
-
this.domHelper_.updateClassName(this.htmlElement_,
|
65
|
-
[
|
66
|
-
this.cssClassName_.build(this.namespace_, webfont.EventDispatcher.LOADING)
|
67
|
-
]
|
68
|
-
);
|
69
|
-
}
|
70
|
-
|
71
|
-
this.dispatch_(webfont.EventDispatcher.LOADING);
|
72
|
-
};
|
73
|
-
|
74
|
-
/**
|
75
|
-
* Dispatch the font loading event and append the font loading class name.
|
76
|
-
* @param {webfont.Font} font
|
77
|
-
*/
|
78
|
-
EventDispatcher.prototype.dispatchFontLoading = function(font) {
|
79
|
-
if (this.setClasses_) {
|
80
|
-
this.domHelper_.updateClassName(this.htmlElement_,
|
81
|
-
[
|
82
|
-
this.cssClassName_.build(this.namespace_, font.getName(), font.getVariation().toString(), webfont.EventDispatcher.LOADING)
|
83
|
-
]
|
84
|
-
);
|
85
|
-
}
|
86
|
-
|
87
|
-
this.dispatch_(webfont.EventDispatcher.FONT + webfont.EventDispatcher.LOADING, font);
|
88
|
-
};
|
89
|
-
|
90
|
-
/**
|
91
|
-
* Dispatch the font active event, remove the font loading class name, remove
|
92
|
-
* the font inactive class name, and append the font active class name.
|
93
|
-
* @param {webfont.Font} font
|
94
|
-
*/
|
95
|
-
EventDispatcher.prototype.dispatchFontActive = function(font) {
|
96
|
-
if (this.setClasses_) {
|
97
|
-
this.domHelper_.updateClassName(
|
98
|
-
this.htmlElement_,
|
99
|
-
[
|
100
|
-
this.cssClassName_.build(this.namespace_, font.getName(), font.getVariation().toString(), webfont.EventDispatcher.ACTIVE)
|
101
|
-
],
|
102
|
-
[
|
103
|
-
this.cssClassName_.build(this.namespace_, font.getName(), font.getVariation().toString(), webfont.EventDispatcher.LOADING),
|
104
|
-
this.cssClassName_.build(this.namespace_, font.getName(), font.getVariation().toString(), webfont.EventDispatcher.INACTIVE)
|
105
|
-
]
|
106
|
-
);
|
107
|
-
}
|
108
|
-
|
109
|
-
this.dispatch_(webfont.EventDispatcher.FONT + webfont.EventDispatcher.ACTIVE, font);
|
110
|
-
};
|
111
|
-
|
112
|
-
/**
|
113
|
-
* Dispatch the font inactive event, remove the font loading class name, and
|
114
|
-
* append the font inactive class name (unless the font active class name is
|
115
|
-
* already present).
|
116
|
-
* @param {webfont.Font} font
|
117
|
-
*/
|
118
|
-
EventDispatcher.prototype.dispatchFontInactive = function(font) {
|
119
|
-
if (this.setClasses_) {
|
120
|
-
var hasFontActive = this.domHelper_.hasClassName(this.htmlElement_,
|
121
|
-
this.cssClassName_.build(this.namespace_, font.getName(), font.getVariation().toString(), webfont.EventDispatcher.ACTIVE)
|
122
|
-
),
|
123
|
-
add = [],
|
124
|
-
remove = [
|
125
|
-
this.cssClassName_.build(this.namespace_, font.getName(), font.getVariation().toString(), webfont.EventDispatcher.LOADING)
|
126
|
-
];
|
127
|
-
|
128
|
-
if (!hasFontActive) {
|
129
|
-
add.push(this.cssClassName_.build(this.namespace_, font.getName(), font.getVariation().toString(), webfont.EventDispatcher.INACTIVE));
|
130
|
-
}
|
131
|
-
|
132
|
-
this.domHelper_.updateClassName(this.htmlElement_, add, remove);
|
133
|
-
}
|
134
|
-
|
135
|
-
this.dispatch_(webfont.EventDispatcher.FONT + webfont.EventDispatcher.INACTIVE, font);
|
136
|
-
};
|
137
|
-
|
138
|
-
/**
|
139
|
-
* Dispatch the inactive event, remove the loading class name, and append the
|
140
|
-
* inactive class name (unless the active class name is already present).
|
141
|
-
*/
|
142
|
-
EventDispatcher.prototype.dispatchInactive = function() {
|
143
|
-
if (this.setClasses_) {
|
144
|
-
var hasActive = this.domHelper_.hasClassName(this.htmlElement_,
|
145
|
-
this.cssClassName_.build(this.namespace_, webfont.EventDispatcher.ACTIVE)
|
146
|
-
),
|
147
|
-
add = [],
|
148
|
-
remove = [
|
149
|
-
this.cssClassName_.build(this.namespace_, webfont.EventDispatcher.LOADING)
|
150
|
-
];
|
151
|
-
|
152
|
-
if (!hasActive) {
|
153
|
-
add.push(this.cssClassName_.build(this.namespace_, webfont.EventDispatcher.INACTIVE));
|
154
|
-
}
|
155
|
-
|
156
|
-
this.domHelper_.updateClassName(this.htmlElement_, add, remove);
|
157
|
-
}
|
158
|
-
|
159
|
-
this.dispatch_(webfont.EventDispatcher.INACTIVE);
|
160
|
-
};
|
161
|
-
|
162
|
-
/**
|
163
|
-
* Dispatch the active event, remove the loading class name, remove the inactive
|
164
|
-
* class name, and append the active class name.
|
165
|
-
*/
|
166
|
-
EventDispatcher.prototype.dispatchActive = function() {
|
167
|
-
if (this.setClasses_) {
|
168
|
-
this.domHelper_.updateClassName(this.htmlElement_,
|
169
|
-
[
|
170
|
-
this.cssClassName_.build(this.namespace_, webfont.EventDispatcher.ACTIVE)
|
171
|
-
],
|
172
|
-
[
|
173
|
-
this.cssClassName_.build(this.namespace_, webfont.EventDispatcher.LOADING),
|
174
|
-
this.cssClassName_.build(this.namespace_, webfont.EventDispatcher.INACTIVE)
|
175
|
-
]
|
176
|
-
);
|
177
|
-
}
|
178
|
-
|
179
|
-
this.dispatch_(webfont.EventDispatcher.ACTIVE);
|
180
|
-
};
|
181
|
-
|
182
|
-
/**
|
183
|
-
* @param {string} event
|
184
|
-
* @param {webfont.Font=} opt_font
|
185
|
-
*/
|
186
|
-
EventDispatcher.prototype.dispatch_ = function(event, opt_font) {
|
187
|
-
if (this.dispatchEvents_ && this.callbacks_[event]) {
|
188
|
-
if (opt_font) {
|
189
|
-
this.callbacks_[event](opt_font.getName(), opt_font.getVariation());
|
190
|
-
} else {
|
191
|
-
this.callbacks_[event]();
|
192
|
-
}
|
193
|
-
}
|
194
|
-
};
|
195
|
-
});
|
@@ -1,140 +0,0 @@
|
|
1
|
-
goog.provide('webfont.Font');
|
2
|
-
|
3
|
-
/**
|
4
|
-
* This class is an abstraction for a single font or typeface.
|
5
|
-
* It contains the font name and the variation (i.e. style
|
6
|
-
* and weight.) A collection Font instances can represent a
|
7
|
-
* font family.
|
8
|
-
*
|
9
|
-
* @constructor
|
10
|
-
* @param {string} name The font family name
|
11
|
-
* @param {string=} opt_variation A font variation description
|
12
|
-
*/
|
13
|
-
webfont.Font = function (name, opt_variation) {
|
14
|
-
this.name_ = name;
|
15
|
-
this.weight_ = 4;
|
16
|
-
this.style_ = 'n'
|
17
|
-
|
18
|
-
var variation = opt_variation || 'n4',
|
19
|
-
match = variation.match(/^([nio])([1-9])$/i);
|
20
|
-
|
21
|
-
if (match) {
|
22
|
-
this.style_ = match[1];
|
23
|
-
this.weight_ = parseInt(match[2], 10);
|
24
|
-
}
|
25
|
-
};
|
26
|
-
|
27
|
-
goog.scope(function () {
|
28
|
-
var Font = webfont.Font;
|
29
|
-
|
30
|
-
/**
|
31
|
-
* @return {string}
|
32
|
-
*/
|
33
|
-
Font.prototype.getName = function () {
|
34
|
-
return this.name_;
|
35
|
-
};
|
36
|
-
|
37
|
-
/**
|
38
|
-
* @return {string}
|
39
|
-
*/
|
40
|
-
Font.prototype.getCssName = function () {
|
41
|
-
return this.quote_(this.name_);
|
42
|
-
};
|
43
|
-
|
44
|
-
/**
|
45
|
-
* Returns a CSS string representation of the font that
|
46
|
-
* can be used as the CSS font property shorthand.
|
47
|
-
*
|
48
|
-
* @return {string}
|
49
|
-
*/
|
50
|
-
Font.prototype.toCssString = function () {
|
51
|
-
return this.getCssStyle() + ' ' + this.getCssWeight() + ' 300px ' + this.getCssName();
|
52
|
-
};
|
53
|
-
|
54
|
-
/**
|
55
|
-
* @private
|
56
|
-
* @param {string} name
|
57
|
-
* @return {string}
|
58
|
-
*/
|
59
|
-
Font.prototype.quote_ = function (name) {
|
60
|
-
var quoted = [];
|
61
|
-
var split = name.split(/,\s*/);
|
62
|
-
for (var i = 0; i < split.length; i++) {
|
63
|
-
var part = split[i].replace(/['"]/g, '');
|
64
|
-
if (part.indexOf(' ') == -1 && !(/^\d/.test(part))) {
|
65
|
-
quoted.push(part);
|
66
|
-
} else {
|
67
|
-
quoted.push("'" + part + "'");
|
68
|
-
}
|
69
|
-
}
|
70
|
-
return quoted.join(',');
|
71
|
-
};
|
72
|
-
|
73
|
-
/**
|
74
|
-
* @return {string}
|
75
|
-
*/
|
76
|
-
Font.prototype.getVariation = function () {
|
77
|
-
return this.style_ + this.weight_;
|
78
|
-
};
|
79
|
-
|
80
|
-
/**
|
81
|
-
* @return {string}
|
82
|
-
*/
|
83
|
-
Font.prototype.getCssVariation = function () {
|
84
|
-
return 'font-style:' + this.getCssStyle() + ';font-weight:' + this.getCssWeight() + ';';
|
85
|
-
};
|
86
|
-
|
87
|
-
/**
|
88
|
-
* @return {string}
|
89
|
-
*/
|
90
|
-
Font.prototype.getCssWeight = function () {
|
91
|
-
return this.weight_ + '00';
|
92
|
-
};
|
93
|
-
|
94
|
-
/**
|
95
|
-
* @return {string}
|
96
|
-
*/
|
97
|
-
Font.prototype.getCssStyle = function () {
|
98
|
-
var style = 'normal';
|
99
|
-
|
100
|
-
if (this.style_ === 'o') {
|
101
|
-
style = 'oblique';
|
102
|
-
} else if (this.style_ === 'i') {
|
103
|
-
style = 'italic';
|
104
|
-
}
|
105
|
-
|
106
|
-
return style;
|
107
|
-
};
|
108
|
-
|
109
|
-
/**
|
110
|
-
* Parses a CSS font declaration and returns a font
|
111
|
-
* variation description.
|
112
|
-
*
|
113
|
-
* @param {string} css
|
114
|
-
* @return {string}
|
115
|
-
*/
|
116
|
-
Font.parseCssVariation = function (css) {
|
117
|
-
var weight = 4,
|
118
|
-
style = 'n',
|
119
|
-
m = null;
|
120
|
-
|
121
|
-
if (css) {
|
122
|
-
m = css.match(/(normal|oblique|italic)/i);
|
123
|
-
|
124
|
-
if (m && m[1]) {
|
125
|
-
style = m[1].substr(0, 1).toLowerCase();
|
126
|
-
}
|
127
|
-
|
128
|
-
m = css.match(/([1-9]00|normal|bold)/i);
|
129
|
-
|
130
|
-
if (m && m[1]) {
|
131
|
-
if (/bold/i.test(m[1])) {
|
132
|
-
weight = 7;
|
133
|
-
} else if (/[1-9]00/.test(m[1])) {
|
134
|
-
weight = parseInt(m[1].substr(0, 1), 10);
|
135
|
-
}
|
136
|
-
}
|
137
|
-
}
|
138
|
-
return style + weight;
|
139
|
-
}
|
140
|
-
});
|
@@ -1,16 +0,0 @@
|
|
1
|
-
goog.provide('webfont.FontModule');
|
2
|
-
|
3
|
-
/**
|
4
|
-
* @interface
|
5
|
-
*/
|
6
|
-
webfont.FontModule = function () {};
|
7
|
-
|
8
|
-
goog.scope(function () {
|
9
|
-
var FontModule = webfont.FontModule;
|
10
|
-
|
11
|
-
/**
|
12
|
-
* @param {function(Array.<webfont.Font>, webfont.FontTestStrings=, Object.<string, boolean>=)} onReady
|
13
|
-
*/
|
14
|
-
FontModule.prototype.load = function (onReady) {};
|
15
|
-
});
|
16
|
-
|
@@ -1,47 +0,0 @@
|
|
1
|
-
goog.provide('webfont.FontModuleLoader');
|
2
|
-
goog.provide('webfont.FontModuleFactory');
|
3
|
-
|
4
|
-
/** @typedef {function(Object, webfont.DomHelper): webfont.FontModule} */
|
5
|
-
webfont.FontModuleFactory;
|
6
|
-
|
7
|
-
/**
|
8
|
-
* @constructor
|
9
|
-
*/
|
10
|
-
webfont.FontModuleLoader = function() {
|
11
|
-
/**
|
12
|
-
* @type {Object.<string, webfont.FontModuleFactory>}
|
13
|
-
*/
|
14
|
-
this.modules_ = {};
|
15
|
-
};
|
16
|
-
|
17
|
-
goog.scope(function () {
|
18
|
-
var FontModuleLoader = webfont.FontModuleLoader;
|
19
|
-
|
20
|
-
/**
|
21
|
-
* @param {string} name
|
22
|
-
* @param {webfont.FontModuleFactory} factory
|
23
|
-
*/
|
24
|
-
FontModuleLoader.prototype.addModuleFactory = function(name, factory) {
|
25
|
-
this.modules_[name] = factory;
|
26
|
-
};
|
27
|
-
|
28
|
-
/**
|
29
|
-
* @param {Object} configuration
|
30
|
-
* @param {webfont.DomHelper} domHelper
|
31
|
-
* @return {Array.<webfont.FontModule>}
|
32
|
-
*/
|
33
|
-
FontModuleLoader.prototype.getModules = function(configuration, domHelper) {
|
34
|
-
var modules = [];
|
35
|
-
|
36
|
-
for (var key in configuration) {
|
37
|
-
if (configuration.hasOwnProperty(key)) {
|
38
|
-
var moduleFactory = this.modules_[key];
|
39
|
-
|
40
|
-
if (moduleFactory) {
|
41
|
-
modules.push(moduleFactory(configuration[key], domHelper));
|
42
|
-
}
|
43
|
-
}
|
44
|
-
}
|
45
|
-
return modules;
|
46
|
-
};
|
47
|
-
});
|
@@ -1,60 +0,0 @@
|
|
1
|
-
goog.provide('webfont.FontRuler');
|
2
|
-
|
3
|
-
/**
|
4
|
-
* An element that can be used to measure the metrics
|
5
|
-
* of a given font and string.
|
6
|
-
* @constructor
|
7
|
-
* @param {webfont.DomHelper} domHelper
|
8
|
-
* @param {string} fontTestString
|
9
|
-
*/
|
10
|
-
webfont.FontRuler = function (domHelper, fontTestString) {
|
11
|
-
this.domHelper_ = domHelper;
|
12
|
-
this.fontTestString_ = fontTestString;
|
13
|
-
this.el_ = this.domHelper_.createElement('span', {
|
14
|
-
"aria-hidden": "true"
|
15
|
-
}, this.fontTestString_);
|
16
|
-
};
|
17
|
-
|
18
|
-
goog.scope(function () {
|
19
|
-
var FontRuler = webfont.FontRuler;
|
20
|
-
|
21
|
-
/**
|
22
|
-
* @param {webfont.Font} font
|
23
|
-
*/
|
24
|
-
FontRuler.prototype.setFont = function(font) {
|
25
|
-
this.domHelper_.setStyle(this.el_, this.computeStyleString_(font));
|
26
|
-
};
|
27
|
-
|
28
|
-
/**
|
29
|
-
* Inserts the ruler into the DOM.
|
30
|
-
*/
|
31
|
-
FontRuler.prototype.insert = function() {
|
32
|
-
this.domHelper_.insertInto('body', this.el_);
|
33
|
-
};
|
34
|
-
|
35
|
-
/**
|
36
|
-
* @private
|
37
|
-
* @param {webfont.Font} font
|
38
|
-
* @return {string}
|
39
|
-
*/
|
40
|
-
FontRuler.prototype.computeStyleString_ = function(font) {
|
41
|
-
return "display:block;position:absolute;top:-9999px;left:-9999px;" +
|
42
|
-
"font-size:300px;width:auto;height:auto;line-height:normal;margin:0;" +
|
43
|
-
"padding:0;font-variant:normal;white-space:nowrap;font-family:" +
|
44
|
-
font.getCssName() + ";" + font.getCssVariation();
|
45
|
-
};
|
46
|
-
|
47
|
-
/**
|
48
|
-
* @return {number}
|
49
|
-
*/
|
50
|
-
FontRuler.prototype.getWidth = function() {
|
51
|
-
return this.el_.offsetWidth;
|
52
|
-
};
|
53
|
-
|
54
|
-
/**
|
55
|
-
* Removes the ruler element from the DOM.
|
56
|
-
*/
|
57
|
-
FontRuler.prototype.remove = function() {
|
58
|
-
this.domHelper_.removeElement(this.el_);
|
59
|
-
};
|
60
|
-
});
|