j1-template 2023.4.1 → 2023.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/layout_metadata_generator.html +8 -0
  3. data/assets/data/masterslider.html +1 -1
  4. data/assets/error_pages/HTTP204.html +2 -2
  5. data/assets/error_pages/HTTP400.html +2 -2
  6. data/assets/error_pages/HTTP401.html +2 -2
  7. data/assets/error_pages/HTTP403.html +2 -2
  8. data/assets/error_pages/HTTP404.html +2 -2
  9. data/assets/error_pages/HTTP444.html +2 -2
  10. data/assets/error_pages/HTTP500.html +2 -2
  11. data/assets/error_pages/HTTP501.html +2 -2
  12. data/assets/error_pages/HTTP502.html +2 -2
  13. data/assets/error_pages/HTTP503.html +2 -2
  14. data/assets/themes/j1/adapter/js/advertising.js +1 -0
  15. data/assets/themes/j1/adapter/js/algolia.js +1 -0
  16. data/assets/themes/j1/adapter/js/analytics.js +3 -2
  17. data/assets/themes/j1/adapter/js/asciidoctor.js +1 -0
  18. data/assets/themes/j1/adapter/js/bmd.js +1 -0
  19. data/assets/themes/j1/adapter/js/carousel.js +1 -0
  20. data/assets/themes/j1/adapter/js/clipboard.js +1 -0
  21. data/assets/themes/j1/adapter/js/comments.js +1 -0
  22. data/assets/themes/j1/adapter/js/cookieConsent.js +6 -5
  23. data/assets/themes/j1/adapter/js/customFunctions.js +1 -0
  24. data/assets/themes/j1/adapter/js/customModule.js +1 -0
  25. data/assets/themes/j1/adapter/js/dropdowns.js +1 -0
  26. data/assets/themes/j1/adapter/js/fab.js +1 -0
  27. data/assets/themes/j1/adapter/js/framer.js +1 -0
  28. data/assets/themes/j1/adapter/js/justifiedGallery.js +1 -0
  29. data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +1 -1
  30. data/assets/themes/j1/adapter/js/lazyLoader.js +1 -0
  31. data/assets/themes/j1/adapter/js/lightbox.js +1 -0
  32. data/assets/themes/j1/adapter/js/logger.js +1 -0
  33. data/assets/themes/j1/adapter/js/lunr.js +1 -0
  34. data/assets/themes/j1/adapter/js/masonry.js +1 -0
  35. data/assets/themes/j1/adapter/js/masterslider.js +1 -0
  36. data/assets/themes/j1/adapter/js/mmenu.js +1 -0
  37. data/assets/themes/j1/adapter/js/navigator.js +1 -0
  38. data/assets/themes/j1/adapter/js/particles.js +1 -0
  39. data/assets/themes/j1/adapter/js/rangeSlider.js +1 -0
  40. data/assets/themes/j1/adapter/js/rouge.js +2 -1
  41. data/assets/themes/j1/adapter/js/rtable.js +1 -0
  42. data/assets/themes/j1/adapter/js/rtextResizer.js +2 -1
  43. data/assets/themes/j1/adapter/js/scroller.js +1 -0
  44. data/assets/themes/j1/adapter/js/slick.js +3 -2
  45. data/assets/themes/j1/adapter/js/themeToggler.js +1 -0
  46. data/assets/themes/j1/adapter/js/themer.js +1 -0
  47. data/assets/themes/j1/adapter/js/toccer.js +1 -0
  48. data/assets/themes/j1/adapter/js/translator.js +1 -0
  49. data/assets/themes/j1/adapter/js/waves.js +1 -0
  50. data/assets/themes/j1/core/js/template.js +16 -6
  51. data/assets/themes/j1/core/js/template.min.js +1 -1
  52. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  53. data/assets/themes/j1/modules/backstretch/LICENSE-MIT +22 -0
  54. data/assets/themes/j1/modules/backstretch/README.md +411 -0
  55. data/assets/themes/j1/modules/backstretch/js/v2.1.16/backstretch.js +1 -3
  56. data/assets/themes/j1/modules/backstretch/js/v2.1.16/backstretch.min.js +1 -2
  57. data/assets/themes/j1/modules/clipboard/js/clipboard.js +0 -1
  58. data/assets/themes/j1/modules/clipboard/js/clipboard.min.js +3 -2
  59. data/assets/themes/j1/modules/dropdowns/js/cash.js +4 -5
  60. data/assets/themes/j1/modules/dropdowns/js/cash.min.js +19 -0
  61. data/assets/themes/j1/modules/dropdowns/js/dropdowns.min.js +20 -0
  62. data/assets/themes/j1/modules/fab/js/cash.js +0 -2
  63. data/assets/themes/j1/modules/fab/js/cash.min.js +20 -0
  64. data/assets/themes/j1/modules/fab/js/fab.min.js +20 -0
  65. data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-light.json +0 -22
  66. data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-light.min.json +1 -1
  67. data/assets/themes/j1/modules/iconifyAPI/js/iconify.js +13 -0
  68. data/assets/themes/j1/modules/msDropdown/css/themes/uno/msDropdown.css +2 -14
  69. data/assets/themes/j1/modules/msDropdown/css/themes/uno/msDropdown.min.css +3 -2
  70. data/assets/themes/j1/modules/rouge/css/base16/theme.min.css +19 -0
  71. data/assets/themes/j1/modules/rouge/css/base16.dark/theme.min.css +19 -0
  72. data/assets/themes/j1/modules/rouge/css/base16.light/theme.min.css +19 -0
  73. data/assets/themes/j1/modules/rouge/css/base16.monokai/theme.min.css +19 -0
  74. data/assets/themes/j1/modules/rouge/css/base16.monokai.dark/theme.min.css +19 -0
  75. data/assets/themes/j1/modules/rouge/css/base16.monokai.light/theme.min.css +19 -0
  76. data/assets/themes/j1/modules/rouge/css/base16.solarized/theme.min.css +19 -0
  77. data/assets/themes/j1/modules/rouge/css/base16.solarized.dark/theme.min.css +19 -0
  78. data/assets/themes/j1/modules/rouge/css/base16.solarized.light/theme.min.css +19 -0
  79. data/assets/themes/j1/modules/rouge/css/colorful/theme.min.css +19 -0
  80. data/assets/themes/j1/modules/rouge/css/github/theme.min.css +19 -0
  81. data/assets/themes/j1/modules/rouge/css/gruvbox/theme.min.css +19 -0
  82. data/assets/themes/j1/modules/rouge/css/gruvbox.dark/theme.min.css +19 -0
  83. data/assets/themes/j1/modules/rouge/css/gruvbox.light/theme.min.css +19 -0
  84. data/assets/themes/j1/modules/rouge/css/igorpro/theme.min.css +19 -0
  85. data/assets/themes/j1/modules/rouge/css/molokai/theme.min.css +19 -0
  86. data/assets/themes/j1/modules/rouge/css/monokai/theme.min.css +19 -0
  87. data/assets/themes/j1/modules/rouge/css/monokai.sublime/theme.min.css +19 -0
  88. data/assets/themes/j1/modules/rouge/css/pastie/theme.min.css +19 -0
  89. data/assets/themes/j1/modules/rouge/css/thankful_eyes/theme.min.css +19 -0
  90. data/assets/themes/j1/modules/rouge/css/tulip/theme.min.css +19 -0
  91. data/assets/themes/j1/modules/rouge/css/uno.dark/theme.min.css +19 -0
  92. data/assets/themes/j1/modules/rouge/css/uno.light/theme.min.css +19 -0
  93. data/assets/themes/j1/modules/slimSelect/css/select.css +486 -479
  94. data/assets/themes/j1/modules/slimSelect/css/select.min.css +8 -0
  95. data/assets/themes/j1/modules/slimSelect/js/select.js +1834 -1827
  96. data/assets/themes/j1/modules/slimSelect/js/select.min.js +8 -0
  97. data/assets/themes/j1/modules/vimeo/froogaloop/js/froogaloop2.js +4 -0
  98. data/lib/j1/version.rb +1 -1
  99. data/lib/starter_web/README.md +5 -5
  100. data/lib/starter_web/_config.yml +1 -1
  101. data/lib/starter_web/_data/modules/defaults/iconPicker.yml +3 -7
  102. data/lib/starter_web/_data/modules/lazyLoader.yml +5 -5
  103. data/lib/starter_web/_data/modules/navigator_menu.yml +7 -4
  104. data/lib/starter_web/_data/resources.yml +23 -28
  105. data/lib/starter_web/_data/templates/feed.xml +1 -1
  106. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  107. data/lib/starter_web/package.json +1 -1
  108. data/lib/starter_web/pages/public/learn/bs_sass_variables/bs_sass_variables.adoc +1 -1
  109. data/lib/starter_web/pages/public/learn/core_web_vitals/core_web_vitals.adoc +1 -1
  110. data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +1 -0
  111. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/themes_rouge.asciidoc +49 -40
  112. data/lib/starter_web/pages/public/learn/roundtrip/asciidoc_extensions.adoc +0 -1
  113. data/lib/starter_web/pages/public/learn/roundtrip/bootstrap_themes.adoc +20 -16
  114. data/lib/starter_web/pages/public/learn/roundtrip/highlghter_rouge.adoc +205 -0
  115. data/lib/starter_web/pages/public/learn/roundtrip/typography.adoc +3 -3
  116. data/lib/starter_web/pages/public/tools/cheatsheet/gem.adoc +4 -4
  117. data/lib/starter_web/pages/public/tools/cheatsheet/git.adoc +13 -13
  118. data/lib/starter_web/pages/public/tools/cheatsheet/j1.adoc +113 -3
  119. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  120. data/lib/starter_web/utilsrv/package.json +1 -1
  121. metadata +38 -9
  122. data/assets/themes/j1/adapter/js/translator.0.js +0 -498
  123. data/assets/themes/j1/adapter/js/translator.10.js +0 -510
  124. data/assets/themes/j1/modules/backstretch/js/v2.1.18/backstretch.js +0 -1627
  125. data/assets/themes/j1/modules/backstretch/js/v2.1.18/backstretch.min.js +0 -20
  126. data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.0.asciidoc +0 -112
  127. /data/assets/themes/j1/modules/masonry/js/{masonry.pkgd.js → masonry.js} +0 -0
  128. /data/assets/themes/j1/modules/masonry/js/{masonry.pkgd.min.js → masonry.min.js} +0 -0
@@ -1,20 +0,0 @@
1
- /*
2
- # -----------------------------------------------------------------------------
3
- # ~/assets/themes/j1/modules/backstretch/js/backstretch.js
4
- # Backstretch v.2.1.18 (Sept 2019) implementation for J1 Theme
5
- #
6
- # Product/Info:
7
- # https://jekyll.one
8
- # http://srobbin.com/jquery-plugins/backstretch/
9
- #
10
- # Copyright (C) 2023 Juergen Adams
11
- # Copyright (C) 2012 Scott Robbin
12
- # Copyright (C) 2019 Daniel Cohen Gindi
13
- #
14
- # J1 Theme is licensed under the MIT License.
15
- # See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md
16
- # Backstretch is licensed under the MIT License.
17
- # See: https://github.com/jquery-backstretch/jquery-backstretch
18
- # -----------------------------------------------------------------------------
19
- */
20
- !function(t,e,i){"use strict";var o=/^.*(youtu\.be\/|youtube\.com\/v\/|youtube\.com\/embed\/|youtube\.com\/watch\?v=|youtube\.com\/watch\?.*\&v=)([^#\&\?]*).*/i;t.fn.backstretch=function(i,o){var r,a=arguments;return 0===t(e).scrollTop()&&e.scrollTo(0,0),this.each(function(e){var n=t(this),s=n.data("backstretch");if(s){if("string"==typeof a[0]&&"function"==typeof s[a[0]]){var h=s[a[0]].apply(s,Array.prototype.slice.call(a,1));return h===s&&(h=void 0),void(void 0!==h&&((r=r||[])[e]=h))}o=t.extend(s.options,o),"object"==typeof s&&"destroy"in s&&s.destroy(!0)}if(!i||i&&0===i.length){var c=n.css("background-image");c&&"none"!==c?i=[{url:n.css("backgroundImage").replace(/url\(|\)|"|'/g,"")}]:t.error("No images were supplied for Backstretch, or element must have a CSS-defined background image.")}s=new b(this,i,o||{}),n.data("backstretch",s)}),r?1===r.length?r[0]:r:this},t.backstretch=function(e,i){return t("body").backstretch(e,i).data("backstretch")},t.expr[":"].backstretch=function(e){return void 0!==t(e).data("backstretch")},t.fn.backstretch.defaults={duration:5e3,transition:"fade",transitionDuration:0,animateFirst:!0,alignX:.5,alignY:.5,paused:!1,start:0,preload:2,preloadSize:1,resolutionRefreshRate:2500,resolutionChangeRatioThreshold:.1};var r,a,n,s,h,c,d={wrap:{left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},itemWrapper:{position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"100%",height:"100%",zIndex:-999999},item:{position:"absolute",margin:0,padding:0,border:"none",width:"100%",height:"100%",maxWidth:"none"}},l=(r=function(t){for(var e=1;e<t.length;e++){for(var i=t[e],o=e;t[o-1]&&parseInt(t[o-1].width,10)>parseInt(i.width,10);)t[o]=t[o-1],--o;t[o]=i}return t},a=function(t,i,o){for(var r,a,n=e.devicePixelRatio||1,s=C(),h=(S(),i>t?"portrait":t>i?"landscape":"square"),c=0,d=0;d<o.length&&("string"==typeof(a=o[d])&&(a=o[d]={url:a}),a.pixelRatio&&"auto"!==a.pixelRatio&&parseFloat(a.pixelRatio)!==n||a.deviceOrientation&&a.deviceOrientation!==s||a.windowOrientation&&a.windowOrientation!==s||a.orientation&&a.orientation!==h||(c=d,r=t,"auto"===a.pixelRatio&&(t*=n),!(a.width>=r)));d++);return o[Math.min(d,c)]},n=function(t,e){if("string"==typeof t)t=t.replace(/{{(width|height)}}/g,e);else if(t instanceof Array)for(var i=0;i<t.length;i++)t[i].src?t[i].src=n(t[i].src,e):t[i]=n(t[i],e);return t},function(e,i){for(var o=e.width(),s=e.height(),h=[],c=function(t,e){return"width"===e?o:"height"===e?s:t},d=0;d<i.length;d++)if(t.isArray(i[d])){i[d]=r(i[d]);var l=a(o,s,i[d]);h.push(l)}else{"string"==typeof i[d]&&(i[d]={url:i[d]});var u=t.extend({},i[d]);u.url=n(u.url,c),h.push(u)}return h}),u=function(t){return o.test(t.url)||t.isVideo},p=(s=[],h=function(t){for(var e=0;e<s.length;e++)if(s[e].src===t.src)return s[e];return s.push(t),t},c=function(t,e,i){"function"==typeof e&&e.call(t,i)},function e(i,o,r,a,n){if(void 0!==i){t.isArray(i)||(i=[i]),arguments.length<5&&"function"==typeof arguments[arguments.length-1]&&(n=arguments[arguments.length-1]),o="function"!=typeof o&&o?o:0,r="function"==typeof r||!r||r<0?i.length:Math.min(r,i.length),a="function"!=typeof a&&a?a:1,o>=i.length&&(o=0,r=0),a<0&&(a=r),a=Math.min(a,r);var s=i.slice(o+a,r-a);if(i=i.slice(o,a),r=i.length)for(var d,l=0,p=function(){++l===r&&(c(i,n,!s),e(s,0,0,a,n))},g=0;g<i.length;g++)u(i[g])||((d=new Image).src=i[g].url,(d=h(d)).complete?p():t(d).on("load error",p));else c(i,n,!0)}}),g=function(e){for(var i=[],o=0;o<e.length;o++)"string"==typeof e[o]?i.push({url:e[o]}):t.isArray(e[o])?i.push(g(e[o])):i.push(y(e[o]));return i},y=function(t,i){return(t.centeredX||t.centeredY)&&(e.console&&e.console.log&&e.console.log("jquery.backstretch: `centeredX`/`centeredY` is deprecated, please use `alignX`/`alignY`"),t.centeredX&&(t.alignX=.5),t.centeredY&&(t.alignY=.5)),void 0!==t.speed&&(e.console&&e.console.log&&e.console.log("jquery.backstretch: `speed` is deprecated, please use `transitionDuration`"),t.transitionDuration=t.speed,t.transition="fade"),void 0!==t.resolutionChangeRatioTreshold&&(e.console.log("jquery.backstretch: `treshold` is a typo!"),t.resolutionChangeRatioThreshold=t.resolutionChangeRatioTreshold),void 0!==t.fadeFirst&&(t.animateFirst=t.fadeFirst),void 0!==t.fade&&(t.transitionDuration=t.fade,t.transition="fade"),t.scale&&(t.scale=m(t.scale)),f(t)},f=function(t,e){return"left"===t.alignX?t.alignX=0:"center"===t.alignX?t.alignX=.5:"right"===t.alignX?t.alignX=1:(void 0!==t.alignX||e)&&(t.alignX=parseFloat(t.alignX),isNaN(t.alignX)&&(t.alignX=.5)),"top"===t.alignY?t.alignY=0:"center"===t.alignY?t.alignY=.5:"bottom"===t.alignY?t.alignY=1:(void 0!==t.alignX||e)&&(t.alignY=parseFloat(t.alignY),isNaN(t.alignY)&&(t.alignY=.5)),t},v={cover:"cover",fit:"fit","fit-smaller":"fit-smaller",fill:"fill"};function m(t){return v.hasOwnProperty(t)?t:"cover"}var b=function(i,o,r){this.options=t.extend({},t.fn.backstretch.defaults,r||{}),this.firstShow=!0,y(this.options,!0),this.images=g(t.isArray(o)?o:[o]),this.options.paused&&(this.paused=!0),this.options.start>=this.images.length&&(this.options.start=this.images.length-1),this.options.start<0&&(this.options.start=0),this.isBody=i===document.body;var a=t(e);this.$container=t(i),this.$root=this.isBody?z?a:t(document):this.$container,this.originalImages=this.images,this.images=l(this.options.alwaysTestWindowResolution?a:this.$root,this.originalImages),p(this.images,this.options.start||0,this.options.preload||1);var n=this.$container.children(".backstretch").first();if(this.$wrap=n.length?n:t('<div class="backstretch"></div>').css(this.options.bypassCss?{}:d.wrap).appendTo(this.$container),!this.options.bypassCss){if(!this.isBody){var s=this.$container.css("position"),h=this.$container.css("zIndex");this.$container.css({position:"static"===s?"relative":s,zIndex:"auto"===h?0:h}),this.$wrap.css({zIndex:-999998})}this.$wrap.css({position:this.isBody&&z?"fixed":"absolute"})}this.index=this.options.start,this.show(this.index),a.on("resize.backstretch",t.proxy(this.resize,this)).on("orientationchange.backstretch",t.proxy(function(){this.isBody&&0===e.pageYOffset&&(e.scrollTo(0,1),this.resize())},this))};b.prototype={resize:function(){try{var i=this.options.alwaysTestWindowResolution?t(e):this.$root,o=i.width(),r=i.height(),a=o/(this._lastResizeContainerWidth||0),n=r/(this._lastResizeContainerHeight||0),s=this.options.resolutionChangeRatioThreshold||0;if((o!==this._lastResizeContainerWidth||r!==this._lastResizeContainerHeight)&&(Math.abs(a-1)>=s||isNaN(a)||Math.abs(n-1)>=s||isNaN(n))&&(this._lastResizeContainerWidth=o,this._lastResizeContainerHeight=r,this.images=l(i,this.originalImages),this.options.preload&&p(this.images,(this.index+1)%this.images.length,this.options.preload),1===this.images.length&&this._currentImage.url!==this.images[0].url)){var h=this;clearTimeout(h._selectAnotherResolutionTimeout),h._selectAnotherResolutionTimeout=setTimeout(function(){h.show(0)},this.options.resolutionRefreshRate)}var c,d,u={left:0,top:0,right:"auto",bottom:"auto"},g=this.isBody?this.$root.width():this.$root.innerWidth(),y=this.isBody?e.innerHeight?e.innerHeight:this.$root.height():this.$root.innerHeight(),f=this.$itemWrapper.data("width"),v=this.$itemWrapper.data("height"),b=f/v||1,_=void 0===this._currentImage.alignX?this.options.alignX:this._currentImage.alignX,w=void 0===this._currentImage.alignY?this.options.alignY:this._currentImage.alignY,$=m(this._currentImage.scale||this.options.scale);if("fit"===$||"fit-smaller"===$){if(d=v,(c=f)>g||d>y||"fit-smaller"===$){var T=g/y;T>b?(c=Math.floor(y*b),d=y):T<b?(c=g,d=Math.floor(g/b)):(c=g,d=y)}}else"fill"===$?(c=g,d=y):(c=Math.max(y*b,g),d=Math.max(c/b,y));u.top=-(d-y)*w,u.left=-(c-g)*_,u.width=c,u.height=d,this.options.bypassCss||this.$wrap.css({width:g,height:y}).find(">.backstretch-item").not(".deleteable").each(function(){t(this).find("img,video,iframe").css(u)});var k=t.Event("backstretch.resize",{relatedTarget:this.$container[0]});this.$container.trigger(k,this)}catch(t){}return this},show:function(e,i){if(!(Math.abs(e)>this.images.length-1)){var o=this,r=o.$wrap.find(">.backstretch-item").addClass("deleteable"),a=o.videoWrapper,n={relatedTarget:o.$container[0]};o.$container.trigger(t.Event("backstretch.before",n),[o,e]),this.index=e;var s=o.images[e];clearTimeout(o._cycleTimeout),delete o.videoWrapper;var h=u(s);return h?(o.videoWrapper=new _(s),o.$item=o.videoWrapper.$video.css("pointer-events","none")):o.$item=t("<img />"),o.$itemWrapper=t('<div class="backstretch-item">').append(o.$item),this.options.bypassCss?o.$itemWrapper.css({display:"none"}):(o.$itemWrapper.css(d.itemWrapper),o.$item.css(d.item)),o.$item.bind(h?"canplay":"load",function(s){var c=t(this).parent(),d=c.data("options");i&&(d=t.extend({},d,i));var l=this.naturalWidth||this.videoWidth||this.width,u=this.naturalHeight||this.videoHeight||this.height;c.data("width",l).data("height",u);var p=function(t){return void 0!==d[t]?d[t]:o.options[t]},g=p("transition"),y=p("transitionEasing"),f=p("transitionDuration"),v=function(){a&&(a.stop(),a.destroy()),r.remove(),!o.paused&&o.images.length>1&&o.cycle(),o.options.bypassCss||o.isBody||o.$container.css("background-image","none"),t(["after","show"]).each(function(){o.$container.trigger(t.Event("backstretch."+this,n),[o,e])}),h&&o.videoWrapper.play()};o.firstShow&&!o.options.animateFirst||!f||!g?(c.show(),v()):function(e){var i=e.transition||"fade";"string"==typeof i&&i.indexOf("|")>-1&&(i=i.split("|")),i instanceof Array&&(i=i[Math.round(Math.random()*(i.length-1))]);var o=e.new,r=e.old?e.old:t([]);switch(i.toString().toLowerCase()){default:case"fade":o.fadeIn({duration:e.duration,complete:e.complete,easing:e.easing||void 0});break;case"fadeinout":case"fade_in_out":var a=function(){o.fadeIn({duration:e.duration/2,complete:e.complete,easing:e.easing||void 0})};r.length?r.fadeOut({duration:e.duration/2,complete:a,easing:e.easing||void 0}):a();break;case"pushleft":case"push_left":case"pushright":case"push_right":case"pushup":case"push_up":case"pushdown":case"push_down":case"coverleft":case"cover_left":case"coverright":case"cover_right":case"coverup":case"cover_up":case"coverdown":case"cover_down":var n=i.match(/^(cover|push)_?(.*)$/),s="left"===n[2]?"right":"right"===n[2]?"left":"down"===n[2]?"top":"up"===n[2]?"bottom":"right",h={display:""},c={};if(h[s]="-100%",c[s]=0,o.css(h).animate(c,{duration:e.duration,complete:function(){o.css(s,""),e.complete.apply(this,arguments)},easing:e.easing||void 0}),"push"===n[1]&&r.length){var d={};d[s]="100%",r.animate(d,{duration:e.duration,complete:function(){r.css("display","none")},easing:e.easing||void 0})}}}({new:c,old:r,transition:g,duration:f,easing:y,complete:v}),o.firstShow=!1,o.resize()}),o.$itemWrapper.appendTo(o.$wrap),o.$item.attr("alt",s.alt||""),o.$itemWrapper.data("options",s),h||o.$item.attr("src",s.url),o._currentImage=s,o}},current:function(){return this.index},next:function(){var t=Array.prototype.slice.call(arguments,0);return t.unshift(this.index<this.images.length-1?this.index+1:0),this.show.apply(this,t)},prev:function(){var t=Array.prototype.slice.call(arguments,0);return t.unshift(0===this.index?this.images.length-1:this.index-1),this.show.apply(this,t)},pause:function(){return this.paused=!0,this.videoWrapper&&this.videoWrapper.pause(),this},resume:function(){return this.paused=!1,this.videoWrapper&&this.videoWrapper.play(),this.cycle(),this},cycle:function(){if(this.images.length>1){clearTimeout(this._cycleTimeout);var e=this._currentImage&&this._currentImage.duration||this.options.duration,i=u(this._currentImage),o=function(){this.$item.off(".cycle"),this.paused||this.next()};if(i){if(!this._currentImage.loop){var r=0;this.$item.on("playing.cycle",function(){var e=t(this).data("player");clearTimeout(r),r=setTimeout(function(){e.pause(),e.$video.trigger("ended")},1e3*(e.getDuration()-e.getCurrentTime()))}).on("ended.cycle",function(){clearTimeout(r)})}this.$item.on("error.cycle initerror.cycle",t.proxy(o,this))}i&&!this._currentImage.duration?this.$item.on("ended.cycle",t.proxy(o,this)):this._cycleTimeout=setTimeout(t.proxy(o,this),e)}return this},destroy:function(i){t(e).off("resize.backstretch orientationchange.backstretch"),this.videoWrapper&&this.videoWrapper.destroy(),clearTimeout(this._cycleTimeout),i||this.$wrap.remove(),this.$container.removeData("backstretch")}};var _=function(){this.init.apply(this,arguments)};_.prototype.init=function(i){var r,a=this,n=function(){a.$video=r,a.video=r[0]},s="video";if(i.url instanceof Array||!o.test(i.url)||(s="youtube"),a.type=s,"youtube"===s){_.loadYoutubeAPI(),a.ytId=i.url.match(o)[2];var h="https://www.youtube.com/embed/"+a.ytId+"?rel=0&autoplay=0&showinfo=0&controls=0&modestbranding=1&cc_load_policy=0&disablekb=1&iv_load_policy=3&loop=0&enablejsapi=1&origin="+encodeURIComponent(e.location.origin);a.__ytStartMuted=!!i.mute||void 0===i.mute,r=t("<iframe />").attr({src_to_load:h}).css({border:0,margin:0,padding:0}).data("player",a),i.loop&&r.on("ended.loop",function(){a.__manuallyStopped||a.play()}),a.ytReady=!1,n(),e.YT&&e.YT.loaded?(a._initYoutube(),r.trigger("initsuccess")):t(e).one("youtube_api_load",function(){a._initYoutube(),r.trigger("initsuccess")})}else{r=t("<video>").prop("autoplay",!1).prop("controls",!1).prop("loop",!!i.loop).prop("muted",!!i.mute||void 0===i.mute).prop("preload","auto").prop("poster",i.poster||"");for(var c=i.url instanceof Array?i.url:[i.url],d=0;d<c.length;d++){var l=c[d];"string"==typeof l&&(l={src:l}),t("<source>").attr("src",l.src).attr("type",l.type||null).appendTo(r)}r[0].canPlayType&&c.length?r.trigger("initsuccess"):r.trigger("initerror"),n()}},_.prototype._initYoutube=function(){var i=this,o=e.YT;i.$video.attr("src",i.$video.attr("src_to_load")).removeAttr("src_to_load");var r=!!i.$video[0].parentNode;if(!r){var a=t("<div>").css("display","none !important").appendTo(document.body);i.$video.appendTo(a)}var n=new o.Player(i.video,{events:{onReady:function(){i.__ytStartMuted&&n.mute(),r||(i.$video[0].parentNode===a[0]&&i.$video.detach(),a.remove()),i.ytReady=!0,i._updateYoutubeSize(),i.$video.trigger("canplay")},onStateChange:function(t){switch(t.data){case o.PlayerState.PLAYING:i.$video.trigger("playing");break;case o.PlayerState.ENDED:i.$video.trigger("ended");break;case o.PlayerState.PAUSED:i.$video.trigger("pause");break;case o.PlayerState.BUFFERING:i.$video.trigger("waiting");break;case o.PlayerState.CUED:i.$video.trigger("canplay")}},onPlaybackQualityChange:function(){i._updateYoutubeSize(),i.$video.trigger("resize")},onError:function(t){i.hasError=!0,i.$video.trigger({type:"error",error:t})}}});return i.ytPlayer=n,i},_.prototype._updateYoutubeSize=function(){switch(this.ytPlayer.getPlaybackQuality()||"medium"){case"small":this.video.videoWidth=426,this.video.videoHeight=240;break;case"medium":this.video.videoWidth=640,this.video.videoHeight=360;break;default:case"large":this.video.videoWidth=854,this.video.videoHeight=480;break;case"hd720":this.video.videoWidth=1280,this.video.videoHeight=720;break;case"hd1080":this.video.videoWidth=1920,this.video.videoHeight=1080;break;case"highres":this.video.videoWidth=2560,this.video.videoHeight=1440}return this},_.prototype.play=function(){return this.__manuallyStopped=!1,"youtube"===this.type?this.ytReady&&(this.$video.trigger("play"),this.ytPlayer.playVideo()):this.video.play(),this},_.prototype.pause=function(){return this.__manuallyStopped=!1,"youtube"===this.type?this.ytReady&&this.ytPlayer.pauseVideo():this.video.pause(),this},_.prototype.stop=function(){return this.__manuallyStopped=!0,"youtube"===this.type?this.ytReady&&(this.ytPlayer.pauseVideo(),this.ytPlayer.seekTo(0)):(this.video.pause(),this.video.currentTime=0),this},_.prototype.destroy=function(){return this.ytPlayer&&this.ytPlayer.destroy(),this.$video.remove(),this},_.prototype.getCurrentTime=function(t){return"youtube"!==this.type?this.video.currentTime:this.ytReady?this.ytPlayer.getCurrentTime():0},_.prototype.setCurrentTime=function(t){return"youtube"===this.type?this.ytReady&&this.ytPlayer.seekTo(t,!0):this.video.currentTime=t,this},_.prototype.getDuration=function(){return"youtube"!==this.type?this.video.duration:this.ytReady?this.ytPlayer.getDuration():0},_.loadYoutubeAPI=function(){e.YT&&e.__yt_load_event_interval__||(e.YT||t("script[src*=www\\.youtube\\.com\\/iframe_api]").length||t('<script type="text/javascript" src="https://www.youtube.com/iframe_api">').appendTo("body"),e.__yt_load_event_interval__=setInterval(function(){e.YT&&e.YT.loaded&&(t(e).trigger("youtube_api_load"),clearTimeout(e.__yt_load_event_interval__),delete e.__yt_load_event_interval__)},50))};var w,$,T,k,x,W,R,Y,I,P,C=function(){if("matchMedia"in e){if(e.matchMedia("(orientation: portrait)").matches)return"portrait";if(e.matchMedia("(orientation: landscape)").matches)return"landscape"}return screen.height>screen.width?"portrait":"landscape"},S=function(){return e.innerHeight>e.innerWidth?"portrait":e.innerWidth>e.innerHeight?"landscape":"square"},z=(w=navigator.userAgent,$=navigator.platform,T=w.match(/AppleWebKit\/([0-9]+)/),k=!!T&&T[1],x=w.match(/Fennec\/([0-9]+)/),W=!!x&&x[1],R=w.match(/Opera Mobi\/([0-9]+)/),Y=!!R&&R[1],I=w.match(/MSIE ([0-9]+)/),P=!!I&&I[1],!(($.indexOf("iPhone")>-1||$.indexOf("iPad")>-1||$.indexOf("iPod")>-1)&&k&&k<534||e.operamini&&"[object OperaMini]"==={}.toString.call(e.operamini)||R&&Y<7458||w.indexOf("Android")>-1&&k&&k<533||W&&W<6||"palmGetResource"in e&&k&&k<534||w.indexOf("MeeGo")>-1&&w.indexOf("NokiaBrowser/8.5.0")>-1||P&&P<=6))}(jQuery,window);
@@ -1,112 +0,0 @@
1
- // ~/document_base_folder/000_includes
2
- // Asciidoc attribute includes: attributes.asciidoc
3
- // -----------------------------------------------------------------------------
4
-
5
- // URLs - Internal references and/or sources on the Internet
6
- // -----------------------------------------------------------------------------
7
- tag::urls[]
8
-
9
- :url-mdb--home: https://mdbootstrap.com/
10
- :url-mdb--bs-modals: https://mdbootstrap.com/docs/jquery/modals/basic/
11
- :url-mdb--bs-modals-legacy: https://mdbootstrap.com/legacy/4.3.2/?page=javascript/modals
12
-
13
- :url-w3org--css-spec: https://www.w3.org/Style/CSS/specs.en.html
14
- :url-w3schools--css-tutorial: https://www.w3schools.com/css/default.asp
15
-
16
- :url-fontawesome--home: https://fontawesome.com/
17
- :url-fontawesome--icons: https://fontawesome.com/v5/search
18
- :url-fontawesome--get-started: https://fontawesome.com/get-started
19
-
20
- :url-mdi--home: https://materialdesignicons.com/
21
- :url-mdi-icons--cheatsheet: https://cdn.materialdesignicons.com/3.3.92/
22
-
23
- :url-iconify--home: https://iconify.design/
24
- :url-iconify--icon-sets: https://iconify.design/icon-sets/
25
- :url-iconify--medical-icons: https://iconify.design/icon-sets/medical-icon/
26
- :url-iconify--brand-icons: https://iconify.design/icon-sets/logos/
27
-
28
- :url-jekyll-one--core-doc-color-scheme: https://support.jekyll-one.com/user_guide/core/color_scheme
29
-
30
- :url-light-gallery--license: http://sachinchoolur.github.io/lightGallery/docs/license.html
31
-
32
- :url-font-icons--icon-picker: https://jekyll.one/pages/public/tools/previewer/icon-picker/
33
-
34
- :url-asciidoctor-extensions--lab: https://github.com/asciidoctor/asciidoctor-extensions-lab
35
- :url-asciidoctor-extensions--use-extension: https://github.com/asciidoctor/asciidoctor-extensions-lab#using-an-extension
36
- :url-asciidoctor-user-manual--extensions: http://asciidoctor.org/docs/user-manual/#extensions
37
-
38
- :url-roundtrip--data-slider-picker: /pages/public/learn/roundtrip/data_slider_picker
39
- :url-roundtrip--image_headers: /pages/public/learn/roundtrip/image_header
40
- :url-roundtrip--readme-first: /pages/public/learn/read_me_first/
41
- :url-roundtrip--present-images: /pages/public/learn/roundtrip/present_images/
42
- :url-roundtrip--present-videos: /pages/public/learn/roundtrip/present_videos/
43
- :url-roundtrip--cards: /pages/public/learn/roundtrip/cards/
44
- :url-roundtrip--typography: /pages/public/learn/roundtrip/typography/
45
- :url-roundtrip--asciidoc-extensions: /pages/public/learn/roundtrip/asciidoc_extensions/
46
- :url-roundtrip--extended-modals: /pages/public/learn/roundtrip/modals/
47
- :url-roundtrip--icon-fonts: /pages/public/learn/roundtrip/mdi_icon_font/
48
- :url-roundtrip--responsive-tables: /pages/public/learn/roundtrip/responsive_tables/
49
- :url-roundtrip--themes: /pages/public/learn/roundtrip/themes/
50
- :url-roundtrip--quicksearch: /pages/public/learn/roundtrip/quicksearch/
51
-
52
- :url-github-gist--home: https://gist.github.com/
53
- :url-asciidoc-extensions--gist-example: https://gist.github.com/mojavelinux/5546622
54
-
55
- :url-previewer--theme: /pages/public/tools/previewer/theme/
56
-
57
- :url-fa-icons--previewer: https://fontawesome.com/v5/search
58
- :url-iconify-icons--previewer: https://icon-sets.iconify.design/
59
-
60
- :url-kickstarter--web-in-a-day: https://jekyll.one/pages/public/learn/kickstarter/web_in_a_day/meet_and_greet/
61
-
62
- end::urls[]
63
-
64
-
65
- // FOOTNOTES, global asciidoc attributes (variables)
66
- // -----------------------------------------------------------------------------
67
- tag::footnotes[]
68
-
69
- :fn-bootstrap-v5--responsive-text: footnote:[https://getbootstrap.com/docs/5.0/content/typography/#responsive-font-sizes[Supported with Bootstrap V5 · Responsive font sizes, window="_blank"]]
70
- :fn-mdi-icons--home: footnote:[https://materialdesignicons.com/[MDI icons · Home, window="_blank"]]
71
-
72
- end::footnotes[]
73
-
74
-
75
- // Tags - Asciidoc attributes used internally
76
- // -----------------------------------------------------------------------------
77
- tag::tags[]
78
- end::tags[]
79
-
80
-
81
- // Data - Data elements for Asciidoctor extensions
82
- // -----------------------------------------------------------------------------
83
- tag::data[]
84
-
85
- :data-images-standalone: "assets/images/modules/gallery/old_times/image_02.jpg, GrandPa's 80th Birthday"
86
- :data-images-group: "assets/images/modules/gallery/old_times/image_03.jpg, GrandPa's annual journey, assets/images/modules/gallery/old_times/image_04.jpg, GrandPa's annual journey"
87
-
88
- :data-images--themes-menu: "assets/images/pages/roundtrip/themes-menu-1280x800.jpg, Themes menu (Bootswatch)"
89
- :data-images--styles-menu: "assets/images/pages/roundtrip/styles-menu-1280x800.jpg, Styles menu (Bootswatch)"
90
-
91
- :data-quicksearch-icon: "assets/images/pages/roundtrip/600_quicksearch/quicksearch_icon-800x200.jpg, Search button (magnifier) in the quick access area"
92
- :data-quicksearch-input: "assets/images/pages/roundtrip/600_quicksearch/quicksearch_input-800x200.jpg, Input bar for a QuickSearch"
93
-
94
- end::data[]
95
-
96
-
97
- // Images - Images from local include/images folder
98
- // -----------------------------------------------------------------------------
99
- tag::images[]
100
- end::images[]
101
-
102
-
103
- // PRODUCTS, local product information (e.g. release)
104
- // -----------------------------------------------------------------------------
105
- tag::products[]
106
- end::products[]
107
-
108
-
109
- // AUTHORS, local author information (e.g. article)
110
- // -----------------------------------------------------------------------------
111
- tag::authors[]
112
- end::authors[]