chulapa-jekyll 2.0.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +264 -35
- data/README.md +189 -180
- data/_data/version.yml +2 -2
- data/_includes/components/archive-documents.html +56 -0
- data/_includes/components/author.html +6 -1
- data/_includes/components/breadcrumbdatesocial.html +16 -12
- data/_includes/components/cactus.html +2 -1
- data/_includes/components/cloud-entry.html +26 -0
- data/_includes/components/cloud.html +66 -0
- data/_includes/components/collection-documents.html +17 -0
- data/_includes/components/footer-content.html +34 -0
- data/_includes/components/headers.html +22 -15
- data/_includes/components/indexcards.html +13 -10
- data/_includes/components/indexcategory-documents.html +11 -0
- data/_includes/components/navbar-classic.html +58 -0
- data/_includes/components/navbeforeafter.html +9 -6
- data/_includes/components/navigation-fallback.html +19 -0
- data/_includes/components/random.html +1 -0
- data/_includes/components/recommendations.html +97 -0
- data/_includes/components/related.html +1 -104
- data/_includes/components/scripts.html +9 -0
- data/_includes/components/sidetoc.html +5 -4
- data/_includes/components/simplelist.html +26 -0
- data/_includes/components/skin-attribution.html +169 -0
- data/_includes/components/theme-selector.html +14 -0
- data/_includes/footer.html +14 -165
- data/_includes/head.html +389 -242
- data/_includes/navbar.html +33 -77
- data/_includes/search/fusejs.html +20 -0
- data/_includes/search/google.html +3 -3
- data/_includes/search/lunr.html +19 -7
- data/_includes/search/simplesearch.html +46 -0
- data/_includes/snippets/article-images.html +25 -0
- data/_includes/snippets/bootstrapdemo.html +1472 -1303
- data/_includes/snippets/breadcrumb-names.html +5 -0
- data/_includes/snippets/canonical-url.html +17 -0
- data/_includes/snippets/carousel.html +16 -12
- data/_includes/snippets/dark-skin-enabled.html +14 -0
- data/_includes/snippets/datetranslate.html +7 -1
- data/_includes/snippets/jsonld-string.html +16 -0
- data/_includes/snippets/masonry.html +6 -4
- data/_includes/snippets/microformats-url.html +2 -0
- data/_includes/snippets/og-locale.html +19 -0
- data/_includes/snippets/page-language.html +4 -0
- data/_includes/snippets/publisher.html +22 -0
- data/_includes/snippets/video-metadata.html +15 -0
- data/_includes/snippets/video.html +21 -18
- data/_includes/snippets/youtube.html +17 -6
- data/_includes/theme-styles.html +201 -0
- data/_includes/welcomments/comment_form.html +5 -4
- data/_includes/welcomments/comments.html +5 -5
- data/_includes/welcomments/template.html +1 -1
- data/_layouts/archive.html +2 -75
- data/_layouts/cloudcategory.html +2 -101
- data/_layouts/cloudtag.html +2 -103
- data/_layouts/compress.html +1 -1
- data/_layouts/default.html +20 -9
- data/_layouts/indexcategory.html +2 -30
- data/_layouts/landingpage.html +12 -7
- data/_layouts/minimal.html +19 -9
- data/_layouts/search.html +17 -17
- data/_sass/bootstrap/_variables.scss +1 -1
- data/_sass/bootstrap/mixins/_badge.scss +1 -1
- data/_sass/chulapa/_autothemer.scss +31 -0
- data/_sass/chulapa/_buttons.scss +101 -0
- data/_sass/chulapa/_classes.scss +197 -59
- data/_sass/chulapa/_mixins.scss +42 -1
- data/_sass/chulapa/_reboot.scss +31 -0
- data/_sass/chulapa/_theme-selector.scss +1 -0
- data/_sass/chulapa/_variables.scss +8 -1
- data/_sass/chulapa/skins/_deeply.scss +229 -0
- data/_sass/chulapa/skins/_electro.scss +30 -0
- data/_sass/chulapa/skins/_graymor.scss +39 -0
- data/_sass/chulapa/skins/_hootstrap.scss +34 -0
- data/_sass/chulapa/skins/_lymcha.scss +27 -0
- data/_sass/chulapa/skins/_mickie.scss +38 -0
- data/_sass/chulapa/skins/_minco.scss +45 -0
- data/_sass/chulapa/skins/_monotone.scss +15 -0
- data/_sass/chulapa/skins/_preptor.scss +30 -0
- data/_sass/chulapa/skins/_skeeblu.scss +34 -0
- data/_sass/chulapa/skins/_sunset.scss +33 -0
- data/_sass/chulapa/skins/_wandoo.scss +22 -0
- data/_sass/chulapa/skins/bootswatch/_cyborg.scss +543 -0
- data/_sass/chulapa/skins/bootswatch/_darkly.scss +452 -0
- data/_sass/chulapa/skins/bootswatch/_flatly.scss +415 -0
- data/_sass/chulapa/skins/bootswatch/_journal.scss +163 -0
- data/_sass/chulapa/skins/bootswatch/_lux.scss +342 -0
- data/_sass/chulapa/skins/bootswatch/_materia.scss +914 -0
- data/_sass/chulapa/skins/bootswatch/_minty.scss +342 -0
- data/_sass/chulapa/skins/bootswatch/_sketchy.scss +757 -0
- data/_sass/chulapa/skins/bootswatch/_slate.scss +746 -0
- data/_sass/chulapa/skins/bootswatch/_solar.scss +454 -0
- data/_sass/chulapa/skins/bootswatch/_united.scss +85 -0
- data/_sass/chulapa/skins/bootswatch/_yeti.scss +699 -0
- data/_sass/chulapa/skins/bootswatch/cyborg.patch +301 -0
- data/_sass/chulapa/skins/bootswatch/darkly.patch +493 -0
- data/_sass/chulapa/skins/bootswatch/flatly.patch +325 -0
- data/_sass/chulapa/skins/bootswatch/journal.patch +71 -0
- data/_sass/chulapa/skins/bootswatch/lux.patch +97 -0
- data/_sass/chulapa/skins/bootswatch/materia.patch +250 -0
- data/_sass/chulapa/skins/bootswatch/minty.patch +400 -0
- data/_sass/chulapa/skins/bootswatch/sketchy.patch +863 -0
- data/_sass/chulapa/skins/bootswatch/slate.patch +537 -0
- data/_sass/chulapa/skins/bootswatch/solar.patch +307 -0
- data/_sass/chulapa/skins/bootswatch/united.patch +91 -0
- data/_sass/chulapa/skins/bootswatch/yeti.patch +552 -0
- data/_sass/chulapa-master.scss +10 -0
- data/_sass/highlight/README.md +176 -14
- data/_sass/highlight/abap.scss +62 -0
- data/_sass/highlight/algol.scss +46 -0
- data/_sass/highlight/algol_nu.scss +46 -0
- data/_sass/highlight/arduino.scss +63 -0
- data/_sass/highlight/autumn.scss +69 -58
- data/_sass/highlight/base16.scss +90 -0
- data/_sass/highlight/borland.scss +55 -46
- data/_sass/highlight/bw.scss +70 -34
- data/_sass/highlight/cobalt2.scss +197 -0
- data/_sass/highlight/coffee.scss +82 -0
- data/_sass/highlight/colorful.scss +178 -61
- data/_sass/highlight/cran.scss +185 -169
- data/_sass/highlight/default.scss +72 -61
- data/_sass/highlight/dracula.scss +93 -169
- data/_sass/highlight/emacs.scss +72 -61
- data/_sass/highlight/friendly.scss +72 -61
- data/_sass/highlight/friendly_grayscale.scss +72 -0
- data/_sass/highlight/fruity.scss +82 -70
- data/_sass/highlight/github.dark.scss +83 -0
- data/_sass/highlight/github.scss +116 -61
- data/_sass/highlight/gruvbox.dark.scss +83 -0
- data/_sass/highlight/gruvbox.light.scss +68 -84
- data/_sass/highlight/gruvbox.scss +97 -0
- data/_sass/highlight/igor.scss +36 -0
- data/_sass/highlight/igorpro.scss +45 -0
- data/_sass/highlight/inkpot.scss +78 -0
- data/_sass/highlight/lightbulb.scss +82 -0
- data/_sass/highlight/lilypond.scss +58 -0
- data/_sass/highlight/lovelace.scss +74 -0
- data/_sass/highlight/magritte.scss +175 -0
- data/_sass/highlight/manni.scss +72 -61
- data/_sass/highlight/material.scss +81 -0
- data/_sass/highlight/molokai.scss +211 -0
- data/_sass/highlight/monokai.scss +217 -65
- data/_sass/highlight/monokai.sublime.scss +203 -0
- data/_sass/highlight/murphy.scss +72 -61
- data/_sass/highlight/native.scss +82 -70
- data/_sass/highlight/night-owl.scss +201 -0
- data/_sass/highlight/nord.darker.scss +82 -0
- data/_sass/highlight/nord.scss +82 -0
- data/_sass/highlight/oksolar.dark.scss +175 -0
- data/_sass/highlight/oksolar.light.scss +175 -0
- data/_sass/highlight/one.dark.scss +82 -0
- data/_sass/highlight/panda.scss +195 -0
- data/_sass/highlight/paraiso.dark.scss +76 -0
- data/_sass/highlight/paraiso.light.scss +76 -0
- data/_sass/highlight/pastie.scss +154 -60
- data/_sass/highlight/perldoc.scss +69 -58
- data/_sass/highlight/rainbow_dash.scss +65 -0
- data/_sass/highlight/rrt.scss +82 -0
- data/_sass/highlight/sas.scss +63 -0
- data/_sass/highlight/selenized.black.scss +175 -0
- data/_sass/highlight/selenized.dark.scss +175 -0
- data/_sass/highlight/selenized.light.scss +175 -0
- data/_sass/highlight/selenized.white.scss +175 -0
- data/_sass/highlight/skeletor.scss +190 -140
- data/_sass/highlight/solarized.dark.scss +82 -0
- data/_sass/highlight/solarized.light.scss +82 -0
- data/_sass/highlight/stackoverflow.dark.scss +175 -0
- data/_sass/highlight/stackoverflow.light.scss +175 -0
- data/_sass/highlight/staroffice.scss +82 -0
- data/_sass/highlight/stata.dark.scss +82 -0
- data/_sass/highlight/stata.light.scss +49 -0
- data/_sass/highlight/tango.scss +81 -69
- data/_sass/highlight/template.scss +290 -0
- data/_sass/highlight/thankful_eyes.scss +180 -173
- data/_sass/highlight/trac.scss +70 -59
- data/_sass/highlight/tulip.scss +171 -0
- data/_sass/highlight/vim.scss +82 -70
- data/_sass/highlight/vs.scss +41 -33
- data/_sass/highlight/xcode.scss +65 -0
- data/_sass/highlight/zenburn.scss +82 -136
- data/_sass/reset-algolia.scss +27 -17
- data/_sass/skins/academia.scss +47 -10
- data/_sass/skins/auto.scss +25 -27
- data/_sass/skins/butterfly-dark.scss +73 -0
- data/_sass/skins/butterfly-dim.scss +81 -0
- data/_sass/skins/butterfly.scss +65 -0
- data/_sass/skins/cerulean.scss +120 -0
- data/_sass/skins/chulapa.scss +33 -6
- data/_sass/skins/cyborg.scss +3 -0
- data/_sass/skins/dark-bg.scss +83 -49
- data/_sass/skins/darkly.scss +3 -0
- data/_sass/skins/deeply.scss +17 -87
- data/_sass/skins/electro.scss +5 -19
- data/_sass/skins/flatly.scss +3 -0
- data/_sass/skins/focal.scss +56 -19
- data/_sass/skins/gitdev-dark.scss +28 -25
- data/_sass/skins/gitdev.scss +22 -19
- data/_sass/skins/graymor.scss +7 -22
- data/_sass/skins/hootstrap.scss +6 -13
- data/_sass/skins/journal.scss +3 -143
- data/_sass/skins/listen.scss +83 -0
- data/_sass/skins/litera.scss +281 -0
- data/_sass/skins/lux.scss +3 -376
- data/_sass/skins/lymcha.scss +4 -12
- data/_sass/skins/materia.scss +3 -0
- data/_sass/skins/media.scss +40 -12
- data/_sass/skins/mickie.scss +8 -11
- data/_sass/skins/minco.scss +11 -10
- data/_sass/skins/minty.scss +3 -168
- data/_sass/skins/monotone.scss +7 -11
- data/_sass/skins/navi.scss +54 -0
- data/_sass/skins/none.scss +24 -2
- data/_sass/skins/pear.scss +50 -6
- data/_sass/skins/preptor.scss +6 -15
- data/_sass/skins/pulse.scss +158 -0
- data/_sass/skins/skeeblu.scss +6 -17
- data/_sass/skins/sketchy.scss +3 -746
- data/_sass/skins/slate.scss +3 -0
- data/_sass/skins/solar.scss +3 -0
- data/_sass/skins/sunset.scss +6 -11
- data/_sass/skins/towards.scss +44 -5
- data/_sass/skins/twitter-dim.scss +60 -13
- data/_sass/skins/twitter-lights-out.scss +44 -11
- data/_sass/skins/twitter.scss +51 -10
- data/_sass/skins/united.scss +3 -0
- data/_sass/skins/universal.scss +46 -27
- data/_sass/skins/wandoo.scss +7 -12
- data/_sass/skins/yeti.scss +3 -0
- data/_sass/vendor/bootswatch/LICENSE +21 -0
- data/_sass/vendor/bootswatch/LICENSE-4.5.0 +21 -0
- data/_sass/vendor/bootswatch/README.md +57 -0
- data/_sass/vendor/bootswatch/cerulean/_bootswatch.scss +102 -0
- data/_sass/vendor/bootswatch/cerulean/_variables.scss +57 -0
- data/_sass/vendor/bootswatch/cyborg/_bootswatch.scss +330 -0
- data/_sass/vendor/bootswatch/cyborg/_variables.scss +169 -0
- data/_sass/vendor/bootswatch/darkly/_bootswatch.scss +247 -0
- data/_sass/vendor/bootswatch/darkly/_variables.scss +164 -0
- data/_sass/vendor/bootswatch/flatly/_bootswatch.scss +274 -0
- data/_sass/vendor/bootswatch/flatly/_variables.scss +106 -0
- data/_sass/vendor/bootswatch/journal/_bootswatch.scss +62 -0
- data/_sass/vendor/bootswatch/journal/_variables.scss +60 -0
- data/_sass/vendor/bootswatch/litera/_bootswatch.scss +268 -0
- data/_sass/vendor/bootswatch/litera/_variables.scss +96 -0
- data/_sass/vendor/bootswatch/lux/_bootswatch.scss +191 -0
- data/_sass/vendor/bootswatch/lux/_variables.scss +103 -0
- data/_sass/vendor/bootswatch/materia/_bootswatch.scss +747 -0
- data/_sass/vendor/bootswatch/materia/_variables.scss +129 -0
- data/_sass/vendor/bootswatch/minty/_bootswatch.scss +380 -0
- data/_sass/vendor/bootswatch/minty/_variables.scss +94 -0
- data/_sass/vendor/bootswatch/pulse/_bootswatch.scss +145 -0
- data/_sass/vendor/bootswatch/pulse/_variables.scss +96 -0
- data/_sass/vendor/bootswatch/sketchy/_bootswatch.scss +492 -0
- data/_sass/vendor/bootswatch/sketchy/_variables.scss +172 -0
- data/_sass/vendor/bootswatch/slate/_bootswatch.scss +531 -0
- data/_sass/vendor/bootswatch/slate/_variables.scss +163 -0
- data/_sass/vendor/bootswatch/solar/_bootswatch.scss +243 -0
- data/_sass/vendor/bootswatch/solar/_variables.scss +171 -0
- data/_sass/vendor/bootswatch/source.json +86 -0
- data/_sass/vendor/bootswatch/united/_bootswatch.scss +10 -0
- data/_sass/vendor/bootswatch/united/_variables.scss +54 -0
- data/_sass/vendor/bootswatch/yeti/_bootswatch.scss +586 -0
- data/_sass/vendor/bootswatch/yeti/_variables.scss +110 -0
- data/_sass/vendor/tophat/LICENSE +21 -0
- data/_sass/vendor/tophat/README.md +38 -0
- data/_sass/vendor/tophat/deeply/_styles.scss +6 -0
- data/_sass/vendor/tophat/deeply/_variables.scss +73 -0
- data/_sass/vendor/tophat/deeply/theme.scss +77 -0
- data/_sass/vendor/tophat/electro/_styles.scss +5 -0
- data/_sass/vendor/tophat/electro/_variables.scss +23 -0
- data/_sass/vendor/tophat/electro/theme.scss +28 -0
- data/_sass/vendor/tophat/graymor/_styles.scss +5 -0
- data/_sass/vendor/tophat/graymor/_variables.scss +18 -0
- data/_sass/vendor/tophat/graymor/theme.scss +24 -0
- data/_sass/vendor/tophat/hootstrap/_styles.scss +5 -0
- data/_sass/vendor/tophat/hootstrap/_variables.scss +14 -0
- data/_sass/vendor/tophat/hootstrap/theme.scss +18 -0
- data/_sass/vendor/tophat/lymcha/_styles.scss +5 -0
- data/_sass/vendor/tophat/lymcha/_variables.scss +13 -0
- data/_sass/vendor/tophat/lymcha/theme.scss +16 -0
- data/_sass/vendor/tophat/mickie/_styles.scss +5 -0
- data/_sass/vendor/tophat/mickie/_variables.scss +13 -0
- data/_sass/vendor/tophat/mickie/theme.scss +17 -0
- data/_sass/vendor/tophat/minco/_styles.scss +5 -0
- data/_sass/vendor/tophat/minco/_variables.scss +14 -0
- data/_sass/vendor/tophat/minco/theme.scss +18 -0
- data/_sass/vendor/tophat/monotone/_styles.scss +5 -0
- data/_sass/vendor/tophat/monotone/_variables.scss +14 -0
- data/_sass/vendor/tophat/monotone/theme.scss +18 -0
- data/_sass/vendor/tophat/preptor/_styles.scss +5 -0
- data/_sass/vendor/tophat/preptor/_variables.scss +14 -0
- data/_sass/vendor/tophat/preptor/theme.scss +18 -0
- data/_sass/vendor/tophat/skeeblu/_styles.scss +5 -0
- data/_sass/vendor/tophat/skeeblu/_variables.scss +17 -0
- data/_sass/vendor/tophat/skeeblu/theme.scss +22 -0
- data/_sass/vendor/tophat/source.json +57 -0
- data/_sass/vendor/tophat/sunset/_styles.scss +5 -0
- data/_sass/vendor/tophat/sunset/_variables.scss +13 -0
- data/_sass/vendor/tophat/sunset/theme.scss +16 -0
- data/_sass/vendor/tophat/wandoo/_styles.scss +5 -0
- data/_sass/vendor/tophat/wandoo/_variables.scss +18 -0
- data/_sass/vendor/tophat/wandoo/theme.scss +24 -0
- data/assets/atom.xml +10 -6
- data/assets/css/dark/highlighter.scss +10 -0
- data/assets/css/dark/main.scss +43 -0
- data/assets/css/highlighter.scss +6 -1
- data/assets/css/main.scss +12 -3
- data/assets/css/search-fusejs.css +14 -0
- data/assets/css/search-lunr.css +7 -0
- data/assets/js/better404/better404.js +68 -0
- data/assets/js/ch_ytdefer/ch_ytdefer.js +27 -83
- data/assets/js/chulapa_carousel.js +115 -0
- data/assets/js/chulapa_mermaid.js +31 -0
- data/assets/js/chulapa_navigation.js +71 -0
- data/assets/js/chulapa_photoswipe.js +106 -0
- data/assets/js/chulapa_script.js +199 -77
- data/assets/js/chulapa_search.js +89 -0
- data/assets/js/clipboard/chulapa_clipboard.js +17 -108
- data/assets/js/cusdis/chulapa_cusdis.js +1 -1
- data/assets/js/fusejs/fusejs-search.js +62 -0
- data/assets/js/fusejs/fusejs-search.min.js +4 -0
- data/assets/js/fusejs/fusejs-store.js +43 -0
- data/assets/js/lunr/lunr-search.js +127 -115
- data/assets/js/lunr/lunr-search.min.js +4 -0
- data/assets/js/lunr/lunr-store.js +31 -23
- data/assets/js/simplesearch/simplesearch-store.json +45 -0
- data/assets/rss.xml +4 -3
- metadata +220 -8
- data/_sass/highlight/UNLICENSE.txt +0 -24
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*! Tophat `Preptor` Bootstrap 4.3.1 theme */
|
|
2
|
+
@import url(https://fonts.googleapis.com/css?family=Muli:200,300,400,700);
|
|
3
|
+
$font-family-base:Muli;
|
|
4
|
+
@import url(https://fonts.googleapis.com/css?family=Lato:200,300,400,700);
|
|
5
|
+
$headings-font-family:Lato;
|
|
6
|
+
|
|
7
|
+
$enable-grid-classes:false;
|
|
8
|
+
$primary:#D80E70;
|
|
9
|
+
$secondary:#dddddd;
|
|
10
|
+
$success:#4EF037;
|
|
11
|
+
$danger:#FA4659;
|
|
12
|
+
$info:#00BBF0;
|
|
13
|
+
$warning:#f4f133;
|
|
14
|
+
$light:#eeeeee;
|
|
15
|
+
$dark:#353535;
|
|
16
|
+
@import "bootstrap";
|
|
17
|
+
|
|
18
|
+
// Add SASS theme customizations here..
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Generated from theme.scss by test/generate_tophat.js.
|
|
2
|
+
// Fonts and the single Bootstrap grid are supplied by Chulapa.
|
|
3
|
+
/*! Tophat `Skeeblu` Bootstrap 4.3.1 theme */
|
|
4
|
+
$headings-font-family:Yantramanav !default;
|
|
5
|
+
|
|
6
|
+
$primary:#27a2fc !default;
|
|
7
|
+
$secondary:#a0b7bc !default;
|
|
8
|
+
$success:#37bd74 !default;
|
|
9
|
+
$danger:#e8286b !default;
|
|
10
|
+
$info:#7ebcfa !default;
|
|
11
|
+
$warning:#ff9b37 !default;
|
|
12
|
+
$light:#eef0f2 !default;
|
|
13
|
+
$dark:#3c4055 !default;
|
|
14
|
+
|
|
15
|
+
/*! Import Bootstrap 4 variables */
|
|
16
|
+
|
|
17
|
+
$body-bg:#efefef !default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*! Tophat `Skeeblu` Bootstrap 4.3.1 theme */
|
|
2
|
+
@import url(https://fonts.googleapis.com/css?family=Yantramanav:200,300,400,700);
|
|
3
|
+
$headings-font-family:Yantramanav;
|
|
4
|
+
|
|
5
|
+
$enable-grid-classes:false;
|
|
6
|
+
$primary:#27a2fc;
|
|
7
|
+
$secondary:#a0b7bc;
|
|
8
|
+
$success:#37bd74;
|
|
9
|
+
$danger:#e8286b;
|
|
10
|
+
$info:#7ebcfa;
|
|
11
|
+
$warning:#ff9b37;
|
|
12
|
+
$light:#eef0f2;
|
|
13
|
+
$dark:#3c4055;
|
|
14
|
+
|
|
15
|
+
/*! Import Bootstrap 4 variables */
|
|
16
|
+
@import "functions";
|
|
17
|
+
@import "variables";
|
|
18
|
+
|
|
19
|
+
$body-bg:#efefef;
|
|
20
|
+
@import "bootstrap";
|
|
21
|
+
|
|
22
|
+
// Add SASS theme customizations here..
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"repository": "https://github.com/ThemesGuide/top-hat",
|
|
3
|
+
"commit": "2274176073d2e4783c78df080c6c3396e2abc2b4",
|
|
4
|
+
"bootstrapVersion": "4.3.1",
|
|
5
|
+
"skins": {
|
|
6
|
+
"deeply": {
|
|
7
|
+
"path": "dist/deeply/theme.scss",
|
|
8
|
+
"sha256": "ca517631a8c4ba8e452bd8a1ba0afabb8a304e8d029644a5a8611a94c055ad48"
|
|
9
|
+
},
|
|
10
|
+
"electro": {
|
|
11
|
+
"path": "dist/electro/theme.scss",
|
|
12
|
+
"sha256": "986526704ad8229a1db0c73f1c027eeac9d6238279da95f31704aff556425d4b"
|
|
13
|
+
},
|
|
14
|
+
"graymor": {
|
|
15
|
+
"path": "dist/graymor/theme.scss",
|
|
16
|
+
"sha256": "b73e1280a73151e7d37c5cceb7906b897cd03422f4b2fddb050b6f34cfa041df"
|
|
17
|
+
},
|
|
18
|
+
"lymcha": {
|
|
19
|
+
"path": "dist/lymcha/theme.scss",
|
|
20
|
+
"sha256": "b806341f3d9c7a4421b1fa9477756661b75175cd6e353cd5ad3a487168023e8b"
|
|
21
|
+
},
|
|
22
|
+
"mickie": {
|
|
23
|
+
"path": "dist/mickie/theme.scss",
|
|
24
|
+
"sha256": "32eb2063db5696aac8410f0852f6166a57ef0e86fc9f86d0011d5462ec867f28",
|
|
25
|
+
"omitStyles": "Retain Chulapa typography: the upstream responsive root font-size rules have never been included."
|
|
26
|
+
},
|
|
27
|
+
"minco": {
|
|
28
|
+
"path": "dist/minco/theme.scss",
|
|
29
|
+
"sha256": "5de4d4d3b26773e75b5d612e1771494d398d1007dc5e42ac8f04c11ffe0e0025",
|
|
30
|
+
"adaptation": "Retain the existing Bootstrap body font instead of upstream Nunito."
|
|
31
|
+
},
|
|
32
|
+
"monotone": {
|
|
33
|
+
"path": "dist/monotone/theme.scss",
|
|
34
|
+
"sha256": "d17cb96c5b9b97cc51333f0d3229dfcf099a910b4e568663777fbd1a54ec6077"
|
|
35
|
+
},
|
|
36
|
+
"preptor": {
|
|
37
|
+
"path": "dist/preptor/theme.scss",
|
|
38
|
+
"sha256": "6e1663a11a469a645959d24fe73e3f8d97e3fff752429f70aab9611fd6724dbe"
|
|
39
|
+
},
|
|
40
|
+
"skeeblu": {
|
|
41
|
+
"path": "dist/skeeblu/theme.scss",
|
|
42
|
+
"sha256": "eb60e7b881fc6b523343c40dfd249658b268a6e0d4cc2035499fc34914612a43"
|
|
43
|
+
},
|
|
44
|
+
"sunset": {
|
|
45
|
+
"path": "dist/sunset/theme.scss",
|
|
46
|
+
"sha256": "4332e922f5be477c66790186eb943efc5ac2951c5cff6cb0ef75a716281f52d4"
|
|
47
|
+
},
|
|
48
|
+
"wandoo": {
|
|
49
|
+
"path": "dist/wandoo/theme.scss",
|
|
50
|
+
"sha256": "f892f5dedd5e2e05fc6cd4cf1c150d9c55a91fea20dc694a39fc1cc622953a71"
|
|
51
|
+
},
|
|
52
|
+
"hootstrap": {
|
|
53
|
+
"path": "dist/hollar/theme.scss",
|
|
54
|
+
"sha256": "5d8df5cebae34d9cf954a7242bafaed7f8cb30f3bda6ed09006484a132440c76"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Generated from theme.scss by test/generate_tophat.js.
|
|
2
|
+
// Fonts and the single Bootstrap grid are supplied by Chulapa.
|
|
3
|
+
/*! Tophat `Sunset` Bootstrap 4.3.1 theme */
|
|
4
|
+
$headings-font-family:Voltaire !default;
|
|
5
|
+
|
|
6
|
+
$primary:#2F414A !default;
|
|
7
|
+
$secondary:#F47B53 !default;
|
|
8
|
+
$success:#420084 !default;
|
|
9
|
+
$danger:#f2460d !default;
|
|
10
|
+
$info:#7ebcfa !default;
|
|
11
|
+
$warning:#ff9933 !default;
|
|
12
|
+
$light:#eef0f2 !default;
|
|
13
|
+
$dark:#000633 !default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*! Tophat `Sunset` Bootstrap 4.3.1 theme */
|
|
2
|
+
@import url(https://fonts.googleapis.com/css?family=Voltaire:200,300,400,700);
|
|
3
|
+
$headings-font-family:Voltaire;
|
|
4
|
+
|
|
5
|
+
$enable-grid-classes:false;
|
|
6
|
+
$primary:#2F414A;
|
|
7
|
+
$secondary:#F47B53;
|
|
8
|
+
$success:#420084;
|
|
9
|
+
$danger:#f2460d;
|
|
10
|
+
$info:#7ebcfa;
|
|
11
|
+
$warning:#ff9933;
|
|
12
|
+
$light:#eef0f2;
|
|
13
|
+
$dark:#000633;
|
|
14
|
+
@import "bootstrap";
|
|
15
|
+
|
|
16
|
+
// Add SASS theme customizations here..
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Generated from theme.scss by test/generate_tophat.js.
|
|
2
|
+
// Fonts and the single Bootstrap grid are supplied by Chulapa.
|
|
3
|
+
/*! Tophat `Wandoo` Bootstrap 4.3.1 theme */
|
|
4
|
+
$font-family-base:Nunito !default;
|
|
5
|
+
$headings-font-family:Comfortaa !default;
|
|
6
|
+
|
|
7
|
+
$primary:#FF304F !default;
|
|
8
|
+
$secondary:#CACACA !default;
|
|
9
|
+
$success:#015668 !default;
|
|
10
|
+
$danger:#06648C !default;
|
|
11
|
+
$info:#0F81C7 !default;
|
|
12
|
+
$warning:#0DE2EA !default;
|
|
13
|
+
$light:#ececec !default;
|
|
14
|
+
$dark:#222222 !default;
|
|
15
|
+
|
|
16
|
+
/*! Import Bootstrap 4 variables */
|
|
17
|
+
|
|
18
|
+
$gray-300:#e0e0e0 !default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*! Tophat `Wandoo` Bootstrap 4.3.1 theme */
|
|
2
|
+
@import url(https://fonts.googleapis.com/css?family=Nunito:200,300,400,700);
|
|
3
|
+
$font-family-base:Nunito;
|
|
4
|
+
@import url(https://fonts.googleapis.com/css?family=Comfortaa:200,300,400,700);
|
|
5
|
+
$headings-font-family:Comfortaa;
|
|
6
|
+
|
|
7
|
+
$enable-grid-classes:false;
|
|
8
|
+
$primary:#FF304F;
|
|
9
|
+
$secondary:#CACACA;
|
|
10
|
+
$success:#015668;
|
|
11
|
+
$danger:#06648C;
|
|
12
|
+
$info:#0F81C7;
|
|
13
|
+
$warning:#0DE2EA;
|
|
14
|
+
$light:#ececec;
|
|
15
|
+
$dark:#222222;
|
|
16
|
+
|
|
17
|
+
/*! Import Bootstrap 4 variables */
|
|
18
|
+
@import "functions";
|
|
19
|
+
@import "variables";
|
|
20
|
+
|
|
21
|
+
$gray-300:#e0e0e0;
|
|
22
|
+
@import "bootstrap";
|
|
23
|
+
|
|
24
|
+
// Add SASS theme customizations here..
|
data/assets/atom.xml
CHANGED
|
@@ -32,20 +32,24 @@ permalink: ./atom.xml
|
|
|
32
32
|
where_exp: "item", "item.date != nil" |
|
|
33
33
|
sort: 'date' | reverse -%}
|
|
34
34
|
{%- for document in alldocs -%}
|
|
35
|
+
{%- include snippets/canonical-url.html url=document.url canonical=document.canonical_url -%}
|
|
35
36
|
{%- assign entryimg = document.og_image | default: document.header_img | absolute_url -%}
|
|
36
37
|
{%- assign words = document.content | strip_html | number_of_words -%}
|
|
37
38
|
{%- assign minutes = words | divided_by: wpm | ceil | at_least: 1 -%}
|
|
38
39
|
<entry>
|
|
39
|
-
<title>{{ document.title |
|
|
40
|
-
<link href="{{
|
|
40
|
+
<title type="html">{{ document.title | markdownify | remove: "<p>" | remove: "</p>" | strip_newlines | strip | escape }}</title>
|
|
41
|
+
<link href="{{ canonical_url | escape }}" rel="alternate" type="text/html" title="{{ document.title | markdownify | strip_html | strip_newlines | strip | escape | xml_escape | escape }}"/>
|
|
41
42
|
<published>{{ document.date | date_to_xmlschema }}</published>
|
|
42
43
|
<updated>{{ document.last_modified_at | default: document.date | date_to_xmlschema }}</updated>
|
|
43
|
-
<id>{{
|
|
44
|
-
<content type="html" xml:base="{{
|
|
44
|
+
<id>{{ canonical_url | escape }}</id>
|
|
45
|
+
<content type="html" xml:base="{{ canonical_path | absolute_url | uri_escape | escape }}">
|
|
45
46
|
{% if document.subtitle %}
|
|
46
|
-
{{ '<h3>' | append: document.subtitle |
|
|
47
|
-
append: '</h3>' | escape }}
|
|
48
47
|
|
|
48
|
+
{%- assign thesub = document.subtitle | markdownify -%}
|
|
49
|
+
{%- assign thesub = thesub | remove: '<p>' | remove: '</p>' | strip | strip_newlines %}
|
|
50
|
+
|
|
51
|
+
{{ '<h3>' | append: thesub |
|
|
52
|
+
append: '</h3>' | escape }}
|
|
49
53
|
{% endif %}
|
|
50
54
|
{% if entryimg %}
|
|
51
55
|
{{ "<img src='" | append: entryimg | append: "' >" | escape }}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
---
|
|
3
|
+
{%- include snippets/dark-skin-enabled.html -%}
|
|
4
|
+
@charset "utf-8";
|
|
5
|
+
{% if dark_skin_enabled %}
|
|
6
|
+
@import "highlight/{{- site.chulapa-skin-dark.highlight | default: site.chulapa-skin.highlight | downcase | default: 'default' -}}";
|
|
7
|
+
|
|
8
|
+
// Completion marker for the managed stylesheet pair; keep after all imports.
|
|
9
|
+
:root { --chulapa-css-ready: highlighter-dark; }
|
|
10
|
+
{% endif %}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
---
|
|
3
|
+
{%- include snippets/dark-skin-enabled.html -%}
|
|
4
|
+
{% if dark_skin_enabled %}
|
|
5
|
+
@charset "utf-8";
|
|
6
|
+
// Custom free font: see https://diario.madrid.es/chulapa/
|
|
7
|
+
@font-face {
|
|
8
|
+
font-family: chulapa;
|
|
9
|
+
src: url('{{ '/assets/fonts/Chulapa/Chulapa-Bold_vmod.otf' | relative_url }}');
|
|
10
|
+
font-display: fallback;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
//Theming Bootstrap from config
|
|
14
|
+
|
|
15
|
+
//Theme
|
|
16
|
+
@import "skins/{{- site.chulapa-skin-dark.skin | default: "none" -}}";
|
|
17
|
+
|
|
18
|
+
//Theming Bootstrap from config // overrides
|
|
19
|
+
{% for var in site.chulapa-skin-dark.vars %}
|
|
20
|
+
{% assign dark_value = var[1] | append: '' | strip %}
|
|
21
|
+
{% if dark_value != empty %}
|
|
22
|
+
${{ var[0] }}: {{ var[1] }};
|
|
23
|
+
{% endif %}
|
|
24
|
+
{% endfor%}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
{% if site.chulapa-skin-dark.autothemer %}
|
|
28
|
+
// Autothemer: No overrides
|
|
29
|
+
@import "chulapa/autothemer";
|
|
30
|
+
{% endif %}
|
|
31
|
+
|
|
32
|
+
// Import bootstrap
|
|
33
|
+
@import "bootstrap/bootstrap";
|
|
34
|
+
//B. Chulapa specifics
|
|
35
|
+
@import "chulapa-master";
|
|
36
|
+
{% if site.search.provider == "algolia" %}
|
|
37
|
+
@import "reset-algolia";
|
|
38
|
+
{% endif %}
|
|
39
|
+
@import "chulapa/theme-selector";
|
|
40
|
+
|
|
41
|
+
// Completion marker for the managed stylesheet pair; keep after all imports.
|
|
42
|
+
:root { --chulapa-css-ready: main-dark; }
|
|
43
|
+
{% endif %}
|
data/assets/css/highlighter.scss
CHANGED
|
@@ -2,4 +2,9 @@
|
|
|
2
2
|
---
|
|
3
3
|
@charset "utf-8";
|
|
4
4
|
// Syntax highlighter
|
|
5
|
-
@import "highlight/{{- site.chulapa-skin.highlight | downcase | default: "default" -}}";
|
|
5
|
+
@import "highlight/{{- site.chulapa-skin.highlight | downcase | default: "default" -}}";
|
|
6
|
+
{%- include snippets/dark-skin-enabled.html -%}
|
|
7
|
+
{% if dark_skin_enabled %}
|
|
8
|
+
// Completion marker for the managed stylesheet pair; keep after all imports.
|
|
9
|
+
:root { --chulapa-css-ready: highlighter-light; }
|
|
10
|
+
{% endif %}
|
data/assets/css/main.scss
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
---
|
|
3
|
+
{%- include snippets/dark-skin-enabled.html -%}
|
|
3
4
|
@charset "utf-8";
|
|
4
5
|
// Custom free font: see https://diario.madrid.es/chulapa/
|
|
5
6
|
@font-face {
|
|
6
7
|
font-family: chulapa;
|
|
7
|
-
src: url('
|
|
8
|
+
src: url('{{ '/assets/fonts/Chulapa/Chulapa-Bold_vmod.otf' | relative_url }}');
|
|
8
9
|
font-display: fallback;
|
|
9
10
|
}
|
|
10
11
|
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
|
|
24
25
|
{% if site.chulapa-skin.autothemer %}
|
|
25
26
|
// Autothemer: No overrides
|
|
26
|
-
@import "
|
|
27
|
+
@import "chulapa/autothemer";
|
|
27
28
|
{% endif %}
|
|
28
29
|
|
|
29
30
|
// Import bootstrap
|
|
@@ -32,4 +33,12 @@
|
|
|
32
33
|
@import "chulapa-master";
|
|
33
34
|
{% if site.search.provider == "algolia" %}
|
|
34
35
|
@import "reset-algolia";
|
|
35
|
-
{% endif %}
|
|
36
|
+
{% endif %}
|
|
37
|
+
{% if dark_skin_enabled %}
|
|
38
|
+
@import "chulapa/theme-selector";
|
|
39
|
+
{% endif %}
|
|
40
|
+
|
|
41
|
+
{% if dark_skin_enabled %}
|
|
42
|
+
// Completion marker for the managed stylesheet pair; keep after all imports.
|
|
43
|
+
:root { --chulapa-css-ready: main-light; }
|
|
44
|
+
{% endif %}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@200..900&display=swap');
|
|
2
|
+
|
|
3
|
+
.fuse {
|
|
4
|
+
font-family: "Source Sans 3", serif;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.fuse-logo {
|
|
9
|
+
color: #9b59b6;
|
|
10
|
+
font-weight: bolder;
|
|
11
|
+
--fa-animation-iteration-count: 1;
|
|
12
|
+
--fa-animation-duration: 0.5s;
|
|
13
|
+
--fa-animation-delay: 0.5s;
|
|
14
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: null
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
// You found an Easter egg!
|
|
6
|
+
// Get root
|
|
7
|
+
{% assign homeurl = '/' | absolute_url %}
|
|
8
|
+
// Vars
|
|
9
|
+
let homeUrl = "{{ homeurl }}";
|
|
10
|
+
// with no trailing '/'
|
|
11
|
+
homeUrl = homeUrl.replace(/\/+$/, "");
|
|
12
|
+
let currentUrl = window.location.href;
|
|
13
|
+
let sitemap = "{{- 'sitemap.xml' | absolute_url -}}"
|
|
14
|
+
// Based in https://ben.balter.com/2022/06/30/helpful-404s-for-jekyll-and-github-pages/
|
|
15
|
+
// A: Function definition...
|
|
16
|
+
// Own version of closest from 'fastest-levenshtein')
|
|
17
|
+
// Single levestein dist https://stackoverflow.com/questions/18516942
|
|
18
|
+
// Later implemented as js-levenshtein
|
|
19
|
+
const levenshteinDistance = (s, t) => {
|
|
20
|
+
let previous = Array.from({length: s.length + 1}, (_, i) => i);
|
|
21
|
+
for (let i = 1; i <= t.length; i++) {
|
|
22
|
+
const current = [i];
|
|
23
|
+
for (let j = 1; j <= s.length; j++) {
|
|
24
|
+
current[j] = Math.min(previous[j] + 1, current[j - 1] + 1,
|
|
25
|
+
previous[j - 1] + (s[j - 1] === t[i - 1] ? 0 : 1));
|
|
26
|
+
}
|
|
27
|
+
previous = current;
|
|
28
|
+
}
|
|
29
|
+
return previous[s.length];
|
|
30
|
+
};
|
|
31
|
+
// Iterator to get closest match
|
|
32
|
+
const closest = (str, urls) => {
|
|
33
|
+
let best, distance = Infinity;
|
|
34
|
+
for (const url of urls) {
|
|
35
|
+
const candidate = levenshteinDistance(str, url);
|
|
36
|
+
if (candidate < distance) { best = url; distance = candidate; }
|
|
37
|
+
}
|
|
38
|
+
return best;
|
|
39
|
+
};
|
|
40
|
+
// END A: Function definition...
|
|
41
|
+
// https://ben.balter.com/2022/06/30/helpful-404s-for-jekyll-and-github-pages/
|
|
42
|
+
const div = document.getElementById('four-oh-four-suggestion');
|
|
43
|
+
if (div) {
|
|
44
|
+
const xhr = new XMLHttpRequest();
|
|
45
|
+
function showLink(url) {
|
|
46
|
+
const link = document.createElement('a');
|
|
47
|
+
link.className = 'alert-link font-weight-bolder';
|
|
48
|
+
link.href = url;
|
|
49
|
+
link.textContent = url.replace(homeUrl, '') || '/';
|
|
50
|
+
div.replaceChildren(link);
|
|
51
|
+
}
|
|
52
|
+
function fallback() { showLink(homeUrl + '/'); }
|
|
53
|
+
xhr.onload = () => {
|
|
54
|
+
if (xhr.status !== 200 || !xhr.responseXML) { fallback(); return; }
|
|
55
|
+
const urls = Array.from(xhr.responseXML.querySelectorAll('urlset > url > loc'))
|
|
56
|
+
.map(el => el.textContent).filter(url => {
|
|
57
|
+
try { return new URL(url).origin === new URL(homeUrl).origin; }
|
|
58
|
+
catch { return false; }
|
|
59
|
+
});
|
|
60
|
+
const match = closest(currentUrl, urls);
|
|
61
|
+
if (match) showLink(match); else fallback();
|
|
62
|
+
};
|
|
63
|
+
xhr.onerror = fallback;
|
|
64
|
+
xhr.ontimeout = fallback;
|
|
65
|
+
xhr.timeout = 10000;
|
|
66
|
+
xhr.open('GET', `${sitemap}`);
|
|
67
|
+
xhr.send();
|
|
68
|
+
}
|
|
@@ -1,83 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
// Hover button
|
|
29
|
-
im.onmouseover = gen_mouseover(bt);
|
|
30
|
-
im.onmouseout = gen_mouseout(bt);
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
if (typeof YT == "undefined") {
|
|
34
|
-
var js = d.createElement("script");
|
|
35
|
-
js.src = "https://www.youtube.com/player_api";
|
|
36
|
-
d.body.appendChild(js);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function gen_mouseout(bt) {
|
|
41
|
-
return function() {
|
|
42
|
-
bt.style.backgroundImage = "url(data:image/svg+xml;base64," + window.btoa(yt_dark_icon) + ")";
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function gen_mouseover(bt) {
|
|
47
|
-
return function() {
|
|
48
|
-
bt.style.backgroundImage = "url(data:image/svg+xml;base64," + window.btoa(yt_icon) + ")";
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function gen_ytdefer_clk(i) {
|
|
53
|
-
return function() {
|
|
54
|
-
var d = document;
|
|
55
|
-
var im = d.getElementById("ch_ytdefer" + i);
|
|
56
|
-
// Get video id from source
|
|
57
|
-
var vid_id = im.getAttribute("data-src");
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
// Create an iframe with the responsive class and append it as a child
|
|
61
|
-
var ifr = d.createElement("div");
|
|
62
|
-
ifr.id = "ch_ytdefer_frame" + i;
|
|
63
|
-
ifr.classList.add("embed-responsive-item");
|
|
64
|
-
ifr.setAttribute("itemprop", "embedUrl");
|
|
65
|
-
im.appendChild(ifr);
|
|
66
|
-
|
|
67
|
-
//Remove attributes
|
|
68
|
-
//im.removeAttribute('style');
|
|
69
|
-
|
|
70
|
-
// Add player
|
|
71
|
-
var player = new YT.Player(ifr.id, {
|
|
72
|
-
videoId: vid_id,
|
|
73
|
-
events: {
|
|
74
|
-
onReady: function(ev) {
|
|
75
|
-
ev.target.playVideo();
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
window.addEventListener('load', ch_ytdefer_setup);
|
|
1
|
+
// Embed the player on demand; no YouTube API request is needed before playback.
|
|
2
|
+
(function () {
|
|
3
|
+
function setup() {
|
|
4
|
+
document.querySelectorAll('.ch_ytdefer').forEach(function (container) {
|
|
5
|
+
if (container.dataset.playerReady) return;
|
|
6
|
+
var video = container.getAttribute('data-src');
|
|
7
|
+
var button = container.querySelector('.ch_ytdefer_btn');
|
|
8
|
+
if (!video || !button) return;
|
|
9
|
+
container.dataset.playerReady = 'true';
|
|
10
|
+
container.addEventListener('click', function play() {
|
|
11
|
+
if (container.querySelector('iframe')) return;
|
|
12
|
+
var frame = document.createElement('iframe');
|
|
13
|
+
frame.className = 'embed-responsive-item';
|
|
14
|
+
frame.src = 'https://www.youtube-nocookie.com/embed/' + encodeURIComponent(video) + '?autoplay=1';
|
|
15
|
+
frame.title = (container.getAttribute('data-title') || '').trim() || 'YouTube video';
|
|
16
|
+
frame.allow = 'autoplay; encrypted-media; picture-in-picture; fullscreen';
|
|
17
|
+
frame.allowFullscreen = true;
|
|
18
|
+
frame.style.border = '0';
|
|
19
|
+
container.appendChild(frame);
|
|
20
|
+
button.hidden = true;
|
|
21
|
+
frame.focus();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', setup, {once: true});
|
|
26
|
+
else setup();
|
|
27
|
+
})();
|