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,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
|
-
}
|