j1-template 2021.1.5 → 2021.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/layout_metadata_generator.html +4 -4
  3. data/_includes/themes/j1/modules/connectors/ads +18 -7
  4. data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +6 -6
  5. data/_includes/themes/j1/modules/connectors/analytics +17 -3
  6. data/_includes/themes/j1/modules/connectors/comments +22 -8
  7. data/_includes/themes/j1/modules/connectors/translator +20 -6
  8. data/_includes/themes/j1/procedures/global/select_location.proc +3 -3
  9. data/assets/data/themes.json +6 -6
  10. data/assets/error_pages/HTTP204.html +30 -10
  11. data/assets/error_pages/HTTP400.html +29 -8
  12. data/assets/error_pages/HTTP401.html +29 -9
  13. data/assets/error_pages/HTTP403.html +29 -8
  14. data/assets/error_pages/HTTP404.html +29 -8
  15. data/assets/error_pages/HTTP500.html +29 -8
  16. data/assets/error_pages/HTTP501.html +29 -8
  17. data/assets/error_pages/HTTP502.html +29 -8
  18. data/assets/error_pages/HTTP503.html +30 -8
  19. data/assets/themes/j1/adapter/js/cookieConsent.js +93 -56
  20. data/assets/themes/j1/adapter/js/fam.js +2 -1
  21. data/assets/themes/j1/adapter/js/j1.js +176 -170
  22. data/assets/themes/j1/adapter/js/navigator.js +157 -200
  23. data/assets/themes/j1/adapter/js/themer.1.js +326 -0
  24. data/assets/themes/j1/adapter/js/themer.js +41 -57
  25. data/assets/themes/j1/adapter/js/toccer.js +4 -45
  26. data/assets/themes/j1/core/js/template.js +1 -1
  27. data/assets/themes/j1/core/js/template.js.map +1 -1
  28. data/assets/themes/j1/core/js/template.min.js +1 -1
  29. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  30. data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +25 -10
  31. data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +5 -6
  32. data/assets/themes/j1/modules/fam/css/{uno → theme/uno}/fam.css +0 -0
  33. data/assets/themes/j1/modules/fam/css/theme/uno/fam.min.css +15 -0
  34. data/assets/themes/j1/modules/fam/js/fam.js +1 -6
  35. data/assets/themes/j1/modules/mmenuLight/css/{mmenu.css → mmenu-light.css} +0 -0
  36. data/assets/themes/j1/modules/mmenuLight/css/{mmenu.min.css → mmenu-light.min.css} +0 -0
  37. data/assets/themes/j1/modules/mmenuLight/css/theme/{uno.css → uno/mmenu.css} +0 -0
  38. data/assets/themes/j1/modules/mmenuLight/css/theme/{uno.min.css → uno/mmenu.min.css} +0 -0
  39. data/assets/themes/j1/modules/rtable/css/theme/{uno.css → uno/rtable.css} +0 -0
  40. data/assets/themes/j1/modules/rtable/css/theme/{uno.min.css → uno/rtable.min.css} +0 -0
  41. data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +34 -49
  42. data/assets/themes/j1/modules/themeSwitcher/js/switcher.min.js +410 -2
  43. data/lib/j1/version.rb +1 -1
  44. data/lib/j1_app/j1_auth_manager/auth_manager.rb +2 -3
  45. data/lib/starter_web/Gemfile +1 -1
  46. data/lib/starter_web/_config.yml +18 -10
  47. data/lib/starter_web/_data/_defaults/private.default.yml +119 -0
  48. data/lib/starter_web/_data/j1_config.yml +21 -18
  49. data/lib/starter_web/_data/modules/cookieconsent.yml +1 -0
  50. data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +10 -9
  51. data/lib/starter_web/_data/modules/defaults/themer.yml +2 -1
  52. data/lib/starter_web/_data/private.default.yml +119 -0
  53. data/lib/starter_web/_data/resources.yml +6 -7
  54. data/lib/starter_web/_includes/attributes.asciidoc +1 -1
  55. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  56. data/lib/starter_web/dot.gitignore +2 -2
  57. data/lib/starter_web/index.html +3 -3
  58. data/lib/starter_web/package.json +2 -2
  59. data/lib/starter_web/pages/public/blog/navigator/archive.html +5 -3
  60. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +3 -2
  61. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +6 -4
  62. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +23 -5
  63. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +9 -6
  64. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  65. data/lib/starter_web/utilsrv/package.json +1 -1
  66. metadata +13 -65
  67. data/assets/error_pages/HTTP520.html +0 -68
  68. data/assets/error_pages/HTTP521.html +0 -68
  69. data/assets/error_pages/HTTP533.html +0 -68
  70. data/assets/themes/j1/modules/_lightGallery/css/core/lg-fb-comment-box.css +0 -58
  71. data/assets/themes/j1/modules/_lightGallery/css/core/lg-fb-comment-box.min.css +0 -5
  72. data/assets/themes/j1/modules/_lightGallery/css/core/lg-transitions.css +0 -778
  73. data/assets/themes/j1/modules/_lightGallery/css/core/lg-transitions.min.css +0 -5
  74. data/assets/themes/j1/modules/_lightGallery/css/core/lightgallery.css +0 -981
  75. data/assets/themes/j1/modules/_lightGallery/css/core/lightgallery.min.css +0 -5
  76. data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.eot +0 -0
  77. data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.svg +0 -47
  78. data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.ttf +0 -0
  79. data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.woff +0 -0
  80. data/assets/themes/j1/modules/_lightGallery/css/img/loading.gif +0 -0
  81. data/assets/themes/j1/modules/_lightGallery/css/img/video-play.png +0 -0
  82. data/assets/themes/j1/modules/_lightGallery/css/img/vimeo-play.png +0 -0
  83. data/assets/themes/j1/modules/_lightGallery/css/img/youtube-play.png +0 -0
  84. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/animation-w.png +0 -0
  85. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/customize-w.png +0 -0
  86. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/dynamic-w.png +0 -0
  87. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/facebook-icon.svg +0 -10
  88. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/googleplus-icon.svg +0 -30
  89. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/html5-w.png +0 -0
  90. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/linked-in.png +0 -0
  91. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/module-w.png +0 -0
  92. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/play-button.png +0 -0
  93. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/responsive-w.png +0 -0
  94. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/thumb-w.png +0 -0
  95. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/touch-w.png +0 -0
  96. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/twitter-icon.svg +0 -15
  97. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/twitter.png +0 -0
  98. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/video1-w.png +0 -0
  99. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/zoom-w.png +0 -0
  100. data/assets/themes/j1/modules/_lightGallery/css/themes/icons/zoom.png +0 -0
  101. data/assets/themes/j1/modules/_lightGallery/css/themes/uno.css +0 -262
  102. data/assets/themes/j1/modules/_lightGallery/css/themes/uno.min.css +0 -15
  103. data/assets/themes/j1/modules/_lightGallery/js/core/lightgallery.js +0 -1362
  104. data/assets/themes/j1/modules/_lightGallery/js/core/lightgallery.min.js +0 -4
  105. data/assets/themes/j1/modules/_lightGallery/js/modules/j1/j1-video.js +0 -402
  106. data/assets/themes/j1/modules/_lightGallery/js/modules/j1/j1-video.min.js +0 -8
  107. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-autoplay.js +0 -206
  108. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-autoplay.min.js +0 -5
  109. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-fullscreen.js +0 -126
  110. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-fullscreen.min.js +0 -5
  111. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-hash.js +0 -101
  112. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-hash.min.js +0 -5
  113. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-pager.js +0 -105
  114. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-pager.min.js +0 -5
  115. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-share.js +0 -107
  116. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-share.min.js +0 -5
  117. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-thumbnail.js +0 -478
  118. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-thumbnail.min.js +0 -5
  119. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-video.js +0 -342
  120. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-video.min.js +0 -5
  121. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-zoom.js +0 -527
  122. data/assets/themes/j1/modules/_lightGallery/js/modules/lg-zoom.min.js +0 -5
@@ -1,5 +0,0 @@
1
- /*! lg-zoom - v1.1.0 - 2017-08-08
2
- * http://sachinchoolur.github.io/lightGallery
3
- * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
4
-
5
- !function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){!function(){"use strict";var b=function(){var a=!1,b=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return b&&parseInt(b[2],10)<54&&(a=!0),a},c={scale:1,zoom:!0,actualSize:!0,enableZoomAfter:300,useLeftForZoom:b()},d=function(b){return this.core=a(b).data("lightGallery"),this.core.s=a.extend({},c,this.core.s),this.core.s.zoom&&this.core.doCss()&&(this.init(),this.zoomabletimeout=!1,this.pageX=a(window).width()/2,this.pageY=a(window).height()/2+a(window).scrollTop()),this};d.prototype.init=function(){var b=this,c='<span id="lg-zoom-in" class="lg-icon"></span><span id="lg-zoom-out" class="lg-icon"></span>';b.core.s.actualSize&&(c+='<span id="lg-actual-size" class="lg-icon"></span>'),b.core.s.useLeftForZoom?b.core.$outer.addClass("lg-use-left-for-zoom"):b.core.$outer.addClass("lg-use-transition-for-zoom"),this.core.$outer.find(".lg-toolbar").append(c),b.core.$el.on("onSlideItemLoad.lg.tm.zoom",function(c,d,e){var f=b.core.s.enableZoomAfter+e;a("body").hasClass("lg-from-hash")&&e?f=0:a("body").removeClass("lg-from-hash"),b.zoomabletimeout=setTimeout(function(){b.core.$slide.eq(d).addClass("lg-zoomable")},f+30)});var d=1,e=function(c){var d,e,f=b.core.$outer.find(".lg-current .lg-image"),g=(a(window).width()-f.prop("offsetWidth"))/2,h=(a(window).height()-f.prop("offsetHeight"))/2+a(window).scrollTop();d=b.pageX-g,e=b.pageY-h;var i=(c-1)*d,j=(c-1)*e;f.css("transform","scale3d("+c+", "+c+", 1)").attr("data-scale",c),b.core.s.useLeftForZoom?f.parent().css({left:-i+"px",top:-j+"px"}).attr("data-x",i).attr("data-y",j):f.parent().css("transform","translate3d(-"+i+"px, -"+j+"px, 0)").attr("data-x",i).attr("data-y",j)},f=function(){d>1?b.core.$outer.addClass("lg-zoomed"):b.resetZoom(),d<1&&(d=1),e(d)},g=function(c,e,g,h){var i,j=e.prop("offsetWidth");i=b.core.s.dynamic?b.core.s.dynamicEl[g].width||e[0].naturalWidth||j:b.core.$items.eq(g).attr("data-width")||e[0].naturalWidth||j;var k;b.core.$outer.hasClass("lg-zoomed")?d=1:i>j&&(k=i/j,d=k||2),h?(b.pageX=a(window).width()/2,b.pageY=a(window).height()/2+a(window).scrollTop()):(b.pageX=c.pageX||c.originalEvent.targetTouches[0].pageX,b.pageY=c.pageY||c.originalEvent.targetTouches[0].pageY),f(),setTimeout(function(){b.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")},10)},h=!1;b.core.$el.on("onAferAppendSlide.lg.tm.zoom",function(a,c){var d=b.core.$slide.eq(c).find(".lg-image");d.on("dblclick",function(a){g(a,d,c)}),d.on("touchstart",function(a){h?(clearTimeout(h),h=null,g(a,d,c)):h=setTimeout(function(){h=null},300),a.preventDefault()})}),a(window).on("resize.lg.zoom scroll.lg.zoom orientationchange.lg.zoom",function(){b.pageX=a(window).width()/2,b.pageY=a(window).height()/2+a(window).scrollTop(),e(d)}),a("#lg-zoom-out").on("click.lg",function(){b.core.$outer.find(".lg-current .lg-image").length&&(d-=b.core.s.scale,f())}),a("#lg-zoom-in").on("click.lg",function(){b.core.$outer.find(".lg-current .lg-image").length&&(d+=b.core.s.scale,f())}),a("#lg-actual-size").on("click.lg",function(a){g(a,b.core.$slide.eq(b.core.index).find(".lg-image"),b.core.index,!0)}),b.core.$el.on("onBeforeSlide.lg.tm",function(){d=1,b.resetZoom()}),b.zoomDrag(),b.zoomSwipe()},d.prototype.resetZoom=function(){this.core.$outer.removeClass("lg-zoomed"),this.core.$slide.find(".lg-img-wrap").removeAttr("style data-x data-y"),this.core.$slide.find(".lg-image").removeAttr("style data-scale"),this.pageX=a(window).width()/2,this.pageY=a(window).height()/2+a(window).scrollTop()},d.prototype.zoomSwipe=function(){var a=this,b={},c={},d=!1,e=!1,f=!1;a.core.$slide.on("touchstart.lg",function(c){if(a.core.$outer.hasClass("lg-zoomed")){var d=a.core.$slide.eq(a.core.index).find(".lg-object");f=d.prop("offsetHeight")*d.attr("data-scale")>a.core.$outer.find(".lg").height(),e=d.prop("offsetWidth")*d.attr("data-scale")>a.core.$outer.find(".lg").width(),(e||f)&&(c.preventDefault(),b={x:c.originalEvent.targetTouches[0].pageX,y:c.originalEvent.targetTouches[0].pageY})}}),a.core.$slide.on("touchmove.lg",function(g){if(a.core.$outer.hasClass("lg-zoomed")){var h,i,j=a.core.$slide.eq(a.core.index).find(".lg-img-wrap");g.preventDefault(),d=!0,c={x:g.originalEvent.targetTouches[0].pageX,y:g.originalEvent.targetTouches[0].pageY},a.core.$outer.addClass("lg-zoom-dragging"),i=f?-Math.abs(j.attr("data-y"))+(c.y-b.y):-Math.abs(j.attr("data-y")),h=e?-Math.abs(j.attr("data-x"))+(c.x-b.x):-Math.abs(j.attr("data-x")),(Math.abs(c.x-b.x)>15||Math.abs(c.y-b.y)>15)&&(a.core.s.useLeftForZoom?j.css({left:h+"px",top:i+"px"}):j.css("transform","translate3d("+h+"px, "+i+"px, 0)"))}}),a.core.$slide.on("touchend.lg",function(){a.core.$outer.hasClass("lg-zoomed")&&d&&(d=!1,a.core.$outer.removeClass("lg-zoom-dragging"),a.touchendZoom(b,c,e,f))})},d.prototype.zoomDrag=function(){var b=this,c={},d={},e=!1,f=!1,g=!1,h=!1;b.core.$slide.on("mousedown.lg.zoom",function(d){var f=b.core.$slide.eq(b.core.index).find(".lg-object");h=f.prop("offsetHeight")*f.attr("data-scale")>b.core.$outer.find(".lg").height(),g=f.prop("offsetWidth")*f.attr("data-scale")>b.core.$outer.find(".lg").width(),b.core.$outer.hasClass("lg-zoomed")&&a(d.target).hasClass("lg-object")&&(g||h)&&(d.preventDefault(),c={x:d.pageX,y:d.pageY},e=!0,b.core.$outer.scrollLeft+=1,b.core.$outer.scrollLeft-=1,b.core.$outer.removeClass("lg-grab").addClass("lg-grabbing"))}),a(window).on("mousemove.lg.zoom",function(a){if(e){var i,j,k=b.core.$slide.eq(b.core.index).find(".lg-img-wrap");f=!0,d={x:a.pageX,y:a.pageY},b.core.$outer.addClass("lg-zoom-dragging"),j=h?-Math.abs(k.attr("data-y"))+(d.y-c.y):-Math.abs(k.attr("data-y")),i=g?-Math.abs(k.attr("data-x"))+(d.x-c.x):-Math.abs(k.attr("data-x")),b.core.s.useLeftForZoom?k.css({left:i+"px",top:j+"px"}):k.css("transform","translate3d("+i+"px, "+j+"px, 0)")}}),a(window).on("mouseup.lg.zoom",function(a){e&&(e=!1,b.core.$outer.removeClass("lg-zoom-dragging"),!f||c.x===d.x&&c.y===d.y||(d={x:a.pageX,y:a.pageY},b.touchendZoom(c,d,g,h)),f=!1),b.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")})},d.prototype.touchendZoom=function(a,b,c,d){var e=this,f=e.core.$slide.eq(e.core.index).find(".lg-img-wrap"),g=e.core.$slide.eq(e.core.index).find(".lg-object"),h=-Math.abs(f.attr("data-x"))+(b.x-a.x),i=-Math.abs(f.attr("data-y"))+(b.y-a.y),j=(e.core.$outer.find(".lg").height()-g.prop("offsetHeight"))/2,k=Math.abs(g.prop("offsetHeight")*Math.abs(g.attr("data-scale"))-e.core.$outer.find(".lg").height()+j),l=(e.core.$outer.find(".lg").width()-g.prop("offsetWidth"))/2,m=Math.abs(g.prop("offsetWidth")*Math.abs(g.attr("data-scale"))-e.core.$outer.find(".lg").width()+l);(Math.abs(b.x-a.x)>15||Math.abs(b.y-a.y)>15)&&(d&&(i<=-k?i=-k:i>=-j&&(i=-j)),c&&(h<=-m?h=-m:h>=-l&&(h=-l)),d?f.attr("data-y",Math.abs(i)):i=-Math.abs(f.attr("data-y")),c?f.attr("data-x",Math.abs(h)):h=-Math.abs(f.attr("data-x")),e.core.s.useLeftForZoom?f.css({left:h+"px",top:i+"px"}):f.css("transform","translate3d("+h+"px, "+i+"px, 0)"))},d.prototype.destroy=function(){var b=this;b.core.$el.off(".lg.zoom"),a(window).off(".lg.zoom"),b.core.$slide.off(".lg.zoom"),b.core.$el.off(".lg.tm.zoom"),b.resetZoom(),clearTimeout(b.zoomabletimeout),b.zoomabletimeout=!1},a.fn.lightGallery.modules.zoom=d}()});