j1-template 2023.10.0 → 2023.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/themes/j1/adapter/js/gallery.js +78 -23
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +11 -11
- data/assets/themes/j1/modules/lightGallery/js/plugins/j1/lg-video.1.js +585 -0
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-fullscreen.min.js +26 -26
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-thumbnail.min.js +26 -26
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-video.js +14 -5
- data/assets/themes/j1/modules/lightGallery/js/plugins/lg-video.min.js +1 -2
- data/assets/themes/j1/modules/videojs/js/plugins/vm/examples/index.html +33 -33
- data/assets/themes/j1/modules/videojs/js/plugins/wt/api/Readme.txt +20 -20
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +2 -2
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/gallery.yml +1 -1
- data/lib/starter_web/_data/modules/gallery.yml +94 -28
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_plugins/asciidoctor/gallery-block.rb +50 -50
- data/lib/starter_web/_plugins/asciidoctor/gist-block.rb +56 -56
- data/lib/starter_web/_plugins/asciidoctor/google-ad-block.rb +52 -52
- data/lib/starter_web/_plugins/asciidoctor/lightbox-block.rb +88 -88
- data/lib/starter_web/_plugins/asciidoctor/masterslider-block.rb +54 -54
- data/lib/starter_web/_plugins/asciidoctor/range-slider-block.rb +49 -49
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/images/modules/attics/1920x1280/isaac-davis.jpg +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/2023-10-18-url-types.adoc +98 -0
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +3 -3
- data/lib/starter_web/pages/public/learn/roundtrip/present_videos.adoc +3 -2
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +595 -595
- data/lib/starter_web/pages/public/tools/previewer/preview_bootstrap_theme.adoc +3093 -3093
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e2e3a1f57f7350be094b38562a4929160b671bce020f20d0614e2df8d13e6f8
|
4
|
+
data.tar.gz: 7530223f266fcf8e670dd2f943ee4f0fea6b8de7c1c5930a179a9c222b6d9715
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3d37529cbb204e1da5a3e25db2efa6777550713955cfc2f6830c546fb6c16a38a9f22644280e61bd81e4d776e79f61d1f09e97e775f8c9e05c4d770d54e1d8f
|
7
|
+
data.tar.gz: f64552caa5148edfc516f3d4e9e21ac8d56c6b44e9910ff7c612059124b15bf878bb49dc6ad38e963153dbca36d65ec6a6cad5f6b4191db317471047cceb72d8
|
@@ -89,6 +89,8 @@ j1.adapter.gallery = (function (j1, window) {
|
|
89
89
|
var environment = '{{environment}}';
|
90
90
|
var state = 'not_started';
|
91
91
|
var play_button = '/assets/themes/j1/modules/lightGallery/css/themes/uno/icons/play-button.png';
|
92
|
+
var url;
|
93
|
+
var origin;
|
92
94
|
var galleryDefaults;
|
93
95
|
var gallerySettings;
|
94
96
|
var galleryOptions;
|
@@ -111,6 +113,9 @@ j1.adapter.gallery = (function (j1, window) {
|
|
111
113
|
// -------------------------------------------------------------------------
|
112
114
|
init: function (options) {
|
113
115
|
|
116
|
+
url = new URL(window.location.href);
|
117
|
+
origin = url.origin;
|
118
|
+
|
114
119
|
// -----------------------------------------------------------------------
|
115
120
|
// Default module settings
|
116
121
|
// -----------------------------------------------------------------------
|
@@ -143,8 +148,6 @@ j1.adapter.gallery = (function (j1, window) {
|
|
143
148
|
var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false;
|
144
149
|
|
145
150
|
if (j1.getState() == 'finished' && pageVisible) {
|
146
|
-
// if (j1.getState() == 'finished' && pageVisible && atticFinished) {
|
147
|
-
|
148
151
|
// initialize state flag
|
149
152
|
_this.setState('started');
|
150
153
|
logger.debug('\n' + 'state: ' + _this.getState());
|
@@ -157,7 +160,7 @@ j1.adapter.gallery = (function (j1, window) {
|
|
157
160
|
logger.info('\n' + 'module initialized successfully');
|
158
161
|
|
159
162
|
clearInterval(dependencies_met_j1_finished);
|
160
|
-
}
|
163
|
+
} // END 'finished' && 'pageVisible'
|
161
164
|
}, 10);
|
162
165
|
},
|
163
166
|
|
@@ -192,11 +195,10 @@ j1.adapter.gallery = (function (j1, window) {
|
|
192
195
|
if ( xhrLoadState === 'success' ) {
|
193
196
|
var $grid_{{gallery_id}} = $('#{{gallery_id}}'); // used for later access
|
194
197
|
|
195
|
-
logger.info('\n' + 'initialize gallery on id: ' + '{{gallery_id}}');
|
198
|
+
logger.info('\n' + 'dyn_loader: initialize gallery on id: ' + '{{gallery_id}}');
|
196
199
|
|
197
|
-
|
198
|
-
|
199
|
-
$grid_{{gallery_id}}.justifiedGallery({
|
200
|
+
/* eslint-disable */
|
201
|
+
$('#{{gallery_id}}').justifiedGallery({
|
200
202
|
{% for option in gallery.gallery_options %}
|
201
203
|
{% if option[0] contains "gutters" %}
|
202
204
|
{{'margins' | json}}: {{option[1] | json}},
|
@@ -204,34 +206,87 @@ j1.adapter.gallery = (function (j1, window) {
|
|
204
206
|
{% endif %}
|
205
207
|
{{option[0] | json}}: {{option[1] | json}},
|
206
208
|
{% endfor %}
|
207
|
-
})
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
logger.info('\n' + 'initialize
|
215
|
-
|
216
|
-
var lg
|
217
|
-
|
209
|
+
})
|
210
|
+
.on('jg.complete', function (evt) {
|
211
|
+
evt.stopPropagation();
|
212
|
+
|
213
|
+
// setup the lightbox
|
214
|
+
//
|
215
|
+
logger.info('\n' + 'dyn_loader: callback "jg.complete" entered on id: ' + '{{gallery_id}}');
|
216
|
+
logger.info('\n' + 'dyn_loader: initialize lightGallery on id: ' + '{{gallery_id}}');
|
217
|
+
|
218
|
+
var lg = document.getElementById("{{gallery_id}}");
|
219
|
+
lightGallery(lg, {
|
218
220
|
"plugins": [{{gallery.lightGallery.plugins}}],
|
219
221
|
{% for option in gallery.lightGallery.options %}
|
220
222
|
{{option[0] | json}}: {{option[1] | json}},
|
221
223
|
{% endfor %}
|
222
224
|
"galleryId": "{{gallery_id}}",
|
223
225
|
"selector": ".lg-item",
|
226
|
+
{% if gallery.video == 'html5' and gallery.lightGallery.videojsOptions.enabled %}
|
224
227
|
"videojsOptions": {
|
225
228
|
{% for option in gallery.lightGallery.videojsOptions %}
|
229
|
+
{% if option[0] contains "enabled" %}
|
230
|
+
{% continue %}
|
231
|
+
{% endif %}
|
232
|
+
{{option[0] | json}}: {{option[1] | json}},
|
233
|
+
{% endfor %}
|
234
|
+
}
|
235
|
+
{% endif %}
|
236
|
+
|
237
|
+
{% if gallery.video == 'youtube' and gallery.lightGallery.playerParams.enabled %}
|
238
|
+
"youTubePlayerParams": {
|
239
|
+
{% for option in gallery.lightGallery.playerParams %}
|
240
|
+
{% if option[0] contains "enabled" %}
|
241
|
+
{% continue %}
|
242
|
+
{% endif %}
|
243
|
+
{{option[0] | json}}: {{option[1] | json}},
|
244
|
+
{% endfor %}
|
245
|
+
"origin": "origin"
|
246
|
+
}
|
247
|
+
{% endif %}
|
248
|
+
|
249
|
+
{% if gallery.video == 'vimeo' and gallery.lightGallery.playerParams.enabled %}
|
250
|
+
"vimeoPlayerParams": {
|
251
|
+
{% for option in gallery.lightGallery.playerParams %}
|
252
|
+
{% if option[0] contains "enabled" %}
|
253
|
+
{% continue %}
|
254
|
+
{% endif %}
|
255
|
+
{{option[0] | json}}: {{option[1] | json}},
|
256
|
+
{% endfor %}
|
257
|
+
}
|
258
|
+
{% endif %}
|
259
|
+
|
260
|
+
{% if gallery.video == 'dailymotion' and gallery.lightGallery.playerParams.enabled %}
|
261
|
+
"dailymotionPlayerParams": {
|
262
|
+
{% for option in gallery.lightGallery.playerParams %}
|
263
|
+
{% if option[0] contains "enabled" %}
|
264
|
+
{% continue %}
|
265
|
+
{% endif %}
|
266
|
+
{{option[0] | json}}: {{option[1] | json}},
|
267
|
+
{% endfor %}
|
268
|
+
}
|
269
|
+
{% endif %}
|
270
|
+
|
271
|
+
{% if gallery.video == 'wistia' and gallery.lightGallery.playerParams.enabled %}
|
272
|
+
"wistiaPlayerParams": {
|
273
|
+
{% for option in gallery.lightGallery.playerParams %}
|
274
|
+
{% if option[0] contains "enabled" %}
|
275
|
+
{% continue %}
|
276
|
+
{% endif %}
|
226
277
|
{{option[0] | json}}: {{option[1] | json}},
|
227
278
|
{% endfor %}
|
228
279
|
}
|
229
|
-
|
230
|
-
|
231
|
-
|
280
|
+
{% endif %}
|
281
|
+
|
282
|
+
}); // END lightGallery
|
283
|
+
|
284
|
+
}); // END justifiedGallery on('jg.complete)
|
285
|
+
/* eslint-enable */
|
286
|
+
|
287
|
+
clearInterval(load_dependencies['dependencies_met_html_loaded_{{gallery_id}}']);
|
288
|
+
} // END if xhrLoadState === 'success'
|
232
289
|
|
233
|
-
}
|
234
|
-
clearInterval(load_dependencies['dependencies_met_html_loaded_{{gallery_id}}']);
|
235
290
|
}, 10); // END dependencies_met_html_loaded
|
236
291
|
|
237
292
|
{% endif %} // ENDIF gallery enabled
|
@@ -26885,17 +26885,17 @@ $caret-width-lg: $caret-width !default;
|
|
26885
26885
|
.g-max-height-500 {
|
26886
26886
|
min-height: 500px !important; }
|
26887
26887
|
|
26888
|
-
/*
|
26889
|
-
# -----------------------------------------------------------------------------
|
26890
|
-
# ~/scss/theme_uno/extensions/_video.scss
|
26891
|
-
# Product/Info:
|
26892
|
-
# https://jekyll.one
|
26893
|
-
#
|
26894
|
-
# Copyright (C) 2023 Juergen Adams
|
26895
|
-
#
|
26896
|
-
# J1 Template is licensed under the MIT License.
|
26897
|
-
# See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md
|
26898
|
-
# ------------------------------------------------------------------------------
|
26888
|
+
/*
|
26889
|
+
# -----------------------------------------------------------------------------
|
26890
|
+
# ~/scss/theme_uno/extensions/_video.scss
|
26891
|
+
# Product/Info:
|
26892
|
+
# https://jekyll.one
|
26893
|
+
#
|
26894
|
+
# Copyright (C) 2023 Juergen Adams
|
26895
|
+
#
|
26896
|
+
# J1 Template is licensed under the MIT License.
|
26897
|
+
# See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md
|
26898
|
+
# ------------------------------------------------------------------------------
|
26899
26899
|
*/
|
26900
26900
|
video {
|
26901
26901
|
width: 100%;
|