j1-template 2023.2.3 → 2023.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/data/banner.html +2 -2
- data/assets/themes/j1/adapter/js/attic.js +75 -40
- data/assets/themes/j1/adapter/js/carousel.js +5 -1
- data/assets/themes/j1/adapter/js/dropdowns.js +5 -1
- data/assets/themes/j1/adapter/js/fab.js +10 -4
- data/assets/themes/j1/adapter/js/justifiedGallery.js +5 -1
- data/assets/themes/j1/adapter/js/lightbox.js +5 -3
- data/assets/themes/j1/adapter/js/masonry.js +4 -3
- data/assets/themes/j1/adapter/js/masterslider.js +5 -3
- data/assets/themes/j1/adapter/js/navigator.js +5 -3
- data/assets/themes/j1/adapter/js/scroller.js +5 -3
- data/assets/themes/j1/adapter/js/slick.js +4 -3
- data/assets/themes/j1/adapter/js/toccer.js +3 -1
- data/assets/themes/j1/adapter/js/translator.js +5 -3
- data/assets/themes/j1/adapter/js/waves.js +5 -3
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +2 -2
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/modules/attics.yml +25 -39
- data/lib/starter_web/_data/modules/defaults/attics.yml +21 -11
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/index.html +2 -1
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/about/features.adoc +0 -1
- data/lib/starter_web/pages/public/about/reporting_issues.adoc +0 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +0 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +0 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +0 -1
- data/lib/starter_web/pages/public/features/general.adoc +0 -3
- data/lib/starter_web/pages/public/features/template.adoc +0 -3
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_all_books.adoc +4 -1
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_biography.adoc +4 -1
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_fantasy.adoc +4 -1
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_romance.adoc +4 -1
- data/lib/starter_web/pages/public/learn/bookshelf/jekyll_collections.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/asciidoc_extensions.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/bootstrap_themes.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/icon_fonts.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/lunr_search.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/modal_extentions.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +6 -8
- data/lib/starter_web/pages/public/learn/roundtrip/present_videos.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/responsive_tables.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/typography.adoc +0 -1
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +0 -1
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +0 -1
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +0 -1
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +0 -1
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +0 -1
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +0 -1
- data/lib/starter_web/pages/public/plans/plans.adoc +0 -1
- data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +0 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d5ab1050367c71af4141b92f42032e5d5dca7a1851d904a086b7ff46c064966
|
4
|
+
data.tar.gz: e6b0fa9e436bf9054da7f658ac1ef47b93f223b7f366e7ac329b890de5b3fbc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63b6dc2b7c38c1a9ff5b07bda8e24a0f7614314569aca9f8a1b7315c0cff119d35c09826a5d97a9eaff27fcdc8e29370fa3fc31aae717b2b20d7730c76a1329e
|
7
|
+
data.tar.gz: 9634603b5393da4a93eee7611dc155387a96b7a51400fa1e5650cbd9958d5951c4522d9dbe880080d83880e23c3ff90bd2e4377e44e92310c2e6d522d0697b3b
|
data/assets/data/banner.html
CHANGED
@@ -259,8 +259,8 @@ exclude_from_search: true
|
|
259
259
|
<img
|
260
260
|
class="sticker-image"
|
261
261
|
src="/assets/images/sticker/600x600/sticker-new-version.png"
|
262
|
-
alt="Get new version 2023.2.
|
263
|
-
title="Get new version 2023.2.
|
262
|
+
alt="Get new version 2023.2.5"
|
263
|
+
title="Get new version 2023.2.5"
|
264
264
|
style="width: 140px; height: 120px;"
|
265
265
|
>
|
266
266
|
</a>
|
@@ -148,11 +148,14 @@ j1.adapter.attic = (function (j1, window) {
|
|
148
148
|
{% if attic_options.enabled %}
|
149
149
|
logger.info('\n' + 'create all attics configured');
|
150
150
|
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
151
|
+
if (atticOptions.hide_oninit) {
|
152
|
+
// hide page while attic is being created
|
153
|
+
// jadams, 2023-05-12: Visible page/attic cause high number
|
154
|
+
// for cumulative layout shift (CLS)
|
155
|
+
//
|
156
|
+
logger.debug('\n' + 'hide attics on initia.lization');
|
157
|
+
$('#no_flicker').css('display', 'none');
|
158
|
+
}
|
156
159
|
|
157
160
|
_this.createAllAttics();
|
158
161
|
clearInterval(dependencies_met_page_ready);
|
@@ -171,36 +174,36 @@ j1.adapter.attic = (function (j1, window) {
|
|
171
174
|
// -------------------------------------------------------------------------
|
172
175
|
createAllAttics: function () {
|
173
176
|
var frontmatterOptions = _this.frontmatterOptions;
|
177
|
+
|
174
178
|
// merge all attic options
|
175
179
|
var atticOptions = $.extend(true, {}, _this.atticOptions, _this.frontmatterOptions);
|
176
180
|
|
177
|
-
{% comment %} Load data from
|
181
|
+
{% comment %} Load data from attic config (yaml data files)
|
178
182
|
-------------------------------------------------------------------------- {% endcomment %}
|
179
183
|
{% for item in attic_options.attics %}
|
180
184
|
{% if item.attic.enabled %}
|
181
|
-
|
182
185
|
{% assign attic_id = item.attic.id %}
|
183
186
|
|
184
|
-
|
185
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
186
|
-
{% if item.attic.filters %}
|
187
|
-
{% for filter in blog_navigator_options.filters %}
|
188
|
-
{% capture css_filters %}{{css_filters}} {{filter[0]}}({{filter[1]}}){% endcapture %}
|
189
|
-
{% endfor %}
|
190
|
-
{% capture image_filters %}filter:{{css_filters}}{% endcapture %}
|
191
|
-
{% else %}
|
192
|
-
{% assign image_filters = '' %}
|
193
|
-
{% endif %}
|
194
|
-
|
195
|
-
// Create the SPECIFIC header loader FUNCTION of type: {{attic_id}}
|
187
|
+
// Create the SPECIFIC header loader FUNCTION for id: {{attic_id}}
|
196
188
|
function {{attic_id}} (atticOptions) {
|
189
|
+
var atticOptionsFilters = {};
|
190
|
+
var atticItemFilters = {};
|
191
|
+
var atticFilters = {};
|
192
|
+
var my_attic = $.extend({}, {{item.attic | replace: 'nil', 'null' | replace: '=>', ':' }});
|
197
193
|
|
198
194
|
logger.info('\n' + 'initialize attic on id: {{attic_id}}');
|
199
195
|
|
200
|
-
//
|
201
|
-
|
202
|
-
|
203
|
-
|
196
|
+
// collect attic filter settings to object to array to string
|
197
|
+
//
|
198
|
+
{% if item.attic.filters %}
|
199
|
+
atticItemFilters = $.extend({}, {{item.attic.filters | replace: 'nil', 'null' | replace: '=>', ':' }});
|
200
|
+
{% endif %}
|
201
|
+
|
202
|
+
atticOptionsFilters = atticOptions.filters;
|
203
|
+
atticFilters = $.extend(true, {}, atticOptionsFilters, atticItemFilters);
|
204
|
+
filterArray = [];
|
205
|
+
|
206
|
+
$.each(atticFilters, function(idx2, val2) {
|
204
207
|
var str = idx2 + '(' + val2 + ')';
|
205
208
|
filterArray.push(str);
|
206
209
|
});
|
@@ -247,7 +250,7 @@ j1.adapter.attic = (function (j1, window) {
|
|
247
250
|
// Add event for pauseOnHover
|
248
251
|
//
|
249
252
|
if (atticOptions.pauseOnHover) {
|
250
|
-
$('#
|
253
|
+
$('#attic_id').hover (
|
251
254
|
function() {
|
252
255
|
$('#{{attic_id}}').backstretch('pause'); },
|
253
256
|
function() {
|
@@ -361,6 +364,7 @@ j1.adapter.attic = (function (j1, window) {
|
|
361
364
|
// TODO: Add additional styles to head-title-text|head-tagline-
|
362
365
|
// text (e.g. text-center)
|
363
366
|
// atticOptions.tagline_align
|
367
|
+
//
|
364
368
|
textOverlayHTML = ''
|
365
369
|
+ '<div id="head-title" class="head-title animate__animated ">'
|
366
370
|
+ ' <h2 id="head-title-text" class="notoc text-' + atticOptions.title_align + ' text-emphasis-stronger">' + textOverlayTitle + '</h2>'
|
@@ -368,25 +372,45 @@ j1.adapter.attic = (function (j1, window) {
|
|
368
372
|
+ '<div id="head-tagline" class="head-tagline animate__animated ">'
|
369
373
|
+ ' <h3 id="head-tagline-text" class="notoc text-' + atticOptions.tagline_align + '">' + textOverlayTagline + '</h3>'
|
370
374
|
+ '</div>';
|
371
|
-
$('.textOverlay').html(textOverlayHTML).hide();
|
372
375
|
|
373
|
-
|
374
|
-
|
375
|
-
$('
|
376
|
-
|
377
|
-
|
376
|
+
// hide textOverlay while animate classes are being calculated
|
377
|
+
//
|
378
|
+
$('.textOverlay').html(textOverlayHTML).hide();
|
379
|
+
|
380
|
+
// collect individual title options
|
381
|
+
//
|
382
|
+
var title_animate = !!my_attic.title_animate ? my_attic.title_animate : atticOptions.title_animate;
|
383
|
+
var title_animate_delay = !!my_attic.title_animate_delay ? my_attic.title_animate_delay : atticOptions.title_animate_delay;
|
384
|
+
var title_animate_duration = !!my_attic.title_animate_duration ? my_attic.title_animate_duration : atticOptions.title_animate_duration;
|
385
|
+
|
386
|
+
$('#head-title').addClass(title_animate);
|
387
|
+
$('#head-title').addClass(title_animate_delay);
|
388
|
+
$('#head-title').addClass(title_animate_duration);
|
389
|
+
|
390
|
+
// collect individual tagline options
|
391
|
+
//
|
392
|
+
var tagline_animate = !!my_attic.tagline_animate ? my_attic.tagline_animate : atticOptions.tagline_animate;
|
393
|
+
var tagline_animate_delay = !!my_attic.tagline_animate_delay ? my_attic.tagline_animate_delay : atticOptions.tagline_animate_delay;
|
394
|
+
var tagline_animate_duration = !!my_attic.tagline_animate_duration ? my_attic.tagline_animate_duration : atticOptions.tagline_animate_duration;
|
395
|
+
|
396
|
+
$('#head-tagline').addClass(tagline_animate);
|
397
|
+
$('#head-tagline').addClass(tagline_animate_delay);
|
398
|
+
$('#head-tagline').addClass(tagline_animate_duration);
|
378
399
|
|
400
|
+
// show configured textOverlay
|
401
|
+
//
|
379
402
|
$('.textOverlay').show();
|
380
403
|
$('.textOverlay').css('opacity', '1');
|
381
404
|
|
382
|
-
// jadams, 2022-08-19: show a badge only if
|
405
|
+
// jadams, 2022-08-19: show a badge only if configured
|
383
406
|
//
|
384
407
|
if (typeof instance.images[index].badge != 'undefined') {
|
385
408
|
$('.attic-caption').show();
|
386
409
|
$('.attic-caption').css('opacity', '1');
|
387
410
|
}
|
388
411
|
|
389
|
-
// show page if attic
|
412
|
+
// show page if attic finalized
|
413
|
+
//
|
390
414
|
$('#no_flicker').css('display', 'block');
|
391
415
|
|
392
416
|
// jadams, 2022-08-09:
|
@@ -602,20 +626,31 @@ j1.adapter.attic = (function (j1, window) {
|
|
602
626
|
attic_style += '} </style>';
|
603
627
|
$('head').append(attic_style);
|
604
628
|
|
605
|
-
//
|
606
|
-
|
607
|
-
|
629
|
+
// collect individual (title|tagline) options
|
630
|
+
//
|
631
|
+
var my_attic = $.extend({}, {{item.attic | replace: 'nil', 'null' | replace: '=>', ':' }});
|
632
|
+
var padding_top = !!my_attic.padding_top ? my_attic.padding_top : atticOptions.padding_top;
|
633
|
+
var padding_bottom = !!my_attic.padding_bottom ? my_attic.padding_bottom : atticOptions.padding_bottom;
|
634
|
+
var margin_bottom = !!my_attic.margin_bottom ? my_attic.margin_bottom : atticOptions.margin_bottom;
|
635
|
+
|
636
|
+
// frontmatter options takes precedence
|
637
|
+
//
|
638
|
+
if (typeof frontmatterOptions.padding_top != 'undefined') { padding_top = frontmatterOptions.padding_top; }
|
639
|
+
if (typeof frontmatterOptions.padding_bottom != 'undefined') { padding_bottom = frontmatterOptions.padding_bottom; }
|
640
|
+
if (typeof frontmatterOptions.margin_bottom != 'undefined') { margin_bottom = frontmatterOptions.margin_bottom; }
|
608
641
|
|
642
|
+
attic_style = '';
|
643
|
+
attic_style = '<style> .attic { padding-top: ' +padding_top+ 'px; padding-bottom: ' +padding_bottom+ 'px; margin-bottom: ' +margin_bottom+ 'px; text-shadow: 0 1px 0 rgba(0,0,0,.1); </style>';
|
609
644
|
$('head').append(attic_style);
|
645
|
+
|
610
646
|
$('head').append('<style> .attic .head-title h2 { color: ' +atticOptions.title_color+ ';font-size: ' +atticOptions.title_size+ ' !important; text-align: ' +atticOptions.title_align+ ';} </style>');
|
611
647
|
$('head').append('<style> .attic .head-tagline h3 { color: ' +atticOptions.tagline_color+ ';font-size: ' +atticOptions.tagline_size+ ' !important; text-align: ' +atticOptions.tagline_align+ '; } </style>');
|
612
648
|
|
613
|
-
// Add opacity to
|
649
|
+
// Add opacity to ALL header (backstretch) images
|
614
650
|
// See: https://tympanus.net/codrops/2013/11/07/css-overlay-techniques/
|
615
|
-
var
|
616
|
-
|
617
|
-
|
618
|
-
$('head').append(attic_opacity);
|
651
|
+
var item_opacity = !!my_attic.opacity ? my_attic.opacity : atticOptions.opacity;
|
652
|
+
var backstretch_opacity = '<style> .backstretch-item { opacity: ' +item_opacity+ '; </style>';
|
653
|
+
$('head').append(backstretch_opacity);
|
619
654
|
|
620
655
|
_this.setState('initialized');
|
621
656
|
logger.debug('\n' + 'state: ' + _this.getState());
|
@@ -131,7 +131,11 @@ j1.adapter.carousel = (function (j1, window) {
|
|
131
131
|
carouselOptions = $.extend(true, {}, carouselDefaults, carouselSettings);
|
132
132
|
|
133
133
|
var dependencies_met_page_finished = setInterval(function() {
|
134
|
-
|
134
|
+
var pageState = $('#no_flicker').css("display");
|
135
|
+
var pageVisible = (pageState == 'block') ? true : false;
|
136
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
137
|
+
|
138
|
+
if (j1.getState() == 'finished' && pageVisible && atticFinished) {
|
135
139
|
|
136
140
|
_this.setState('started');
|
137
141
|
logger.debug('\n' + 'state: ' + _this.getState());
|
@@ -130,7 +130,11 @@ j1.adapter.dropdowns = (function (j1, window) {
|
|
130
130
|
logger.info('\n' + 'module is being initialized');
|
131
131
|
|
132
132
|
var dependencies_met_j1_finished = setInterval(function() {
|
133
|
-
|
133
|
+
var pageState = $('#no_flicker').css("display");
|
134
|
+
var pageVisible = (pageState == 'block') ? true : false;
|
135
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
136
|
+
|
137
|
+
if (j1.getState() == 'finished' && pageVisible && atticFinished) {
|
134
138
|
var elms = document.querySelectorAll('.dropdowns');
|
135
139
|
|
136
140
|
// -------------------------------------------------------------------
|
@@ -154,7 +154,11 @@ j1.adapter.fab = (function (j1, window) {
|
|
154
154
|
_this['moduleOptions'] = fabOptions;
|
155
155
|
|
156
156
|
var dependencies_met_navigator = setInterval(function() {
|
157
|
-
|
157
|
+
var pageState = $('#no_flicker').css("display");
|
158
|
+
var pageVisible = (pageState == 'block') ? true : false;
|
159
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
160
|
+
|
161
|
+
if (j1.adapter.navigator.getState() == 'finished' && pageVisible && atticFinished) {
|
158
162
|
logger.debug('\n' + 'met dependencies for: navigator');
|
159
163
|
_this.fabLoader(fabOptions);
|
160
164
|
clearInterval(dependencies_met_navigator);
|
@@ -185,9 +189,11 @@ j1.adapter.fab = (function (j1, window) {
|
|
185
189
|
// Initialize FAB button
|
186
190
|
// ---------------------------------------------------------------------
|
187
191
|
var dependencies_met_fab_initialized = setInterval (function () {
|
188
|
-
var pageState
|
189
|
-
var pageVisible
|
190
|
-
|
192
|
+
var pageState = $('#no_flicker').css("display");
|
193
|
+
var pageVisible = (pageState == 'block') ? true: false;
|
194
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
195
|
+
|
196
|
+
if (j1.xhrDOMState['#' + fabOptions.xhr_container_id] == 'success' && j1.getState() == 'finished' && pageVisible && atticFinished ) {
|
191
197
|
_this.setState('loaded');
|
192
198
|
logger.info('\n' + 'set module state to: ' + _this.getState());
|
193
199
|
logger.info('\n' + 'HTML data for FAB: ' + _this.getState());
|
@@ -130,7 +130,11 @@ j1.adapter.justifiedGallery = (function (j1, window) {
|
|
130
130
|
logger = log4javascript.getLogger('j1.adapter.justifiedGallery');
|
131
131
|
|
132
132
|
var dependencies_met_j1_finished= setInterval(function() {
|
133
|
-
|
133
|
+
var pageState = $('#no_flicker').css("display");
|
134
|
+
var pageVisible = (pageState == 'block') ? true : false;
|
135
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
136
|
+
|
137
|
+
if (j1.getState() == 'finished' && pageVisible && atticFinished) {
|
134
138
|
// initialize state flag
|
135
139
|
_this.setState('started');
|
136
140
|
logger.debug('\n' + 'state: ' + _this.getState());
|
@@ -132,9 +132,11 @@ j1.adapter.lightbox = (function (j1, window) {
|
|
132
132
|
lightboxOptions = $.extend(true, {}, lightboxDefaults, lightboxSettings, frontmatterOptions);
|
133
133
|
|
134
134
|
var dependencies_met_j1_finished = setInterval(function() {
|
135
|
-
var pageState
|
136
|
-
var pageVisible
|
137
|
-
|
135
|
+
var pageState = $('#no_flicker').css("display");
|
136
|
+
var pageVisible = (pageState == 'block') ? true: false;
|
137
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
138
|
+
|
139
|
+
if (j1.getState() == 'finished' && pageVisible && atticFinished) {
|
138
140
|
|
139
141
|
_this.setState('started');
|
140
142
|
logger.debug('\n' + 'state: ' + _this.getState());
|
@@ -143,10 +143,11 @@ var logText;
|
|
143
143
|
// initializer
|
144
144
|
// -----------------------------------------------------------------------
|
145
145
|
var dependencies_met_page_ready = setInterval (function (options) {
|
146
|
-
var pageState
|
147
|
-
var pageVisible
|
146
|
+
var pageState = $('#no_flicker').css("display");
|
147
|
+
var pageVisible = (pageState == 'block') ? true: false;
|
148
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
148
149
|
|
149
|
-
if ( j1.getState() === 'finished' && pageVisible ) {
|
150
|
+
if ( j1.getState() === 'finished' && pageVisible && atticFinished) {
|
150
151
|
|
151
152
|
_this.setState('started');
|
152
153
|
logger.debug('\n' + 'state: ' + _this.getState());
|
@@ -160,9 +160,11 @@ j1.adapter.masterslider = (function (j1, window) {
|
|
160
160
|
|
161
161
|
// load the slider manager to DISPLAY instances in page (if visible)
|
162
162
|
var dependencies_met_module_finished = setInterval(function() {
|
163
|
-
var pageState
|
164
|
-
var pageVisible
|
165
|
-
|
163
|
+
var pageState = $('#no_flicker').css("display");
|
164
|
+
var pageVisible = (pageState == 'block') ? true : false;
|
165
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
166
|
+
|
167
|
+
if (_this.getState() == 'sliders_initialized' && pageVisible && atticFinished) {
|
166
168
|
// TODO: Check why a timeout is required to load the Slider Manager
|
167
169
|
setTimeout (function() {
|
168
170
|
if (sliderManager) document.body.appendChild(msSliderManager);
|
@@ -406,10 +406,12 @@ j1.adapter.navigator = (function (j1, window) {
|
|
406
406
|
// event handler|css styles
|
407
407
|
// -----------------------------------------------------------------
|
408
408
|
var dependencies_met_initialized = setInterval(function() {
|
409
|
-
var pageState
|
410
|
-
var pageVisible
|
409
|
+
var pageState = $('#no_flicker').css("display");
|
410
|
+
var pageVisible = (pageState == 'block') ? true: false;
|
411
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
412
|
+
|
411
413
|
// initialize if page and themer ready
|
412
|
-
if (j1.getState() === 'finished' && j1.adapter.themer.getState() === 'finished' && pageVisible) {
|
414
|
+
if (j1.getState() === 'finished' && j1.adapter.themer.getState() === 'finished' && pageVisible && atticFinished) {
|
413
415
|
_this.setState('processing');
|
414
416
|
|
415
417
|
// apply module configuration settings
|
@@ -144,9 +144,11 @@ var lastPageInfo;
|
|
144
144
|
|
145
145
|
// initialize scrollers if page is available and visible
|
146
146
|
var dependencies_met_page_ready = setInterval (function (options) {
|
147
|
-
var pageState
|
148
|
-
var pageVisible
|
149
|
-
|
147
|
+
var pageState = $('#no_flicker').css("display");
|
148
|
+
var pageVisible = (pageState == 'block') ? true: false;
|
149
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
150
|
+
|
151
|
+
if (j1.getState() === 'finished' && pageVisible && atticFinished) {
|
150
152
|
_this.generate_scrollers();
|
151
153
|
_this.setState('finished');
|
152
154
|
logger.debug('\n' + 'state: ' + _this.getState());
|
@@ -158,10 +158,11 @@ j1.adapter.slick = (function (j1, window) {
|
|
158
158
|
// initializer
|
159
159
|
// -----------------------------------------------------------------------
|
160
160
|
var dependencies_met_page_ready = setInterval (function (options) {
|
161
|
-
var pageState
|
162
|
-
var pageVisible
|
161
|
+
var pageState = $('#no_flicker').css("display");
|
162
|
+
var pageVisible = (pageState == 'block') ? true: false;
|
163
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
163
164
|
|
164
|
-
if (
|
165
|
+
if (j1.getState() === 'finished' && pageVisible && atticFinished) {
|
165
166
|
|
166
167
|
{% for carousel in slick_settings.carousels %} {% if carousel.enabled %}
|
167
168
|
logger.info('\n' + 'carousel is being initialized on id: ' + '{{carousel.id}}');
|
@@ -164,7 +164,9 @@ j1.adapter.toccer = (function () {
|
|
164
164
|
var dependencies_met_navigator = setInterval(function() {
|
165
165
|
var pageState = $('#no_flicker').css("display");
|
166
166
|
var pageVisible = (pageState == 'block') ? true: false;
|
167
|
-
|
167
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
168
|
+
|
169
|
+
if (j1.getState() == 'finished' && pageVisible && atticFinished) {
|
168
170
|
_this.initToccerCore(toccerOptions);
|
169
171
|
_this.setState('finished');
|
170
172
|
|
@@ -202,9 +202,11 @@ j1.adapter.translator = (function (j1, window) {
|
|
202
202
|
domainAttribute = '';
|
203
203
|
}
|
204
204
|
|
205
|
-
var pageState
|
206
|
-
var pageVisible
|
207
|
-
|
205
|
+
var pageState = $('#no_flicker').css("display");
|
206
|
+
var pageVisible = (pageState == 'block') ? true: false;
|
207
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
208
|
+
|
209
|
+
if (j1.getState() === 'finished' && pageVisible && atticFinished) {
|
208
210
|
_this.setState('started');
|
209
211
|
logger.debug('\n' + 'state: ' + _this.getState());
|
210
212
|
logger.info('\n' + 'module is being initialized');
|
@@ -145,9 +145,11 @@ var logText;
|
|
145
145
|
// initializer
|
146
146
|
// -----------------------------------------------------------------------
|
147
147
|
var dependencies_met_page_ready = setInterval (function (options) {
|
148
|
-
var pageState
|
149
|
-
var pageVisible
|
150
|
-
|
148
|
+
var pageState = $('#no_flicker').css("display");
|
149
|
+
var pageVisible = (pageState == 'block') ? true : false;
|
150
|
+
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
151
|
+
|
152
|
+
if (j1.getState() === 'finished' && pageVisible && atticFinished) {
|
151
153
|
themes_allowed = waveOptions.themes.toString();
|
152
154
|
theme_enabled = waveOptions.themes.indexOf(theme) > -1 ? true : false;
|
153
155
|
|
@@ -14999,13 +14999,13 @@ table.tableblock > .title {
|
|
14999
14999
|
|
15000
15000
|
.attic .head-title h2, .attic .head-title .h2 {
|
15001
15001
|
margin-top: -1.2rem;
|
15002
|
-
margin-bottom: 0
|
15002
|
+
margin-bottom: 0;
|
15003
15003
|
font-weight: 600;
|
15004
15004
|
line-height: 1.2; }
|
15005
15005
|
|
15006
15006
|
.attic .head-tagline h3, .attic .head-tagline .h3 {
|
15007
15007
|
margin-top: 0;
|
15008
|
-
margin-bottom: 0
|
15008
|
+
margin-bottom: 0;
|
15009
15009
|
font-weight: 400;
|
15010
15010
|
line-height: 1; }
|
15011
15011
|
|