j1-template 2020.0.5 → 2020.0.10
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/content_generator_post.html +2 -2
- data/_includes/themes/j1/modules/navigator/generator.html +8 -8
- data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +8 -3
- data/_includes/themes/j1/procedures/layouts/module_writer.proc +1 -1
- data/{lib/starter_web/apps → apps}/public/cc/cc.yml +0 -0
- data/{lib/starter_web/apps → apps}/public/cc/index.adoc +0 -0
- data/assets/data/mmenu.html +1 -1
- data/assets/data/mmenu_sidebar.html +1 -1
- data/assets/data/mmenu_toc.html +1 -1
- data/assets/data/search.yml +32 -10
- data/assets/data/ssm.html +16 -12
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/algolia.js +24 -16
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/attic.js +35 -34
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/carousel.js +34 -23
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/cookie_consent.js +8 -0
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/framer.js +11 -4
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/gallery_customizer.js +16 -8
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/j1.js +87 -139
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/justified_gallery.js +50 -33
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/lightbox.js +9 -1
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/logger.js +12 -4
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/mmenu.js +35 -14
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/navigator.js +77 -75
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/searcher.js +10 -2
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/ssm.js +89 -69
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/themer.js +11 -3
- data/{lib/starter_web/assets → assets}/themes/j1/adapter/js/toccer.js +54 -156
- data/assets/themes/j1/core/css/theme_extensions.css +599 -118
- data/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
- data/assets/themes/j1/core/css/uno.css +609 -118
- data/assets/themes/j1/core/css/uno.min.css +1 -1
- data/assets/themes/j1/core/css/vendor.css +4 -1
- data/assets/themes/j1/core/css/vendor.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +40 -30
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +1 -1
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/carousel.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/carousel.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/carousel_transitions.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/carousel_transitions.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/theme/uno.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/css/theme/uno.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/images/ajax-loader.gif +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/images/grabbing.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/images/owl-logo.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/images/owl.video.play.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/js/carousel.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/carousel/js/carousel.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iconify/js/iconify.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.absolute.html +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.content.html +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.hover.html +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.nested.html +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.textarea.html +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/frame.tolerance.html +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/index.html +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/examples/two.html +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.map +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/iframe_resizer/js/client/iframeResizer.contentWindow.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/LICENSE +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/README.md +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/justifiedGallery.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/justifiedGallery.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/css/theme/uno.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.3.7.0.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/js/justifiedGallery.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/less/.csslintrc +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v3.7.0/less/justifiedGallery.less +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/justifiedGallery.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/justifiedGallery.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/css/theme/uno.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/js/jquery.justifiedGallery.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/_versions/v4.0.0/js/jquery.justifiedGallery.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/css/justifiedGallery.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/css/justifiedGallery.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/css/theme/uno.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/css/theme/uno.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/js/justifiedGallery.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/justified_gallery/js/justifiedGallery.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lg-fb-comment-box.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lg-fb-comment-box.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lg-transitions.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lg-transitions.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lightgallery.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/core/lightgallery.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/fonts/lg.eot +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/fonts/lg.svg +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/fonts/lg.ttf +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/fonts/lg.woff +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/img/loading.gif +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/img/video-play.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/img/vimeo-play.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/img/youtube-play.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/animation-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/customize-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/dynamic-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/facebook-icon.svg +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/googleplus-icon.svg +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/html5-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/linked-in.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/module-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/play-button.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/responsive-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/thumb-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/touch-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/twitter-icon.svg +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/twitter.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/video1-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/zoom-w.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/icons/zoom.png +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/uno.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/css/themes/uno.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/core/lightgallery.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/core/lightgallery.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/j1/j1-video.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/j1/j1-video.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-autoplay.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-autoplay.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-fullscreen.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-fullscreen.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-hash.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-hash.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-pager.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-pager.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-share.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-share.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-thumbnail.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-thumbnail.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-video.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-video.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-zoom.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/light_gallery/js/modules/lg-zoom.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/log4javascript/log4javascript.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/log4javascript/log4javascript.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.dark/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.light/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.monokai.dark/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.monokai.light/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.monokai/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.solarized.dark/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.solarized.light/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16.solarized/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/base16/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/colorful/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/github/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/gruvbox.dark/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/gruvbox.light/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/gruvbox/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/igorpro/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/molokai/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/monokai.sublime/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/monokai/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/pastie/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/thankful_eyes/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/rouge/css/tulip/theme.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/city.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/city.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/fantasy.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/fantasy.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/forest.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/forest.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/sea.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/themes/sea.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/video-js.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/css/video-js.min.css +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/js/video.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/videojs/js/video.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/froogaloop/js/froogaloop2.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/player/js/player.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/player/js/player.js.map +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/player/js/player.min.js +0 -0
- data/{lib/starter_web/assets → assets}/themes/j1/extensions/vimeo/player/js/player.min.js.map +0 -0
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +2 -2
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/navigator.yml +4 -3
- data/lib/starter_web/_data/modules/defaults/ssm.yml +3 -3
- data/lib/starter_web/_data/modules/defaults/toccer.yml +9 -14
- data/lib/starter_web/_data/modules/jekyll_search.yml +3 -2
- data/lib/starter_web/_data/modules/navigator.yml +4 -1
- data/lib/starter_web/_data/modules/ssm.yml +10 -1
- data/lib/starter_web/_data/modules/toccer.yml +15 -63
- data/lib/starter_web/_data/resources.yml +5 -54
- data/lib/starter_web/_data/template_settings.yml +13 -13
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/about/about_site.adoc +3 -3
- data/lib/starter_web/pages/public/about/become_a_patron.adoc +9 -11
- data/lib/starter_web/pages/public/clear_button.adoc +121 -0
- data/lib/starter_web/pages/public/learn/kickstarter/web_in_a_day/100_meet_and_greet_jekyll.adoc +9 -4
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +6 -7
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +7 -3
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +22 -24
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +27 -30
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +54 -48
- data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +5 -3
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +159 -175
- data/assets/themes/j1/core/css/globals.scss +0 -28
- data/lib/starter_web/_data/modules/back2top.yml +0 -40
- data/lib/starter_web/_data/modules/defaults/back2top.yml +0 -147
- data/lib/starter_web/_data/modules/defaults/smooth_scroll.yml +0 -169
- data/lib/starter_web/_data/modules/navigator.yml.new +0 -232
- data/lib/starter_web/_data/modules/smooth_scroll.yml +0 -169
- data/lib/starter_web/assets/themes/j1/adapter/js/back2top.js +0 -227
- data/lib/starter_web/assets/themes/j1/adapter/js/mmenu.js.new +0 -432
- data/lib/starter_web/assets/themes/j1/adapter/js/scroller.js +0 -177
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.css +0 -384
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.min.css +0 -384
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.css +0 -95
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.min.css +0 -95
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.js +0 -11
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.min.js +0 -11
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.js +0 -118
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.min.js +0 -118
@@ -64,6 +64,12 @@ regenerate: true
|
|
64
64
|
# Adapter generated: {{site.time}}
|
65
65
|
# -----------------------------------------------------------------------------
|
66
66
|
*/
|
67
|
+
|
68
|
+
// -----------------------------------------------------------------------------
|
69
|
+
// ESLint shimming
|
70
|
+
// -----------------------------------------------------------------------------
|
71
|
+
/* eslint indent: "off" */
|
72
|
+
// -----------------------------------------------------------------------------
|
67
73
|
'use strict';
|
68
74
|
|
69
75
|
{% comment %} Main
|
@@ -102,7 +108,9 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
102
108
|
{% comment %} Load module config from yml data
|
103
109
|
-------------------------------------------------------------------------- {% endcomment %}
|
104
110
|
// Load module DEFAULTS|CONFIG
|
111
|
+
/* eslint-disable */
|
105
112
|
moduleOptions = $.extend({}, {{carousel_options | replace: '=>', ':' | replace: 'nil', '""'}});
|
113
|
+
/* eslint-enable */
|
106
114
|
|
107
115
|
if (typeof settings !== 'undefined') {
|
108
116
|
moduleOptions = j1.mergeData(moduleOptions, settings);
|
@@ -141,7 +149,7 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
141
149
|
{% if item.show.slide_height != null %}
|
142
150
|
// Set slide_height: {{item.show.slide_height}}vh
|
143
151
|
{% assign slide_height = item.show.slide_height %}
|
144
|
-
$('head').append(
|
152
|
+
$('head').append('<style>.owl-carousel .item{height: {{slide_height}}vh;}</style>');
|
145
153
|
{% endif %}
|
146
154
|
|
147
155
|
{% if item.show.slide_space_between %}
|
@@ -173,12 +181,13 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
173
181
|
$('head').append('<style>.parallax-slider__owl_demo_text_carousel_parallax:after{top:0;left:0;width:100%;height:100%;content:" ";position:absolute;background:rgba(0,0,0,0.3)}</style>');
|
174
182
|
{% endif %}
|
175
183
|
|
176
|
-
$('head').append(
|
184
|
+
$('head').append('<style>.{{slider_id}}-item{margin: {{slide_space}}px;}</style>');
|
177
185
|
//$('.{{slider_id}}-item').parent().addClass('owl-carousel');
|
178
186
|
//$('.owl-carousel .item').css('margin','{{slide_space}}px');
|
179
187
|
|
180
188
|
// Initialize individual show parameters
|
181
|
-
|
189
|
+
/* eslint-disable */
|
190
|
+
$('#{{slider_id}}').owlCarousel({
|
182
191
|
{% for option in item.show.options %}
|
183
192
|
{{option[0] | json}}: {{option[1] | json}},
|
184
193
|
{% endfor %}
|
@@ -189,29 +198,31 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
189
198
|
"jsonPath": {{carousel_options.xhr_data_path | json}},
|
190
199
|
"jsonSuccess": customDataSuccess_{{forloop.index}}
|
191
200
|
});
|
201
|
+
/* eslint-enable */
|
202
|
+
|
192
203
|
// Initialize instance variable (for later access)
|
193
204
|
//{{slider_id}} = $('#{{slider_id}}').data('owlCarousel');
|
194
205
|
|
195
|
-
j1[
|
206
|
+
j1['{{slider_id}}'] = $('#{{slider_id}}').data('owlCarousel');
|
196
207
|
|
197
208
|
// jQuery show data functions
|
198
209
|
function customDataSuccess_{{forloop.index}}(data){
|
199
|
-
var content =
|
200
|
-
for (var i in data[
|
210
|
+
var content = '';
|
211
|
+
for (var i in data['{{slider_id}}']) {
|
201
212
|
{% if slider_type == 'image' %}
|
202
|
-
var lb = data[
|
203
|
-
var lb_caption = data[
|
204
|
-
var img = data[
|
205
|
-
var alt = data[
|
213
|
+
var lb = data['{{slider_id}}'][i].lb;
|
214
|
+
var lb_caption = data['{{slider_id}}'][i].lb_caption;
|
215
|
+
var img = data['{{slider_id}}'][i].img;
|
216
|
+
var alt = data['{{slider_id}}'][i].alt;
|
206
217
|
{% endif %}
|
207
218
|
{% if slider_type == 'text' %}
|
208
|
-
var text = data[
|
219
|
+
var text = data['{{slider_id}}'][i].text;
|
209
220
|
{% endif %}
|
210
|
-
var href = data[
|
221
|
+
var href = data['{{slider_id}}'][i].href;
|
211
222
|
{% if css_classes %}
|
212
|
-
var css_classes = 'class="{{css_classes}}";'
|
223
|
+
var css_classes = 'class="{{css_classes}}";';
|
213
224
|
{% else %}
|
214
|
-
var css_classes = ''
|
225
|
+
var css_classes = '';
|
215
226
|
{% endif %}
|
216
227
|
|
217
228
|
{% if slider_type == 'image' %}
|
@@ -229,24 +240,24 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
229
240
|
}
|
230
241
|
content += '\t\t' + '</div>' + '\n';
|
231
242
|
} else {
|
232
|
-
content += '<a class="item" href="' +img+ '" ' + 'data-lightbox="{{slider_id}}"> <img class="lazyOwl" data-src="' +img+ '" alt="' +alt+ '">' + '</a>'
|
243
|
+
content += '<a class="item" href="' +img+ '" ' + 'data-lightbox="{{slider_id}}"> <img class="lazyOwl" data-src="' +img+ '" alt="' +alt+ '">' + '</a>';
|
233
244
|
}
|
234
245
|
} else if (href) {
|
235
|
-
content += '<div class="item">' + '<img ' +css_classes+ ' src="' +img+ '" alt="' +alt+ '">' + '</div>'
|
246
|
+
content += '<div class="item">' + '<img ' +css_classes+ ' src="' +img+ '" alt="' +alt+ '">' + '</div>';
|
236
247
|
} else {
|
237
|
-
content += '<div class="item">' + '<img ' +css_classes+ ' src="' +img+ '" alt="' +alt+ '">' + '</div>'
|
248
|
+
content += '<div class="item">' + '<img ' +css_classes+ ' src="' +img+ '" alt="' +alt+ '">' + '</div>';
|
238
249
|
}
|
239
250
|
{% endif %}
|
240
251
|
|
241
252
|
{% if slider_type == 'text' %}
|
242
253
|
if (href) {
|
243
|
-
content += '<div class="item">' + '<p href=' +href+ '">' +text+ '</p>' + '</div>'
|
254
|
+
content += '<div class="item">' + '<p href=' +href+ '">' +text+ '</p>' + '</div>';
|
244
255
|
} else {
|
245
|
-
content += '<div class="item">' + '<p>' +text+ '</p>' + '</div>'
|
256
|
+
content += '<div class="item">' + '<p>' +text+ '</p>' + '</div>';
|
246
257
|
}
|
247
258
|
{% endif %}
|
248
259
|
}
|
249
|
-
$(
|
260
|
+
$('#{{slider_id}}').html(content);
|
250
261
|
logText = 'initializing slider finished on id: {{slider_id}}';
|
251
262
|
logger.info(logText);
|
252
263
|
} // END customDataSuccess_{{forloop.index}}
|
@@ -293,7 +304,7 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
293
304
|
// Set the current (processing) state of the module
|
294
305
|
// -------------------------------------------------------------------------
|
295
306
|
setState: function (stat) {
|
296
|
-
j1.adapter.
|
307
|
+
j1.adapter.carousel.state = stat;
|
297
308
|
}, // END setState
|
298
309
|
|
299
310
|
// -------------------------------------------------------------------------
|
@@ -301,7 +312,7 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
301
312
|
// Returns the current (processing) state of the module
|
302
313
|
// -------------------------------------------------------------------------
|
303
314
|
getState: function () {
|
304
|
-
return j1.adapter.
|
315
|
+
return j1.adapter.carousel.state;
|
305
316
|
} // END state
|
306
317
|
|
307
318
|
}; // END return
|
@@ -310,4 +321,4 @@ j1.adapter['carousel'] = (function (j1, window) {
|
|
310
321
|
|
311
322
|
{% endcapture %}
|
312
323
|
{{cache | strip_empty_lines}}
|
313
|
-
{% assign cache = nil %}
|
324
|
+
{% assign cache = nil %}
|
@@ -66,6 +66,12 @@ regenerate: false
|
|
66
66
|
# Adapter generated: {{site.time}}
|
67
67
|
# -----------------------------------------------------------------------------
|
68
68
|
*/
|
69
|
+
|
70
|
+
// -----------------------------------------------------------------------------
|
71
|
+
// ESLint shimming
|
72
|
+
// -----------------------------------------------------------------------------
|
73
|
+
/* eslint indent: "off" */
|
74
|
+
// -----------------------------------------------------------------------------
|
69
75
|
'use strict';
|
70
76
|
|
71
77
|
j1.adapter['cookie_consent'] = (function (j1, window) {
|
@@ -126,7 +132,9 @@ j1.adapter['cookie_consent'] = (function (j1, window) {
|
|
126
132
|
// -----------------------------------------------------------------------
|
127
133
|
// options loader
|
128
134
|
// -----------------------------------------------------------------------
|
135
|
+
/* eslint-disable */
|
129
136
|
moduleOptions = $.extend({}, {{consent_options | replace: '=>', ':' | replace: 'nil', '""'}});
|
137
|
+
/* eslint-enable */
|
130
138
|
|
131
139
|
if (typeof options !== 'undefined') {
|
132
140
|
moduleOptions = j1.mergeData(moduleOptions, settings);
|
@@ -71,6 +71,12 @@ regenerate: false
|
|
71
71
|
# Adapter generated: {{site.time}}
|
72
72
|
# -----------------------------------------------------------------------------
|
73
73
|
*/
|
74
|
+
|
75
|
+
// -----------------------------------------------------------------------------
|
76
|
+
// ESLint shimming
|
77
|
+
// -----------------------------------------------------------------------------
|
78
|
+
/* eslint indent: "off" */
|
79
|
+
// -----------------------------------------------------------------------------
|
74
80
|
'use strict';
|
75
81
|
|
76
82
|
{% comment %} Main
|
@@ -112,8 +118,9 @@ j1.adapter['framer'] = (function (j1, window) {
|
|
112
118
|
{% comment %} Load module config from yml data
|
113
119
|
-------------------------------------------------------------------------- {% endcomment %}
|
114
120
|
// Load module DEFAULTS|CONFIG
|
115
|
-
|
121
|
+
/* eslint-disable */
|
116
122
|
moduleOptions = $.extend({}, {{framer_options | replace: '=>', ':' | replace: 'nil', '""'}});
|
123
|
+
/* eslint-enable */
|
117
124
|
|
118
125
|
if (typeof settings !== 'undefined') {
|
119
126
|
moduleOptions = j1.mergeData(moduleOptions, settings);
|
@@ -189,7 +196,7 @@ j1.adapter['framer'] = (function (j1, window) {
|
|
189
196
|
// Set the current (processing) state of the module
|
190
197
|
// -------------------------------------------------------------------------
|
191
198
|
setState: function (stat) {
|
192
|
-
j1.adapter.
|
199
|
+
j1.adapter.framer.state = stat;
|
193
200
|
}, // END setState
|
194
201
|
|
195
202
|
// -------------------------------------------------------------------------
|
@@ -197,7 +204,7 @@ j1.adapter['framer'] = (function (j1, window) {
|
|
197
204
|
// Returns the current (processing) state of the module
|
198
205
|
// -------------------------------------------------------------------------
|
199
206
|
getState: function () {
|
200
|
-
return j1.adapter.
|
207
|
+
return j1.adapter.framer.state;
|
201
208
|
} // END state
|
202
209
|
|
203
210
|
}; // END return
|
@@ -205,4 +212,4 @@ j1.adapter['framer'] = (function (j1, window) {
|
|
205
212
|
|
206
213
|
{% endcapture %}
|
207
214
|
{{ cache | strip_empty_lines }}
|
208
|
-
{% assign cache = nil %}
|
215
|
+
{% assign cache = nil %}
|
@@ -86,6 +86,12 @@ regenerate: false
|
|
86
86
|
# Adapter generated: {{site.time}}
|
87
87
|
# -----------------------------------------------------------------------------
|
88
88
|
*/
|
89
|
+
|
90
|
+
// -----------------------------------------------------------------------------
|
91
|
+
// ESLint shimming
|
92
|
+
// -----------------------------------------------------------------------------
|
93
|
+
/* eslint indent: "off" */
|
94
|
+
// -----------------------------------------------------------------------------
|
89
95
|
'use strict';
|
90
96
|
|
91
97
|
{% comment %} Main
|
@@ -108,7 +114,7 @@ j1.adapter['gallery_customizer'] = (function (j1, window) {
|
|
108
114
|
// See: https://stackoverflow.com/questions/359788/how-to-execute-a-javascript-function-when-i-have-its-name-as-a-string
|
109
115
|
//
|
110
116
|
var args = Array.prototype.slice.call(arguments, 2);
|
111
|
-
var namespaces = functionName.split(
|
117
|
+
var namespaces = functionName.split('.');
|
112
118
|
var func = namespaces.pop();
|
113
119
|
for(var i = 0; i < namespaces.length; i++) {
|
114
120
|
context = context[namespaces[i]];
|
@@ -138,8 +144,10 @@ j1.adapter['gallery_customizer'] = (function (j1, window) {
|
|
138
144
|
|
139
145
|
{% comment %} Load gallery config from yml data
|
140
146
|
-------------------------------------------------------------------------- {% endcomment %}
|
147
|
+
/* eslint-disable */
|
141
148
|
galleryOptions = $.extend({}, {{gallery_options | replace: '=>', ':' | replace: 'nil', '""'}});
|
142
149
|
customizerOptions = $.extend({}, {{customizer_options | replace: '=>', ':' | replace: 'nil', '""'}});
|
150
|
+
/* eslint-enable */
|
143
151
|
|
144
152
|
{% comment %} Set global variables
|
145
153
|
-------------------------------------------------------------------------- {% endcomment %}
|
@@ -186,7 +194,7 @@ j1.adapter['gallery_customizer'] = (function (j1, window) {
|
|
186
194
|
if ($formId.length) {
|
187
195
|
var timerid;
|
188
196
|
|
189
|
-
$(
|
197
|
+
$('input[name="rowHeight"]').on('input', function (e) {
|
190
198
|
var value = $(this).val();
|
191
199
|
|
192
200
|
if (value < imageHeightMin) { return false; }
|
@@ -272,7 +280,7 @@ j1.adapter['gallery_customizer'] = (function (j1, window) {
|
|
272
280
|
});
|
273
281
|
|
274
282
|
$('input:checkbox[name="random"]').on('click', function (e) {
|
275
|
-
var value = $(this).is(
|
283
|
+
var value = $(this).is(':checked');
|
276
284
|
|
277
285
|
$instance.justifiedGallery({randomize: value});
|
278
286
|
if(environment === 'development') {
|
@@ -300,7 +308,7 @@ j1.adapter['gallery_customizer'] = (function (j1, window) {
|
|
300
308
|
});
|
301
309
|
|
302
310
|
$('input:checkbox[name="hide_last_row"]').on('click', function (e) {
|
303
|
-
var value = $(this).is(
|
311
|
+
var value = $(this).is(':checked');
|
304
312
|
|
305
313
|
if (value == true) {
|
306
314
|
value = 'hide';
|
@@ -322,10 +330,10 @@ j1.adapter['gallery_customizer'] = (function (j1, window) {
|
|
322
330
|
$('#rowHeightMax').val(customizerOptions.gallery_settings.maxRowHeight);
|
323
331
|
$('#margins').val(customizerOptions.gallery_settings.margins);
|
324
332
|
$('#border').val(customizerOptions.gallery_settings.border);
|
325
|
-
$('input:checkbox[name="captions"]').val(
|
326
|
-
$('input:checkbox[name="random"]').val(
|
327
|
-
$('input:checkbox[name="justify_last_row"]').val(
|
328
|
-
$('input:checkbox[name="hide_last_row"]').val(
|
333
|
+
$('input:checkbox[name="captions"]').val('on').filter('[value="on"]').prop('checked', customizerOptions.gallery_settings.captions);
|
334
|
+
$('input:checkbox[name="random"]').val('off').filter('[value="off"]').prop('checked', customizerOptions.gallery_settings.randomize);
|
335
|
+
$('input:checkbox[name="justify_last_row"]').val('on').filter('[value="on"]').prop('checked', customizerOptions.gallery_settings.justifyLastRow);
|
336
|
+
$('input:checkbox[name="hide_last_row"]').val('off').filter('[value="off"]').prop('checked', customizerOptions.gallery_settings.hideLastRow);
|
329
337
|
|
330
338
|
$instance.justifiedGallery({
|
331
339
|
rowHeight: customizerOptions.gallery_settings.rowHeight,
|
@@ -96,6 +96,12 @@ regenerate: true
|
|
96
96
|
# Adapter generated: {{site.time}}
|
97
97
|
# -----------------------------------------------------------------------------
|
98
98
|
*/
|
99
|
+
|
100
|
+
// -----------------------------------------------------------------------------
|
101
|
+
// ESLint shimming
|
102
|
+
// -----------------------------------------------------------------------------
|
103
|
+
/* eslint indent: "off" */
|
104
|
+
// -----------------------------------------------------------------------------
|
99
105
|
'use strict';
|
100
106
|
|
101
107
|
var j1 = (function () {
|
@@ -121,7 +127,7 @@ var j1 = (function () {
|
|
121
127
|
var user_session_detected;
|
122
128
|
|
123
129
|
// Connector settings
|
124
|
-
var translation_enabled = {{template_config.translation.enabled}}
|
130
|
+
var translation_enabled = {{template_config.translation.enabled}};
|
125
131
|
|
126
132
|
// Theme information
|
127
133
|
var themeName;
|
@@ -155,7 +161,7 @@ var j1 = (function () {
|
|
155
161
|
'app_session': '{{template_config.cookies.app_session}}',
|
156
162
|
'user_session': '{{template_config.cookies.user_session}}',
|
157
163
|
'user_state': '{{template_config.cookies.user_state}}'
|
158
|
-
}
|
164
|
+
};
|
159
165
|
|
160
166
|
// user SESSION cookie (initial values)
|
161
167
|
var user_session = {
|
@@ -202,7 +208,7 @@ var j1 = (function () {
|
|
202
208
|
// See: https://stackoverflow.com/questions/359788/how-to-execute-a-javascript-function-when-i-have-its-name-as-a-string
|
203
209
|
//
|
204
210
|
var args = Array.prototype.slice.call(arguments, 2);
|
205
|
-
var namespaces = functionName.split(
|
211
|
+
var namespaces = functionName.split('.');
|
206
212
|
var func = namespaces.pop();
|
207
213
|
for(var i = 0; i < namespaces.length; i++) {
|
208
214
|
context = context[namespaces[i]];
|
@@ -224,7 +230,7 @@ var j1 = (function () {
|
|
224
230
|
// global var (function)
|
225
231
|
// -----------------------------------------------------------------------
|
226
232
|
var logger = log4javascript.getLogger('j1.init');
|
227
|
-
var url = new parseURL(window.location.href)
|
233
|
+
var url = new parseURL(window.location.href);
|
228
234
|
var baseUrl = url.origin;
|
229
235
|
var epoch = Math.floor(Date.now()/1000);
|
230
236
|
var timestamp_now = moment.unix(epoch).format('YYYY-MM-DD HH:mm:ss');
|
@@ -289,19 +295,11 @@ var j1 = (function () {
|
|
289
295
|
user_state.session_active = false;
|
290
296
|
user_state.last_session_ts = timestamp_now;
|
291
297
|
|
292
|
-
// DANGEROUS (??): delete user session in browser using MULTI_TAB!
|
293
|
-
// if (j1.existsCookie(cookie_names.user_session)) {
|
294
|
-
// var bla = cookie_names.user_session;
|
295
|
-
// j1.deleteCookie(cookie_names.user_session)
|
296
|
-
// }
|
297
|
-
|
298
298
|
j1.writeCookie({
|
299
299
|
name: cookie_user_state_name,
|
300
300
|
data: user_state,
|
301
301
|
expires: 365
|
302
302
|
});
|
303
|
-
|
304
|
-
|
305
303
|
});
|
306
304
|
|
307
305
|
// -----------------------------------------------------------------------
|
@@ -420,8 +418,8 @@ var j1 = (function () {
|
|
420
418
|
var logger = log4javascript.getLogger('j1.init');
|
421
419
|
|
422
420
|
if ( settings.scrollbar === 'false' ) {
|
423
|
-
$('body').addClass(
|
424
|
-
$('html').addClass(
|
421
|
+
$('body').addClass('hide-scrollbar');
|
422
|
+
$('html').addClass('hide-scrollbar-moz');
|
425
423
|
}
|
426
424
|
|
427
425
|
logger.info('read user state from cookie');
|
@@ -529,6 +527,11 @@ var j1 = (function () {
|
|
529
527
|
logger.error(logText);
|
530
528
|
});
|
531
529
|
|
530
|
+
// -----------------------------------------------------------------------
|
531
|
+
// additional BS helpers from j1.core
|
532
|
+
// -----------------------------------------------------------------------
|
533
|
+
j1.core.bsFormClearButton();
|
534
|
+
|
532
535
|
}, // END init
|
533
536
|
|
534
537
|
// -------------------------------------------------------------------------
|
@@ -596,13 +599,13 @@ var j1 = (function () {
|
|
596
599
|
{% if background_color_1 and background_color_2 %}
|
597
600
|
var banner_backround_style = '';
|
598
601
|
// Initialze banner background gradient/colors
|
599
|
-
banner_backround_style +=
|
600
|
-
banner_backround_style +=
|
601
|
-
banner_backround_style +=
|
602
|
-
banner_backround_style +=
|
603
|
-
banner_backround_style +=
|
604
|
-
banner_backround_style += 'filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="' +j1.setColorData('{{background_color_1}}')+ '", endColorstr="' +j1.setColorData('{{background_color_2}}')+ '", GradientType=0);
|
605
|
-
banner_backround_style +=
|
602
|
+
banner_backround_style += '<style> .{{id}}-background { ';
|
603
|
+
banner_backround_style += 'background-image: -webkit-gradient(linear, left top, left bottom, from( ' +j1.setColorData('{{background_color_1}}')+ ' ), to( ' +j1.setColorData('{{background_color_2}}')+ ' ));';
|
604
|
+
banner_backround_style += 'background-image: -webkit-linear-gradient(top, ' +j1.setColorData('{{background_color_1}}')+ ' 0%, ' +j1.setColorData('{{background_color_2}}')+ ' 100%);';
|
605
|
+
banner_backround_style += 'background-image: -o-linear-gradient(top, ' +j1.setColorData('{{background_color_1}}')+ ' 0%, ' +j1.setColorData('{{background_color_2}}')+ ' 100%);';
|
606
|
+
banner_backround_style += 'background-image: linear-gradient(to bottom, ' +j1.setColorData('{{background_color_1}}')+' 0%, ' +j1.setColorData('{{background_color_2}}')+ ' 100%);';
|
607
|
+
banner_backround_style += 'filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="' +j1.setColorData('{{background_color_1}}')+ '", endColorstr="' +j1.setColorData('{{background_color_2}}')+ '", GradientType=0);';
|
608
|
+
banner_backround_style += '} </style>';
|
606
609
|
$('head').append( banner_backround_style );
|
607
610
|
{% endif %}
|
608
611
|
|
@@ -723,7 +726,7 @@ var j1 = (function () {
|
|
723
726
|
|
724
727
|
if ( panel.length ) {
|
725
728
|
for (var i in panel) {
|
726
|
-
var id =
|
729
|
+
var id = '#' + panel[i];
|
727
730
|
var selector = $(id);
|
728
731
|
if ( selector.length ) {
|
729
732
|
logText = 'loading panel on id: ' +panel[i];
|
@@ -759,7 +762,7 @@ var j1 = (function () {
|
|
759
762
|
|
760
763
|
state = 'footer_loaded';
|
761
764
|
logger.info('set state for module ' + mod + ': ' + state);
|
762
|
-
executeFunctionByName(mod + '.setState', window, state)
|
765
|
+
executeFunctionByName(mod + '.setState', window, state);
|
763
766
|
|
764
767
|
logText = 'initialization finished';
|
765
768
|
logger.info(logText);
|
@@ -850,14 +853,14 @@ var j1 = (function () {
|
|
850
853
|
// -------------------------------------------------------------------------
|
851
854
|
// NOTE:
|
852
855
|
// jadams, 2019-08-21: for unknown reason, the user state data
|
853
|
-
// (read from cookie) seems not
|
856
|
+
// (read from cookie) seems not correct (or loaded too late).
|
854
857
|
// To make correct data sure for APP mode, a status request is done
|
855
858
|
// to load the current state from the middleware (skipped in WEB mode)
|
856
859
|
// -------------------------------------------------------------------------
|
857
860
|
displayPage: function (options) {
|
858
861
|
var logger = log4javascript.getLogger('j1.displayPage');
|
859
862
|
var flickerTimeout = {{template_config.flicker_timeout}};
|
860
|
-
var url = new parseURL(window.location.href)
|
863
|
+
var url = new parseURL(window.location.href);
|
861
864
|
var baseUrl = url.origin;
|
862
865
|
var ep_status = baseUrl + '/status' + '?page=' + window.location.pathname;
|
863
866
|
var user_session = j1.readCookie(cookie_names.user_session);
|
@@ -942,13 +945,13 @@ var j1 = (function () {
|
|
942
945
|
if (user_session.authenticated === 'true') {
|
943
946
|
// set signout
|
944
947
|
logger.info('show signout icon');
|
945
|
-
$('#navLinkSignInOut').attr(
|
946
|
-
$('#iconSignInOut').removeClass(
|
948
|
+
$('#navLinkSignInOut').attr('data-target','#modalOmniSignOut');
|
949
|
+
$('#iconSignInOut').removeClass('mdi-login').addClass('mdi-logout');
|
947
950
|
} else {
|
948
951
|
// set signin
|
949
952
|
logger.info('show signin icon');
|
950
|
-
$('#navLinkSignInOut').attr(
|
951
|
-
$('#iconSignInOut').removeClass(
|
953
|
+
$('#navLinkSignInOut').attr('data-target','#modalOmniSignIn');
|
954
|
+
$('#iconSignInOut').removeClass('mdi-logout').addClass('mdi-login');
|
952
955
|
}
|
953
956
|
logger.info('authentication detected as: ' + user_session.authenticated);
|
954
957
|
$('#quickLinksSignInOutButton').css('display', 'block');
|
@@ -1064,8 +1067,6 @@ var j1 = (function () {
|
|
1064
1067
|
|
1065
1068
|
var logText = 'initializing material design finished';
|
1066
1069
|
logger.info(logText);
|
1067
|
-
|
1068
|
-
return true;
|
1069
1070
|
}, // END initMDB
|
1070
1071
|
|
1071
1072
|
// -------------------------------------------------------------------------
|
@@ -1085,7 +1086,6 @@ var j1 = (function () {
|
|
1085
1086
|
o[p] = a[i][p];
|
1086
1087
|
}
|
1087
1088
|
}
|
1088
|
-
|
1089
1089
|
return o;
|
1090
1090
|
}, // END mergeData
|
1091
1091
|
|
@@ -1103,61 +1103,43 @@ var j1 = (function () {
|
|
1103
1103
|
// -------------------------------------------------------------------------
|
1104
1104
|
getLanguage: function () {
|
1105
1105
|
var language = navigator.languages ? navigator.languages[0] : (navigator.language || navigator.userLanguage);
|
1106
|
-
|
1107
|
-
return language;
|
1108
1106
|
}, // END getLanguage
|
1109
1107
|
|
1110
1108
|
// -------------------------------------------------------------------------
|
1111
|
-
// returns the template version taken from site config (
|
1109
|
+
// returns the template version taken from site config (_config.yml)
|
1112
1110
|
// -------------------------------------------------------------------------
|
1113
1111
|
getTemplateVersion: function () {
|
1114
1112
|
return '{{template_version}}';
|
1115
1113
|
}, // END getTemplateVersion
|
1116
1114
|
|
1117
1115
|
// -------------------------------------------------------------------------
|
1118
|
-
// Scrolls smooth to any anchor referenced by an page URL
|
1119
|
-
// Values for delay|offset are taken from
|
1116
|
+
// Scrolls smooth to any anchor referenced by an page URL on
|
1117
|
+
// e.g. a page reload. Values for delay|offset are taken from
|
1118
|
+
// TOCCER module
|
1120
1119
|
// -------------------------------------------------------------------------
|
1121
1120
|
scrollTo: function () {
|
1122
|
-
|
1123
|
-
var
|
1124
|
-
var offset = {{toccer_options.smoothScrollOffset}};
|
1125
|
-
var anchor_id = window.location.href.split("#")[1];
|
1121
|
+
var anchor = window.location.href.split('#')[1];
|
1122
|
+
var anchor_id = '#' + anchor;
|
1126
1123
|
var selector;
|
1127
|
-
var heading;
|
1128
|
-
var re;
|
1129
|
-
|
1130
|
-
if (anchor_id) {
|
1131
|
-
selector = $('.' + anchor_id + ', #' + anchor_id +',[name='+anchor_id+']');
|
1132
|
-
heading = selector[0].nodeName;
|
1133
1124
|
|
1125
|
+
if (anchor && anchor_id) {
|
1134
1126
|
// scroll only, if an anchor is given with URL
|
1127
|
+
selector = $(anchor_id);
|
1135
1128
|
if (selector.length) {
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
function () {
|
1141
|
-
// scroll the page one pixel back and forth
|
1142
|
-
// to get the right position for the NAV Module (Tocbot)
|
1143
|
-
$(window).scrollTop($(window).scrollTop()+1);
|
1144
|
-
$(window).scrollTop($(window).scrollTop()-1);
|
1129
|
+
j1.core.scrollSmooth.scroll( anchor_id, {
|
1130
|
+
duration: {{toccer_options.scrollSmoothDuration}},
|
1131
|
+
offset: {{toccer_options.scrollSmoothOffset}},
|
1132
|
+
callback: null
|
1145
1133
|
});
|
1146
1134
|
} else {
|
1147
|
-
//
|
1148
|
-
//
|
1149
|
-
// to
|
1135
|
+
// scroll the page one pixel back and forth (trigger)
|
1136
|
+
// to get the right position for the Toccer and adjust the
|
1137
|
+
// Navigator to display the (tranparent) navbar correctly
|
1138
|
+
//
|
1150
1139
|
$(window).scrollTop($(window).scrollTop()+1);
|
1151
1140
|
$(window).scrollTop($(window).scrollTop()-1);
|
1152
|
-
} //
|
1153
|
-
}
|
1154
|
-
// scroll the page one pixel back and forth
|
1155
|
-
// to get the right position for the NAV Module (Tocbot)
|
1156
|
-
$(window).scrollTop($(window).scrollTop()+1);
|
1157
|
-
$(window).scrollTop($(window).scrollTop()-1);
|
1158
|
-
} // END if anchor_id
|
1159
|
-
|
1160
|
-
return true;
|
1141
|
+
} // END if anchor_id
|
1142
|
+
}
|
1161
1143
|
}, // END scrollTo
|
1162
1144
|
|
1163
1145
|
// -------------------------------------------------------------------------
|
@@ -1165,8 +1147,8 @@ var j1 = (function () {
|
|
1165
1147
|
// Returns the state of the authentication module
|
1166
1148
|
// -------------------------------------------------------------------------
|
1167
1149
|
authEnabled: function () {
|
1168
|
-
var logger
|
1169
|
-
var authEnabled = {{authentication_options.j1_auth.enabled}}
|
1150
|
+
var logger = log4javascript.getLogger('j1.authentication');
|
1151
|
+
var authEnabled = {{authentication_options.j1_auth.enabled}};
|
1170
1152
|
|
1171
1153
|
return authEnabled;
|
1172
1154
|
}, // END authEnabled
|
@@ -1220,20 +1202,20 @@ var j1 = (function () {
|
|
1220
1202
|
};
|
1221
1203
|
};
|
1222
1204
|
|
1223
|
-
var id =
|
1205
|
+
var id = '#' + options.xhr_container_id;
|
1224
1206
|
var selector = $(id);
|
1225
1207
|
|
1226
1208
|
if ( selector.length ) {
|
1227
|
-
var modal_html_data_path = options.xhr_data_path +
|
1209
|
+
var modal_html_data_path = options.xhr_data_path + ' > *';
|
1228
1210
|
selector.load( modal_html_data_path, cb_load_closure( mod, id ) );
|
1229
1211
|
return true;
|
1230
1212
|
} else {
|
1231
|
-
logText =
|
1213
|
+
logText = 'data not loaded';
|
1232
1214
|
logger.warn(logText);
|
1233
1215
|
// Set processing state to 'finished' to complete module load
|
1234
1216
|
state = 'finished';
|
1235
1217
|
logger.info('state: ' + state);
|
1236
|
-
executeFunctionByName(mod + '.setState', window, state)
|
1218
|
+
executeFunctionByName(mod + '.setState', window, state);
|
1237
1219
|
return false;
|
1238
1220
|
}
|
1239
1221
|
}, // END xhrData
|
@@ -1266,37 +1248,6 @@ var j1 = (function () {
|
|
1266
1248
|
|
1267
1249
|
}, // END xhrApi
|
1268
1250
|
|
1269
|
-
// -------------------------------------------------------------------------
|
1270
|
-
// fetchAPI: Fetch (Promise) based async request
|
1271
|
-
// Returns the current git state collected from /git endpoint
|
1272
|
-
// -------------------------------------------------------------------------
|
1273
|
-
fetchAPI: function (params, cbData) {
|
1274
|
-
var logger = log4javascript.getLogger('j1.fetchAPI');
|
1275
|
-
var cbData = cbData;
|
1276
|
-
var parameters = params == '' ? 'all' : params;
|
1277
|
-
var url = 'http://localhost:41001/gut';
|
1278
|
-
|
1279
|
-
async function callAPI() {
|
1280
|
-
const URL = url;
|
1281
|
-
const fetchResult = fetch(URL)
|
1282
|
-
const response = await fetchResult;
|
1283
|
-
|
1284
|
-
if (response.ok) {
|
1285
|
-
const jsonData = await response.json();
|
1286
|
-
json_data = JSON.stringify(jsonData, undefined, 2);
|
1287
|
-
logText = 'response from fetch received: ' + json_data;
|
1288
|
-
logger.info(logText);
|
1289
|
-
//console.log(jsonData);
|
1290
|
-
} else {
|
1291
|
-
throw Error(response.statusText);
|
1292
|
-
// logger.error("Fetch request failed: " + response.statusText);
|
1293
|
-
}
|
1294
|
-
}
|
1295
|
-
callAPI();
|
1296
|
-
|
1297
|
-
return true;
|
1298
|
-
}, // END fetchAPI
|
1299
|
-
|
1300
1251
|
// -------------------------------------------------------------------------
|
1301
1252
|
// getRuntimeData: Returns the j1_runtime data object
|
1302
1253
|
//
|
@@ -1319,7 +1270,7 @@ var j1 = (function () {
|
|
1319
1270
|
logger.warn(logText);
|
1320
1271
|
state = 'runtime_data_loaded_failed';
|
1321
1272
|
logger.info('state: ' + state);
|
1322
|
-
executeFunctionByName('j1.setState', window, state)
|
1273
|
+
executeFunctionByName('j1.setState', window, state);
|
1323
1274
|
return false;
|
1324
1275
|
}
|
1325
1276
|
});
|
@@ -1337,7 +1288,7 @@ var j1 = (function () {
|
|
1337
1288
|
return $.ajax({
|
1338
1289
|
url: data_path,
|
1339
1290
|
success: function (data) {
|
1340
|
-
var logText =
|
1291
|
+
var logText = 'color data loaded successfully';
|
1341
1292
|
logger.info(logText);
|
1342
1293
|
state = 'color_data_loaded_success';
|
1343
1294
|
logger.info('state: ' + state);
|
@@ -1351,11 +1302,11 @@ var j1 = (function () {
|
|
1351
1302
|
}
|
1352
1303
|
},
|
1353
1304
|
error: function (data) {
|
1354
|
-
var logText =
|
1305
|
+
var logText = 'color data not loaded';
|
1355
1306
|
logger.warn(logText);
|
1356
1307
|
state = 'color_data_loaded_failed';
|
1357
1308
|
logger.info('state: ' + state);
|
1358
|
-
executeFunctionByName('j1.setState', window, state)
|
1309
|
+
executeFunctionByName('j1.setState', window, state);
|
1359
1310
|
return false;
|
1360
1311
|
}
|
1361
1312
|
});
|
@@ -1400,7 +1351,7 @@ var j1 = (function () {
|
|
1400
1351
|
return $.ajax({
|
1401
1352
|
url: data_path,
|
1402
1353
|
success: function (data) {
|
1403
|
-
var logText =
|
1354
|
+
var logText = 'font size data loaded successfully';
|
1404
1355
|
logger.info(logText);
|
1405
1356
|
state = 'fontsize_data_loaded_success';
|
1406
1357
|
logger.info('state: ' + state);
|
@@ -1414,11 +1365,11 @@ var j1 = (function () {
|
|
1414
1365
|
}
|
1415
1366
|
},
|
1416
1367
|
error: function (data) {
|
1417
|
-
var logText =
|
1368
|
+
var logText = 'font size data not loaded';
|
1418
1369
|
logger.warn(logText);
|
1419
1370
|
state = 'fontsize_data_loaded_failed';
|
1420
1371
|
logger.info('state: ' + state);
|
1421
|
-
executeFunctionByName('j1.setState', window, state)
|
1372
|
+
executeFunctionByName('j1.setState', window, state);
|
1422
1373
|
return false;
|
1423
1374
|
}
|
1424
1375
|
});
|
@@ -1435,8 +1386,7 @@ var j1 = (function () {
|
|
1435
1386
|
var reCSS = /\bpx\b|\brem\b|\bem\b|\%|\binherit\b|\binitial\b|\bunset\b/;
|
1436
1387
|
var isCSS = size.match(reCSS);
|
1437
1388
|
|
1438
|
-
|
1439
|
-
if ( typeof j1.fonts[size] != "undefined" ) {
|
1389
|
+
if ( typeof j1.fonts[size] != 'undefined' ) {
|
1440
1390
|
return j1.fonts[size];
|
1441
1391
|
} else if (isCSS) {
|
1442
1392
|
return size;
|
@@ -1480,14 +1430,14 @@ var j1 = (function () {
|
|
1480
1430
|
}
|
1481
1431
|
}
|
1482
1432
|
j1.messages = message_catalog;
|
1483
|
-
logBase = message_catalog.info.getData.message
|
1433
|
+
logBase = message_catalog.info.getData.message;
|
1484
1434
|
logText = logBase.text + logBase.message_catalog + logBase.finished;
|
1485
1435
|
logger.info(logText);
|
1486
1436
|
},
|
1487
1437
|
error: function(data) {
|
1488
1438
|
var json_data = JSON.stringify(data, undefined, 2);
|
1489
1439
|
logBase = message_catalog.error.getData.message;
|
1490
|
-
logText = logBase.text + logBase.xhr + ': ' + json_data
|
1440
|
+
logText = logBase.text + logBase.xhr + ': ' + json_data;
|
1491
1441
|
logger.error(logText);
|
1492
1442
|
}
|
1493
1443
|
});
|
@@ -1550,8 +1500,8 @@ var j1 = (function () {
|
|
1550
1500
|
Cookies.set(settings.name, data_encoded);
|
1551
1501
|
}
|
1552
1502
|
} else {
|
1553
|
-
cookie_data = settings.data
|
1554
|
-
data_json = JSON.stringify(
|
1503
|
+
cookie_data = settings.data;
|
1504
|
+
data_json = JSON.stringify(settings.data);
|
1555
1505
|
data_encoded = window.btoa(data_json);
|
1556
1506
|
if (settings.expires > 0) {
|
1557
1507
|
Cookies.set(settings.name, data_encoded, { expires: settings.expires });
|
@@ -1596,13 +1546,13 @@ var j1 = (function () {
|
|
1596
1546
|
// -------------------------------------------------------------------------
|
1597
1547
|
deleteCookie: function (options) {
|
1598
1548
|
var name = options;
|
1599
|
-
var all_cookies = document.cookie.split(
|
1549
|
+
var all_cookies = document.cookie.split('; ');
|
1600
1550
|
|
1601
1551
|
if ( name === 'all' ) {
|
1602
1552
|
for (var c = 0; c < all_cookies.length; c++) {
|
1603
|
-
var d = window.location.hostname.split(
|
1553
|
+
var d = window.location.hostname.split('.');
|
1604
1554
|
while (d.length > 0) {
|
1605
|
-
var cookieBase = encodeURIComponent(all_cookies[c].split(
|
1555
|
+
var cookieBase = encodeURIComponent(all_cookies[c].split(';')[0].split('=')[0]) + '=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain=' + d.join('.') + ' ;path=';
|
1606
1556
|
var p = location.pathname.split('/');
|
1607
1557
|
document.cookie = cookieBase + '/';
|
1608
1558
|
while (p.length > 0) {
|
@@ -1613,7 +1563,7 @@ var j1 = (function () {
|
|
1613
1563
|
}
|
1614
1564
|
}
|
1615
1565
|
} else {
|
1616
|
-
document.cookie = name +
|
1566
|
+
document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:00 GMT';
|
1617
1567
|
}
|
1618
1568
|
|
1619
1569
|
return true;
|
@@ -1624,8 +1574,8 @@ var j1 = (function () {
|
|
1624
1574
|
// -------------------------------------------------------------------------
|
1625
1575
|
existsCookie: function (name) {
|
1626
1576
|
var dc = document.cookie;
|
1627
|
-
var prefix = name +
|
1628
|
-
var begin = dc.indexOf(
|
1577
|
+
var prefix = name + '=';
|
1578
|
+
var begin = dc.indexOf('; ' + prefix);
|
1629
1579
|
var end = dc.length; // default to end of the string
|
1630
1580
|
var cookieExists = false;
|
1631
1581
|
var cookieContent = '';
|
@@ -1643,8 +1593,8 @@ var j1 = (function () {
|
|
1643
1593
|
|
1644
1594
|
// if ";" is found somewhere after the prefix position then "end" is
|
1645
1595
|
// that position, otherwise it defaults to the end of the string
|
1646
|
-
if (dc.indexOf(
|
1647
|
-
end = dc.indexOf(
|
1596
|
+
if (dc.indexOf(';', begin) !== -1) {
|
1597
|
+
end = dc.indexOf(';', begin);
|
1648
1598
|
}
|
1649
1599
|
|
1650
1600
|
cookieContent = decodeURI(dc.substring(begin + prefix.length, end) ).replace(/"/g, '');
|
@@ -1739,32 +1689,32 @@ var j1 = (function () {
|
|
1739
1689
|
var $this = $(this);
|
1740
1690
|
var $html = $this.html();
|
1741
1691
|
$this.html($html.replace(/Provider:.*/, 'Provider: ' + user_data.provider));
|
1742
|
-
$('#macro-provider').attr(
|
1692
|
+
$('#macro-provider').attr('href', user_data.provider_site_url);
|
1743
1693
|
});
|
1744
1694
|
$('#macro-user-name').each(function() {
|
1745
1695
|
var $this = $(this);
|
1746
1696
|
var $html = $this.html();
|
1747
1697
|
$this.html($html.replace(/User:.*/, 'User: ' + user_data.user_name));
|
1748
|
-
$('#macro-user-name').attr(
|
1698
|
+
$('#macro-user-name').attr('href', user_data.provider_member_url);
|
1749
1699
|
});
|
1750
1700
|
$('#macro-provider-permissions').each(function() {
|
1751
1701
|
var $this = $(this);
|
1752
1702
|
var $html = $this.html();
|
1753
1703
|
// $this.html($html.replace(/public|protected|private|blocked/, user_data.provider_permissions));
|
1754
1704
|
$this.html($html.replace(/public.*|protected.*|private.*|blocked.*/, user_data.provider_permissions));
|
1755
|
-
$('#macro-provider-permissions').attr(
|
1705
|
+
$('#macro-provider-permissions').attr('href', user_data.provider_member_url);
|
1756
1706
|
});
|
1757
1707
|
$('#macro-provider-membership').each(function() {
|
1758
1708
|
var $this = $(this);
|
1759
1709
|
var $html = $this.html();
|
1760
1710
|
$this.html($html.replace(/guest|member/, user_data.provider_membership));
|
1761
|
-
$('#macro-provider-membership').attr(
|
1711
|
+
$('#macro-provider-membership').attr('href', user_data.provider_member_url);
|
1762
1712
|
});
|
1763
1713
|
$('#macro-cookie-state').each(function() {
|
1764
1714
|
var $this = $(this);
|
1765
1715
|
var $html = $this.html();
|
1766
1716
|
$this.html($html.replace(/accepted|declined|pending/, user_data.cookies_accepted));
|
1767
|
-
$('#macro-cookie-state').attr(
|
1717
|
+
$('#macro-cookie-state').attr('href', user_data.provider_privacy_url);
|
1768
1718
|
});
|
1769
1719
|
|
1770
1720
|
});
|
@@ -1781,7 +1731,7 @@ var j1 = (function () {
|
|
1781
1731
|
// Get a log message from the log message catalog object
|
1782
1732
|
// -------------------------------------------------------------------------
|
1783
1733
|
getMessage: function (level, message, property) {
|
1784
|
-
var message = j1.messages[level][message][
|
1734
|
+
var message = j1.messages[level][message]['message'][property];
|
1785
1735
|
|
1786
1736
|
return message;
|
1787
1737
|
}, // END getMessage
|
@@ -1852,12 +1802,12 @@ var j1 = (function () {
|
|
1852
1802
|
if ( receiver === 'j1' ) {
|
1853
1803
|
logText = 'send message from ' + sender + ' to' + receiver + ': ' + json_message;
|
1854
1804
|
logger.debug(logText);
|
1855
|
-
executeFunctionByName('j1' + '.messageHandler', window, sender, message)
|
1805
|
+
executeFunctionByName('j1' + '.messageHandler', window, sender, message);
|
1856
1806
|
} else {
|
1857
1807
|
logText = 'send message from ' + sender + ' to ' + receiver + ': ' + json_message;
|
1858
1808
|
logger.debug(logText);
|
1859
1809
|
//executeFunctionByName('j1.' + receiver + '.messageHandler', window, sender, message)
|
1860
|
-
executeFunctionByName(receiver + '.messageHandler', window, sender, message)
|
1810
|
+
executeFunctionByName(receiver + '.messageHandler', window, sender, message);
|
1861
1811
|
}
|
1862
1812
|
|
1863
1813
|
}, // END sendMessage
|
@@ -2044,16 +1994,14 @@ var j1 = (function () {
|
|
2044
1994
|
window.home();
|
2045
1995
|
} else if (document.all) {
|
2046
1996
|
// for IE
|
2047
|
-
window.location.href =
|
1997
|
+
window.location.href = 'about:home';
|
2048
1998
|
} else {
|
2049
|
-
window.location.href =
|
1999
|
+
window.location.href = 'about:blank';
|
2050
2000
|
}
|
2051
2001
|
} // END gohome
|
2052
|
-
|
2053
|
-
} // END j1 (return)
|
2002
|
+
}; // END j1 (return)
|
2054
2003
|
}) (j1, window);
|
2055
2004
|
|
2056
2005
|
{% endcapture %}
|
2057
|
-
|
2058
2006
|
{{ cache | strip_empty_lines }}
|
2059
2007
|
{% assign cache = nil %}
|