j1-template 2021.1.0 → 2021.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/layouts/layout_metadata_generator.html +54 -39
- data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +1 -1
- data/_includes/themes/j1/modules/connectors/ads +3 -5
- data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +9 -5
- data/_includes/themes/j1/modules/connectors/analytics +4 -2
- data/_includes/themes/j1/modules/connectors/comments +7 -6
- data/_includes/themes/j1/modules/connectors/translator +3 -4
- data/_includes/themes/j1/modules/navigator/generator.html +4 -40
- data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +2 -2
- data/_includes/themes/j1/procedures/global/create_bs_button.proc +64 -22
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +14 -10
- data/_layouts/default.html +4 -7
- data/apps/public/cc/index.adoc +13 -4
- data/assets/data/authclient.html +234 -228
- data/assets/data/banner.html +34 -31
- data/assets/data/cookieconsent.html +249 -0
- data/assets/data/fam.html +5 -0
- data/assets/data/footer.html +4 -0
- data/assets/data/gallery_customizer.html +14 -4
- data/assets/data/menu.html +7 -2
- data/assets/data/mmenu.html +6 -2
- data/assets/data/mmenu_sidebar.html +5 -1
- data/assets/data/mmenu_toc.html +4 -0
- data/assets/data/panel.html +23 -15
- data/assets/data/quicklinks.html +24 -17
- data/assets/error_pages/HTTP204.html +2 -1
- data/assets/error_pages/HTTP400.html +2 -1
- data/assets/error_pages/HTTP401.html +2 -1
- data/assets/error_pages/HTTP403.html +2 -1
- data/assets/error_pages/HTTP404.html +2 -1
- data/assets/error_pages/HTTP500.html +2 -1
- data/assets/error_pages/HTTP501.html +2 -1
- data/assets/error_pages/HTTP502.html +2 -1
- data/assets/error_pages/HTTP503.html +2 -1
- data/assets/error_pages/HTTP520.html +2 -1
- data/assets/error_pages/HTTP521.html +2 -1
- data/assets/error_pages/HTTP533.html +2 -1
- data/assets/themes/j1/adapter/js/{cookiebar.js → cookieConsent.js} +102 -54
- data/assets/themes/j1/adapter/js/j1.js +53 -20
- data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +3 -2
- data/assets/themes/j1/adapter/js/mmenu.js +8 -4
- data/assets/themes/j1/adapter/js/navigator.js +77 -22
- data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.css +17 -14
- data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +3960 -240
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +3 -9
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +3 -9
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/_lightGallery/css/core/lg-fb-comment-box.css +58 -0
- data/assets/themes/j1/modules/_lightGallery/css/core/lg-fb-comment-box.min.css +5 -0
- data/assets/themes/j1/modules/_lightGallery/css/core/lg-transitions.css +778 -0
- data/assets/themes/j1/modules/_lightGallery/css/core/lg-transitions.min.css +5 -0
- data/assets/themes/j1/modules/_lightGallery/css/core/lightgallery.css +981 -0
- data/assets/themes/j1/modules/_lightGallery/css/core/lightgallery.min.css +5 -0
- data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.eot +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.svg +47 -0
- data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.ttf +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/fonts/lg.woff +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/img/loading.gif +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/img/video-play.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/img/vimeo-play.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/img/youtube-play.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/animation-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/customize-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/dynamic-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/facebook-icon.svg +10 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/googleplus-icon.svg +30 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/html5-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/linked-in.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/module-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/play-button.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/responsive-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/thumb-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/touch-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/twitter-icon.svg +15 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/twitter.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/video1-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/zoom-w.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/icons/zoom.png +0 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/uno.css +262 -0
- data/assets/themes/j1/modules/_lightGallery/css/themes/uno.min.css +15 -0
- data/assets/themes/j1/modules/_lightGallery/js/core/lightgallery.js +1362 -0
- data/assets/themes/j1/modules/_lightGallery/js/core/lightgallery.min.js +4 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/j1/j1-video.js +402 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/j1/j1-video.min.js +8 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-autoplay.js +206 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-autoplay.min.js +5 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-fullscreen.js +126 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-fullscreen.min.js +5 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-hash.js +101 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-hash.min.js +5 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-pager.js +105 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-pager.min.js +5 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-share.js +107 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-share.min.js +5 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-thumbnail.js +478 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-thumbnail.min.js +5 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-video.js +342 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-video.min.js +5 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-zoom.js +527 -0
- data/assets/themes/j1/modules/_lightGallery/js/modules/lg-zoom.min.js +5 -0
- data/assets/themes/j1/modules/cookieConsent/LICENSE +21 -0
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +286 -0
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +28 -0
- data/assets/themes/j1/modules/iframeResizer/examples/frame.absolute.html +4 -2
- data/assets/themes/j1/modules/iframeResizer/examples/frame.content.html +4 -3
- data/assets/themes/j1/modules/iframeResizer/examples/frame.hover.html +4 -2
- data/assets/themes/j1/modules/iframeResizer/examples/frame.nested.html +4 -2
- data/assets/themes/j1/modules/iframeResizer/examples/frame.textarea.html +4 -2
- data/assets/themes/j1/modules/iframeResizer/examples/frame.tolerance.html +4 -2
- data/assets/themes/j1/modules/iframeResizer/examples/index.html +2 -0
- data/assets/themes/j1/modules/iframeResizer/examples/two.html +4 -2
- data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery-x.js +1368 -0
- data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery-x.min.js +10 -0
- data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-x-video.js +344 -0
- data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-x-video.min.js +7 -0
- data/assets/themes/j1/modules/util/js/domready.js +146 -0
- data/assets/themes/j1/modules/util/js/gtag-opt-in.js +1 -0
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +74 -77
- data/lib/starter_web/_data/_defaults/resources.yml +11 -8
- data/lib/starter_web/_data/apps/defaults/justifiedGalleryCustomizer.yml +1 -0
- data/lib/starter_web/_data/blocks/banner.yml +30 -24
- data/lib/starter_web/_data/blocks/panel.yml +9 -7
- data/lib/starter_web/_data/builder/blog_navigator.yml +6 -1
- data/lib/starter_web/_data/j1_config.yml +2 -2
- data/lib/starter_web/_data/layouts/blog_archive.yml +9 -0
- data/lib/starter_web/_data/layouts/collection.yml +10 -0
- data/lib/starter_web/_data/layouts/default.yml +25 -59
- data/lib/starter_web/_data/layouts/home.yml +6 -5
- data/lib/starter_web/_data/layouts/page.yml +1 -1
- data/lib/starter_web/_data/modules/{cookiebar.yml → cookieconsent.yml} +4 -4
- data/lib/starter_web/_data/modules/defaults/authentication.yml +1 -0
- data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +135 -0
- data/lib/starter_web/_data/modules/defaults/navigator.yml +5 -2
- data/lib/starter_web/_data/modules/navigator.yml +24 -21
- data/lib/starter_web/_data/modules/navigator_menu.yml +2 -2
- data/lib/starter_web/_data/pages/builder.yml +7 -7
- data/lib/starter_web/_data/private.yml +6 -6
- data/lib/starter_web/_data/resources.yml +13 -8
- data/lib/starter_web/_includes/attributes.asciidoc +10 -1
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/assets/images/modules/attics/christa-dodoo-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/{cookies-1920x1200-bw.jpg → cookies-1920x1200.jpg} +0 -0
- data/lib/starter_web/assets/images/modules/attics/giammarco-boscaro-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/lianhao-1920x1280.jpg +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +3 -9
- data/lib/starter_web/collections/posts/public/featured/_posts/2020-01-01-about-cookies.adoc +4 -11
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-01-site-generators.adoc +1 -8
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-03-about-j1.adoc +2 -8
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +2 -8
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +2 -9
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +2 -9
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +2 -9
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-20-minneapolis.adoc +3 -1
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc +3 -1
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-26-columbia-river.adoc +3 -1
- data/lib/starter_web/index.html +7 -13
- data/lib/starter_web/package.json +3 -3
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/000_intro.adoc +7 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/100_chapter.adoc +5 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/200_chapter.adoc +6 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/900_references.adoc +5 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/book.adoc +6 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/100_chapter.asciidoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/200_chapter.asciidoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +6 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +6 -1
- data/lib/starter_web/pages/public/blog/navigator/archive.html +40 -24
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +48 -28
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +45 -28
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +41 -13
- data/lib/starter_web/pages/public/blog/navigator/index.html +1 -4
- data/lib/starter_web/pages/public/cookieConsent.adoc +93 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.org.asciidoc +244 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +3 -2
- data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +1 -1
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +2 -18
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +7 -5
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +7 -6
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +111 -214
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +7 -5
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +7 -2
- data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +1 -1
- data/lib/starter_web/pages/public/previewer/iframer.adoc +1 -1
- data/lib/starter_web/pages/public/previewer/justified_gallery.html +1 -1
- data/lib/starter_web/pages/public/previewer/md_color_palette.adoc +1 -1
- data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +1 -1
- data/lib/starter_web/pages/public/previewer/rouge.adoc +1 -1
- data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +1 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +74 -14
- data/_includes/themes/j1/modules/connectors/analytic/google-analytics-legacy.html +0 -36
- data/assets/data/cookiebar.html +0 -281
- data/lib/starter_web/_data/_defaults/private.yml +0 -156
- data/lib/starter_web/_data/modules/defaults/cookiebar.yml +0 -132
- data/lib/starter_web/_data/private@default.yml +0 -119
- data/lib/starter_web/_data/private@localhost.yml +0 -156
- data/lib/starter_web/collections/posts/public/series/_posts/_includes/attributes.asciidoc +0 -37
- data/lib/starter_web/collections/posts/public/series/_posts/_includes/documents/readme +0 -0
- data/lib/starter_web/collections/posts/public/series/_posts/_includes/tables/debug_variables.asciidoc +0 -47
@@ -0,0 +1,5 @@
|
|
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}()});
|
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2020 Stefan Haack
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -0,0 +1,286 @@
|
|
1
|
+
/*
|
2
|
+
# -----------------------------------------------------------------------------
|
3
|
+
# ~/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js
|
4
|
+
# Provides JS Core for J1 Module BS Cookie Consent
|
5
|
+
#
|
6
|
+
# Product/Info:
|
7
|
+
# https://shaack.com
|
8
|
+
# http://jekyll.one
|
9
|
+
#
|
10
|
+
# Copyright (C) 2020 Stefan Haack
|
11
|
+
# Copyright (C) 2021 Juergen Adams
|
12
|
+
#
|
13
|
+
# bootstrap-cookie-banner is licensed under MIT License.
|
14
|
+
# See: https://github.com/shaack/bootstrap-cookie-banner/blob/master/LICENSE
|
15
|
+
# J1 Template is licensed under MIT License.
|
16
|
+
# See: https://github.com/jekyll-one/J1 Template/blob/master/LICENSE
|
17
|
+
# -----------------------------------------------------------------------------
|
18
|
+
# TODO:
|
19
|
+
#
|
20
|
+
# -----------------------------------------------------------------------------
|
21
|
+
# NOTE:
|
22
|
+
# BS Cookie Consent is an MODIFIED version of bootstrap-cookie-banner
|
23
|
+
# for the use with J1 Template. This modiefied version cannot be used
|
24
|
+
# outside of J1 Template!
|
25
|
+
# -----------------------------------------------------------------------------
|
26
|
+
*/
|
27
|
+
'use strict';
|
28
|
+
|
29
|
+
// -----------------------------------------------------------------------------
|
30
|
+
// ESLint shimming
|
31
|
+
// -----------------------------------------------------------------------------
|
32
|
+
/* eslint indent: "off" */
|
33
|
+
/* eslint no-unused-vars: "off" */
|
34
|
+
/* eslint no-undef: "off" */
|
35
|
+
/* eslint no-redeclare: "off" */
|
36
|
+
/* eslint indent: "off" */
|
37
|
+
/* eslint JSUnfilteredForInLoop: "off" */
|
38
|
+
// -----------------------------------------------------------------------------
|
39
|
+
|
40
|
+
function BootstrapCookieConsent(props) {
|
41
|
+
var logText;
|
42
|
+
var current_page;
|
43
|
+
var whitelisted;
|
44
|
+
var logger = log4javascript.getLogger('j1.core.bsCookieConsent');
|
45
|
+
var modalId = "bccs-modal"
|
46
|
+
var self = this
|
47
|
+
var detailedSettingsShown = false
|
48
|
+
|
49
|
+
this.props = {
|
50
|
+
autoShowDialog: true, // disable autoShowModal on the privacy policy and legal notice pages, to make these pages readable
|
51
|
+
language: navigator.language, // the language, in which the modal is shown
|
52
|
+
languages: ["en", "de"], // supported languages (in ./content/), defaults to first in array
|
53
|
+
contentURL: "./content", // this URL must contain the dialogs content in the needed languages
|
54
|
+
cookieName: "cookie-consent-settings", // the name of the cookie in which the configuration is stored as JSON
|
55
|
+
cookieStorageDays: 365, // the duration the cookie configuration is stored on the client
|
56
|
+
postSelectionCallback: undefined, // callback function, called after the user has made his selection
|
57
|
+
whitelisted: [], // pages NO consent modal page is issued
|
58
|
+
xhr_data_element: "" // container for the language-specific consent modal taken from /assets/data/cookieconsent.html
|
59
|
+
}
|
60
|
+
|
61
|
+
for (var property in props) {
|
62
|
+
this.props[property] = props[property];
|
63
|
+
}
|
64
|
+
|
65
|
+
this.language = this.props.language
|
66
|
+
if (this.language.indexOf("-") !== -1) {
|
67
|
+
this.language = this.language.split("-")[0];
|
68
|
+
}
|
69
|
+
|
70
|
+
if (!this.props.languages.includes(this.language)) {
|
71
|
+
this.language = this.props.languages[0]; // fallback on default language
|
72
|
+
}
|
73
|
+
|
74
|
+
var Cookie = {
|
75
|
+
set: function (name, value, days) {
|
76
|
+
var value_encoded = window.btoa(value);
|
77
|
+
var expires = "";
|
78
|
+
if (days) {
|
79
|
+
var date = new Date();
|
80
|
+
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
81
|
+
expires = "; expires=" + date.toUTCString();
|
82
|
+
}
|
83
|
+
document.cookie = name + "=" + (value_encoded || "") + expires + "; Path=/; SameSite=Strict;";
|
84
|
+
},
|
85
|
+
get: function (name) {
|
86
|
+
var nameEQ = name + "=";
|
87
|
+
var ca = document.cookie.split(';');
|
88
|
+
for (var i = 0; i < ca.length; i++) {
|
89
|
+
var c = ca[i];
|
90
|
+
while (c.charAt(0) === ' ') {
|
91
|
+
c = c.substring(1, c.length);
|
92
|
+
}
|
93
|
+
if (c.indexOf(nameEQ) === 0) {
|
94
|
+
var value_encoded = c.substring(nameEQ.length, c.length);
|
95
|
+
var value = window.atob(value_encoded);
|
96
|
+
return value;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
return undefined
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
var Events = {
|
104
|
+
documentReady: function (onDocumentReady) {
|
105
|
+
if (document.readyState !== 'loading') {
|
106
|
+
onDocumentReady();
|
107
|
+
} else {
|
108
|
+
document.addEventListener('DOMContentLoaded', onDocumentReady);
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
function showDialog(options) {
|
114
|
+
Events.documentReady(function () {
|
115
|
+
self.modal = document.getElementById(modalId);
|
116
|
+
|
117
|
+
if (!self.modal) {
|
118
|
+
self.modal = document.createElement("div");
|
119
|
+
self.modal.id = modalId;
|
120
|
+
self.modal.setAttribute("class", "modal fade");
|
121
|
+
self.modal.setAttribute("tabindex", "-1");
|
122
|
+
self.modal.setAttribute("role", "dialog");
|
123
|
+
self.modal.setAttribute("aria-labelledby", modalId);
|
124
|
+
document.body.append(self.modal);
|
125
|
+
self.$modal = $(self.modal);
|
126
|
+
|
127
|
+
if (self.props.postSelectionCallback) {
|
128
|
+
self.$modal.on("hidden.bs.modal", function () {
|
129
|
+
self.props.postSelectionCallback();
|
130
|
+
});
|
131
|
+
}
|
132
|
+
|
133
|
+
// load modal content
|
134
|
+
//
|
135
|
+
var templateUrl = self.props.contentURL + '/' + 'index.html';
|
136
|
+
$.get(templateUrl)
|
137
|
+
.done(function (data) {
|
138
|
+
self.modal.innerHTML = data;
|
139
|
+
self.modal.innerHTML = $('#' + self.props.xhr_data_element).eq(0).html();
|
140
|
+
|
141
|
+
$(self.modal).modal({
|
142
|
+
backdrop: "static",
|
143
|
+
keyboard: false
|
144
|
+
});
|
145
|
+
|
146
|
+
self.$buttonDoNotAgree = $("#bccs-buttonDoNotAgree");
|
147
|
+
self.$buttonAgree = $("#bccs-buttonAgree");
|
148
|
+
self.$buttonSave = $("#bccs-buttonSave");
|
149
|
+
self.$buttonAgreeAll = $("#bccs-buttonAgreeAll");
|
150
|
+
|
151
|
+
updateButtons();
|
152
|
+
updateOptionsFromCookie();
|
153
|
+
|
154
|
+
$("#bccs-options").on("hide.bs.collapse", function () {
|
155
|
+
detailedSettingsShown = false;
|
156
|
+
updateButtons();
|
157
|
+
}).on("show.bs.collapse", function () {
|
158
|
+
detailedSettingsShown = true;
|
159
|
+
updateButtons();
|
160
|
+
});
|
161
|
+
self.$buttonDoNotAgree.click(function () {
|
162
|
+
doNotAgree();
|
163
|
+
});
|
164
|
+
self.$buttonAgree.click(function () {
|
165
|
+
agreeAll();
|
166
|
+
});
|
167
|
+
self.$buttonSave.click(function () {
|
168
|
+
$("#bccs-options").collapse('hide');
|
169
|
+
saveSettings();
|
170
|
+
updateOptionsFromCookie();
|
171
|
+
});
|
172
|
+
self.$buttonAgreeAll.click(function () {
|
173
|
+
$("#bccs-options").collapse('hide');
|
174
|
+
agreeAll();
|
175
|
+
updateOptionsFromCookie();
|
176
|
+
});
|
177
|
+
})
|
178
|
+
.fail(function () {
|
179
|
+
logger.error('You probably need to set `contentURL` in the props');
|
180
|
+
})
|
181
|
+
} else {
|
182
|
+
self.$modal.modal("show")
|
183
|
+
}
|
184
|
+
}.bind(this))
|
185
|
+
}
|
186
|
+
|
187
|
+
function updateOptionsFromCookie() {
|
188
|
+
var settings = self.getSettings();
|
189
|
+
if (settings) {
|
190
|
+
for (var setting in settings) {
|
191
|
+
var $checkbox = self.$modal.find("#bccs-options .bccs-option[data-name='" + setting + "'] input[type='checkbox']");
|
192
|
+
$checkbox.prop("checked", settings[setting]);
|
193
|
+
}
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
function updateButtons() {
|
198
|
+
if (detailedSettingsShown) {
|
199
|
+
self.$buttonDoNotAgree.hide();
|
200
|
+
self.$buttonAgree.hide();
|
201
|
+
self.$buttonSave.show();
|
202
|
+
self.$buttonAgreeAll.show();
|
203
|
+
} else {
|
204
|
+
self.$buttonDoNotAgree.show();
|
205
|
+
self.$buttonAgree.show();
|
206
|
+
self.$buttonSave.hide();
|
207
|
+
self.$buttonAgreeAll.hide();
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
function gatherOptions(setAllExceptNecessary) {
|
212
|
+
var $options = self.$modal.find("#bccs-options .bccs-option");
|
213
|
+
var options = {};
|
214
|
+
for (var i = 0; i < $options.length; i++) {
|
215
|
+
var option = $options[i];
|
216
|
+
var name = option.getAttribute("data-name");
|
217
|
+
if (name === "necessary") {
|
218
|
+
options[name] = true;
|
219
|
+
} else if (setAllExceptNecessary === undefined) {
|
220
|
+
var $checkbox = $(option).find("input[type='checkbox']");
|
221
|
+
options[name] = $checkbox.prop("checked");
|
222
|
+
} else {
|
223
|
+
options[name] = !!setAllExceptNecessary;
|
224
|
+
}
|
225
|
+
}
|
226
|
+
return options
|
227
|
+
}
|
228
|
+
|
229
|
+
function agreeAll() {
|
230
|
+
Cookie.set(self.props.cookieName, JSON.stringify(gatherOptions(true)), self.props.cookieStorageDays);
|
231
|
+
self.$modal.modal("hide");
|
232
|
+
}
|
233
|
+
|
234
|
+
function doNotAgree() {
|
235
|
+
Cookie.set(self.props.cookieName, JSON.stringify(gatherOptions(false)), self.props.cookieStorageDays);
|
236
|
+
logger.warn('delete cookie: j1.user.consent');
|
237
|
+
// j1.deleteCookie('j1.user.consent');
|
238
|
+
j1.deleteCookie('all');
|
239
|
+
self.$modal.modal('hide')
|
240
|
+
j1.goHome();
|
241
|
+
}
|
242
|
+
|
243
|
+
function saveSettings() {
|
244
|
+
Cookie.set(self.props.cookieName, JSON.stringify(gatherOptions()), self.props.cookieStorageDays);
|
245
|
+
self.$modal.modal("hide");
|
246
|
+
}
|
247
|
+
|
248
|
+
// call consent dialog if no cookie found (except pages whitelisted)
|
249
|
+
//
|
250
|
+
whitelisted = (this.props.whitelisted.indexOf(window.location.pathname) > -1);
|
251
|
+
if (Cookie.get(this.props.cookieName) === undefined && this.props.autoShowDialog && !whitelisted) {
|
252
|
+
showDialog();
|
253
|
+
}
|
254
|
+
|
255
|
+
// API functions
|
256
|
+
// -------------------------------------------------------------------------
|
257
|
+
|
258
|
+
// show the consent dialog (modal)
|
259
|
+
// -------------------------------------------------------------------------
|
260
|
+
this.showDialog = function () {
|
261
|
+
whitelisted = (this.props.whitelisted.indexOf(window.location.pathname) > -1);
|
262
|
+
if (!whitelisted) {
|
263
|
+
showDialog();
|
264
|
+
}
|
265
|
+
}
|
266
|
+
|
267
|
+
// collect settings from consent cookie
|
268
|
+
// -------------------------------------------------------------------------
|
269
|
+
this.getSettings = function (optionName) {
|
270
|
+
var cookie = Cookie.get(self.props.cookieName);
|
271
|
+
if (cookie) {
|
272
|
+
var settings = JSON.parse(Cookie.get(self.props.cookieName));
|
273
|
+
if (optionName === undefined) {
|
274
|
+
return settings;
|
275
|
+
} else {
|
276
|
+
if (settings) {
|
277
|
+
return settings[optionName];
|
278
|
+
} else {
|
279
|
+
return false;
|
280
|
+
}
|
281
|
+
}
|
282
|
+
} else {
|
283
|
+
return undefined;
|
284
|
+
}
|
285
|
+
}
|
286
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/*
|
2
|
+
# -----------------------------------------------------------------------------
|
3
|
+
# ~/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js
|
4
|
+
# Provides JS Core for J1 Module BS Cookie Consent
|
5
|
+
#
|
6
|
+
# Product/Info:
|
7
|
+
# https://shaack.com
|
8
|
+
# http://jekyll.one
|
9
|
+
#
|
10
|
+
# Copyright (C) 2020 Stefan Haack
|
11
|
+
# Copyright (C) 2021 Juergen Adams
|
12
|
+
#
|
13
|
+
# bootstrap-cookie-banner is licensed under MIT License.
|
14
|
+
# See: https://github.com/shaack/bootstrap-cookie-banner/blob/master/LICENSE
|
15
|
+
# J1 Template is licensed under MIT License.
|
16
|
+
# See: https://github.com/jekyll-one/J1 Template/blob/master/LICENSE
|
17
|
+
# -----------------------------------------------------------------------------
|
18
|
+
# TODO:
|
19
|
+
#
|
20
|
+
# -----------------------------------------------------------------------------
|
21
|
+
# NOTE:
|
22
|
+
# BS Cookie Consent is an MODIFIED version of bootstrap-cookie-banner
|
23
|
+
# for the use with J1 Template. This modiefied version cannot be used
|
24
|
+
# outside of J1 Template!
|
25
|
+
# -----------------------------------------------------------------------------
|
26
|
+
*/
|
27
|
+
|
28
|
+
"use strict";function BootstrapCookieConsent(c){var g;var e;var q;var r=log4javascript.getLogger("j1.core.bsCookieConsent");var p="bccs-modal";var l=this;var n=false;this.props={autoShowDialog:true,language:navigator.language,languages:["en","de"],contentURL:"./content",cookieName:"cookie-consent-settings",cookieStorageDays:365,postSelectionCallback:undefined,whitelisted:[],xhr_data_element:""};for(var d in c){this.props[d]=c[d]}this.language=this.props.language;if(this.language.indexOf("-")!==-1){this.language=this.language.split("-")[0]}if(!this.props.languages.includes(this.language)){this.language=this.props.languages[0]}var f={set:function(u,v,x){var w=window.btoa(v);var s="";if(x){var t=new Date();t.setTime(t.getTime()+(x*24*60*60*1000));s="; expires="+t.toUTCString()}document.cookie=u+"="+(w||"")+s+"; Path=/; SameSite=Strict;"},get:function(t){var w=t+"=";var s=document.cookie.split(";");for(var u=0;u<s.length;u++){var y=s[u];while(y.charAt(0)===" "){y=y.substring(1,y.length)}if(y.indexOf(w)===0){var x=y.substring(w.length,y.length);var v=window.atob(x);return v}}return undefined}};var k={documentReady:function(s){if(document.readyState!=="loading"){s()}else{document.addEventListener("DOMContentLoaded",s)}}};function j(s){k.documentReady(function(){l.modal=document.getElementById(p);if(!l.modal){l.modal=document.createElement("div");l.modal.id=p;l.modal.setAttribute("class","modal fade");l.modal.setAttribute("tabindex","-1");l.modal.setAttribute("role","dialog");l.modal.setAttribute("aria-labelledby",p);document.body.append(l.modal);l.$modal=$(l.modal);if(l.props.postSelectionCallback){l.$modal.on("hidden.bs.modal",function(){l.props.postSelectionCallback()})}var t=l.props.contentURL+"/index.html";$.get(t).done(function(u){l.modal.innerHTML=u;l.modal.innerHTML=$("#"+l.props.xhr_data_element).eq(0).html();$(l.modal).modal({backdrop:"static",keyboard:false});l.$buttonDoNotAgree=$("#bccs-buttonDoNotAgree");l.$buttonAgree=$("#bccs-buttonAgree");l.$buttonSave=$("#bccs-buttonSave");l.$buttonAgreeAll=$("#bccs-buttonAgreeAll");i();h();$("#bccs-options").on("hide.bs.collapse",function(){n=false;i()}).on("show.bs.collapse",function(){n=true;i()});l.$buttonDoNotAgree.click(function(){b()});l.$buttonAgree.click(function(){m()});l.$buttonSave.click(function(){$("#bccs-options").collapse("hide");o();h()});l.$buttonAgreeAll.click(function(){$("#bccs-options").collapse("hide");m();h()})}).fail(function(){r.error("You probably need to set `contentURL` in the props")})}else{l.$modal.modal("show")}}.bind(this))}function h(){var u=l.getSettings();if(u){for(var t in u){var s=l.$modal.find("#bccs-options .bccs-option[data-name='"+t+"'] input[type='checkbox']");s.prop("checked",u[t])}}}function i(){if(n){l.$buttonDoNotAgree.hide();l.$buttonAgree.hide();l.$buttonSave.show();l.$buttonAgreeAll.show()}else{l.$buttonDoNotAgree.show();l.$buttonAgree.show();l.$buttonSave.hide();l.$buttonAgreeAll.hide()}}function a(t){var s=l.$modal.find("#bccs-options .bccs-option");var v={};for(var w=0;w<s.length;w++){var y=s[w];var u=y.getAttribute("data-name");if(u==="necessary"){v[u]=true}else{if(t===undefined){var x=$(y).find("input[type='checkbox']");v[u]=x.prop("checked")}else{v[u]=!!t}}}return v}function m(){f.set(l.props.cookieName,JSON.stringify(a(true)),l.props.cookieStorageDays);l.$modal.modal("hide")}function b(){f.set(l.props.cookieName,JSON.stringify(a(false)),l.props.cookieStorageDays);r.warn("delete cookie: j1.user.consent");j1.deleteCookie("all");l.$modal.modal("hide");j1.goHome()}function o(){f.set(l.props.cookieName,JSON.stringify(a()),l.props.cookieStorageDays);l.$modal.modal("hide")}q=(this.props.whitelisted.indexOf(window.location.pathname)>-1);if(f.get(this.props.cookieName)===undefined&&this.props.autoShowDialog&&!q){j()}this.showDialog=function(){q=(this.props.whitelisted.indexOf(window.location.pathname)>-1);if(!q){j()}};this.getSettings=function(t){var s=f.get(l.props.cookieName);if(s){var u=JSON.parse(f.get(l.props.cookieName));if(t===undefined){return u}else{if(u){return u[t]}else{return false}}}else{return undefined}}};
|
@@ -2,10 +2,12 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8" />
|
5
|
-
<title>iFrame message passing test</title>
|
6
|
-
<meta name="description" content="iFrame message passing test" />
|
5
|
+
<title>iFrame message passing test 1</title>
|
6
|
+
<meta name="description" content="iFrame message passing test 1" />
|
7
7
|
<meta name="viewport" content="width=device-width" />
|
8
8
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
9
|
+
<meta name="robots" content="noindex">
|
10
|
+
<meta name="robots" content="nofollow">
|
9
11
|
<style>
|
10
12
|
a.back {
|
11
13
|
float: right;
|
@@ -2,10 +2,11 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8" />
|
5
|
-
<title>iFrame message passing test</title>
|
6
|
-
<meta name="description" content="iFrame message passing test" />
|
5
|
+
<title>iFrame message passing test 2</title>
|
6
|
+
<meta name="description" content="iFrame message passing test 2" />
|
7
7
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
8
|
-
|
8
|
+
<meta name="robots" content="noindex">
|
9
|
+
<meta name="robots" content="nofollow">
|
9
10
|
<style>
|
10
11
|
*,
|
11
12
|
*:before,
|
@@ -2,9 +2,11 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8" />
|
5
|
-
<title>iFrame message passing test</title>
|
6
|
-
<meta name="description" content="iFrame message passing test" />
|
5
|
+
<title>iFrame message passing test 3</title>
|
6
|
+
<meta name="description" content="iFrame message passing test 3" />
|
7
7
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
8
|
+
<meta name="robots" content="noindex">
|
9
|
+
<meta name="robots" content="nofollow">
|
8
10
|
<style>
|
9
11
|
a {
|
10
12
|
float: right;
|
@@ -2,10 +2,12 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8" />
|
5
|
-
<title>iFrame message passing test</title>
|
6
|
-
<meta name="description" content="iFrame message passing test" />
|
5
|
+
<title>iFrame message passing test 4</title>
|
6
|
+
<meta name="description" content="iFrame message passing test 4" />
|
7
7
|
<meta name="viewport" content="width=device-width" />
|
8
8
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
9
|
+
<meta name="robots" content="noindex">
|
10
|
+
<meta name="robots" content="nofollow">
|
9
11
|
<style>
|
10
12
|
*,
|
11
13
|
*:before,
|
@@ -2,9 +2,11 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8" />
|
5
|
-
<title>iFrame message passing test</title>
|
6
|
-
<meta name="description" content="iFrame message passing test" />
|
5
|
+
<title>iFrame message passing test 5</title>
|
6
|
+
<meta name="description" content="iFrame message passing test 5" />
|
7
7
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
8
|
+
<meta name="robots" content="noindex">
|
9
|
+
<meta name="robots" content="nofollow">
|
8
10
|
<style>
|
9
11
|
a {
|
10
12
|
float: right;
|
@@ -2,8 +2,10 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8" />
|
5
|
-
<title>iFrame message passing test</title>
|
6
|
-
<meta name="description" content="iFrame message passing test" />
|
5
|
+
<title>iFrame message passing test 6</title>
|
6
|
+
<meta name="description" content="iFrame message passing test 6" />
|
7
|
+
<meta name="robots" content="noindex">
|
8
|
+
<meta name="robots" content="nofollow">
|
7
9
|
<style>
|
8
10
|
a.back {
|
9
11
|
float: right;
|
@@ -6,6 +6,8 @@
|
|
6
6
|
<meta name="description" content="iFrame message passing test" />
|
7
7
|
<meta name="viewport" content="width=device-width" />
|
8
8
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
9
|
+
<meta name="robots" content="noindex">
|
10
|
+
<meta name="robots" content="nofollow">
|
9
11
|
</head>
|
10
12
|
|
11
13
|
<body>
|