j1-template 2024.3.14 → 2024.3.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/data/amplitude.html +111 -58
- data/assets/data/cookieconsent.html +8 -8
- data/assets/data/panel.html +4 -3
- data/assets/data/speak2me.html +11 -11
- data/assets/data/translator.html +29 -29
- data/assets/theme/j1/adapter/js/amplitude.js +112 -88
- data/assets/theme/j1/adapter/js/j1.js +4 -4
- data/assets/theme/j1/adapter/js/masonry.js +2 -2
- data/assets/theme/j1/adapter/js/themes.js +42 -4
- data/assets/theme/j1/adapter/js/videojs.js +212 -0
- data/assets/theme/j1/core/css/icon-fonts/mdib.css +24 -4
- data/assets/theme/j1/core/css/icon-fonts/mdib.css.map +1 -1
- data/assets/theme/j1/core/css/icon-fonts/mdib.min.css +1 -1
- data/assets/theme/j1/core/css/icon-fonts/mdib.min.css.map +1 -1
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +9 -6
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.css.map +1 -1
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css.map +1 -1
- data/assets/theme/j1/core/js/template.js +262 -275
- data/assets/theme/j1/core/js/template.min.js +7 -7
- data/assets/theme/j1/core/js/template.min.js.map +1 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.css +131 -24
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.css +102 -76
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.css +109 -78
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/artist.svg +78 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/mute.svg +52 -20
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/next.svg +20 -39
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/now-playing.svg +24 -38
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-hide.svg +85 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-music.svg +85 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-show.svg +85 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist.svg +85 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/previous.svg +18 -37
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-backward.svg +33 -30
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-forward.svg +33 -29
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/small/next.svg +55 -14
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/small/previous.svg +56 -14
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/volume.svg +38 -21
- data/assets/theme/j1/modules/amplitudejs/js/amplitude.map +20 -20
- data/assets/theme/j1/modules/amplitudejs/js/tech/youtube_example.js +211 -0
- data/assets/theme/j1/modules/gemini/js/gemini.js.map +1 -1
- data/assets/theme/j1/modules/jquery/js/jquery.min.map +1 -1
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js +206 -122
- data/assets/theme/j1/modules/videojs/assets/icons/custom-icons/next.svg +82 -0
- data/assets/theme/j1/modules/videojs/css/font/README.md +151 -0
- data/assets/theme/j1/modules/videojs/css/font/VideoJS.svg +150 -0
- data/assets/theme/j1/modules/videojs/css/font/video-js-cdn.css +2012 -0
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.0.css +32 -0
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.1.css +31 -0
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.css +31 -0
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.min.css +21 -0
- data/assets/theme/j1/modules/videojs/css/themes/uno.css +14 -3
- data/assets/theme/j1/modules/videojs/css/themes/uno.min.css +1 -1
- data/assets/theme/j1/modules/videojs/css/videojs.css +1 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/LICENSE +13 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/README.md +75 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/autocaption.js +149 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/autocaption.min.js +21 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/README.md +76 -30
- data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/hotkeys.js +64 -53
- data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/hotkeys.min.js +1 -1
- data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/README.md +133 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/skipbuttons.js +137 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/skipbuttons.min.js +21 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/zoom/zoom.js +15 -12
- data/assets/theme/j1/modules/videojs/js/plugins/players/dm/dailymotion.js +2 -2
- data/assets/theme/j1/modules/videojs/js/plugins/players/yt/youtube.js +43 -16
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.3/fastfilereaderext.so +0 -0
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.3/rubyeventmachine.so +0 -0
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.4/fastfilereaderext.so +0 -0
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.4/rubyeventmachine.so +0 -0
- data/lib/j1/version.rb +1 -1
- data/lib/j1_app/j1_auth_manager/config.rb +0 -4
- data/lib/starter_web/Gemfile +45 -22
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +4 -6
- data/lib/starter_web/_data/modules/amplitude.yml +67 -37
- data/lib/starter_web/_data/modules/defaults/amplitude.yml +1 -0
- data/lib/starter_web/_data/modules/defaults/gallery.yml +42 -0
- data/lib/starter_web/_data/modules/defaults/videojs.yml +107 -0
- data/lib/starter_web/_data/modules/gallery.yml +30 -14
- data/lib/starter_web/_data/modules/lazyLoader.yml +8 -8
- data/lib/starter_web/_data/modules/masonry.yml +15 -0
- data/lib/starter_web/_data/modules/masterslider.yml +6 -6
- data/lib/starter_web/_data/modules/videojs.yml +57 -0
- data/lib/starter_web/_data/resources.yml +9 -26
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_includes/tables/jekyll_variables.asciidoc +1 -0
- data/lib/starter_web/_plugins/asciidoctor/carousel-block.rb +2 -1
- data/lib/starter_web/_plugins/asciidoctor/dailymotion-block.rb +4 -1
- data/lib/starter_web/_plugins/asciidoctor/lightbox-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/masterslider-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/slick-block.rb +2 -1
- data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +145 -24
- data/lib/starter_web/_plugins/asciidoctor/vimeo-block.rb +4 -1
- data/lib/starter_web/_plugins/asciidoctor/wistia-block.rb +313 -0
- data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +192 -17
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/audio/cover/spontanorama/spontanorama.jpg +0 -0
- data/lib/starter_web/assets/audio/cover/spontanorama/src/spontanorama.png +0 -0
- data/lib/starter_web/assets/audio/cover/spontanorama/src/spontanorama.psd +0 -0
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/amplitude_yt_tester.adoc +20 -7
- data/lib/starter_web/pages/public/manuals/integrations/amplitudejs/amplitudejs-api.adoc +1 -1
- data/lib/starter_web/pages/public/manuals/integrations/videojs/youtube-api.adoc +1638 -0
- data/lib/starter_web/pages/public/tools/previewer/preview_bootstrap_theme.adoc +5 -6
- data/lib/starter_web/pages/public/tools/previewer/preview_videojs.adoc +203 -0
- data/lib/starter_web/pages/public/tour/asciidoc_extensions.adoc +1 -1
- data/lib/starter_web/pages/public/tour/bootstrap_themes.adoc +1 -1
- data/lib/starter_web/pages/public/tour/highlghter_rouge.adoc +1 -1
- data/lib/starter_web/pages/public/tour/modal_extentions.adoc +1 -1
- data/lib/starter_web/pages/public/tour/play_audio.adoc +30 -29
- data/lib/starter_web/pages/public/tour/play_video.adoc +65 -39
- data/lib/starter_web/pages/public/tour/present_images.adoc +17 -16
- data/lib/starter_web/pages/public/tour/quicksearch.adoc +1 -1
- data/lib/starter_web/pages/public/tour/responsive_tables.adoc +1 -1
- data/lib/starter_web/pages/public/tour/typography.adoc +1 -1
- metadata +37 -20
- data/assets/data/amplitude.28.html +0 -887
- data/assets/data/amplitude.29.html +0 -923
- data/assets/theme/j1/adapter/js/amplitude.23.js +0 -1165
- data/assets/theme/j1/adapter/js/amplitude.24.js +0 -1164
- data/assets/theme/j1/adapter/js/amplitude.25.js +0 -1268
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/_pause.svg +0 -19
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/_play.svg +0 -18
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/show-playlist.svg +0 -15
- data/assets/theme/j1/modules/jqueryScrollbar/LICENSE +0 -20
- data/assets/theme/j1/modules/jqueryScrollbar/README.md +0 -28
- data/assets/theme/j1/modules/jqueryScrollbar/css/scrollbar.css +0 -939
- data/assets/theme/j1/modules/jqueryScrollbar/css/scrollbar.min.css +0 -20
- data/assets/theme/j1/modules/jqueryScrollbar/js/scrollbar.js +0 -851
- data/assets/theme/j1/modules/jqueryScrollbar/js/scrollbar.min.js +0 -36
- data/assets/theme/j1/modules/jqueryScrollbar/sass/scrollbar.scss +0 -806
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.0.js +0 -794
- data/lib/starter_web/_data/modules/lazyLoader.0.yml +0 -118
@@ -36,7 +36,7 @@ module.exports = function (j1, window) {
|
|
36
36
|
// _init_
|
37
37
|
// Global initializer for the adapter object
|
38
38
|
// -------------------------------------------------------------------------
|
39
|
-
_init_: function
|
39
|
+
_init_: function () {
|
40
40
|
return;
|
41
41
|
} // END _init_
|
42
42
|
}; // END return
|
@@ -180,46 +180,46 @@ function applyArguments(func, args) {
|
|
180
180
|
return func.apply(null, args);
|
181
181
|
}
|
182
182
|
var is = {
|
183
|
-
arr: function
|
183
|
+
arr: function (a) {
|
184
184
|
return Array.isArray(a);
|
185
185
|
},
|
186
|
-
obj: function
|
186
|
+
obj: function (a) {
|
187
187
|
return stringContains(Object.prototype.toString.call(a), 'Object');
|
188
188
|
},
|
189
|
-
pth: function
|
189
|
+
pth: function (a) {
|
190
190
|
return is.obj(a) && a.hasOwnProperty('totalLength');
|
191
191
|
},
|
192
|
-
svg: function
|
192
|
+
svg: function (a) {
|
193
193
|
return a instanceof SVGElement;
|
194
194
|
},
|
195
|
-
inp: function
|
195
|
+
inp: function (a) {
|
196
196
|
return a instanceof HTMLInputElement;
|
197
197
|
},
|
198
|
-
dom: function
|
198
|
+
dom: function (a) {
|
199
199
|
return a.nodeType || is.svg(a);
|
200
200
|
},
|
201
|
-
str: function
|
201
|
+
str: function (a) {
|
202
202
|
return typeof a === 'string';
|
203
203
|
},
|
204
|
-
fnc: function
|
204
|
+
fnc: function (a) {
|
205
205
|
return typeof a === 'function';
|
206
206
|
},
|
207
|
-
und: function
|
207
|
+
und: function (a) {
|
208
208
|
return typeof a === 'undefined';
|
209
209
|
},
|
210
|
-
hex: function
|
210
|
+
hex: function (a) {
|
211
211
|
return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a);
|
212
212
|
},
|
213
|
-
rgb: function
|
213
|
+
rgb: function (a) {
|
214
214
|
return /^rgb/.test(a);
|
215
215
|
},
|
216
|
-
hsl: function
|
216
|
+
hsl: function (a) {
|
217
217
|
return /^hsl/.test(a);
|
218
218
|
},
|
219
|
-
col: function
|
219
|
+
col: function (a) {
|
220
220
|
return is.hex(a) || is.rgb(a) || is.hsl(a);
|
221
221
|
},
|
222
|
-
key: function
|
222
|
+
key: function (a) {
|
223
223
|
return !defaultInstanceSettings.hasOwnProperty(a) && !defaultTweenSettings.hasOwnProperty(a) && a !== 'targets' && a !== 'keyframes';
|
224
224
|
}
|
225
225
|
};
|
@@ -384,29 +384,29 @@ var penner = function () {
|
|
384
384
|
// Based on jQuery UI's implemenation of easing equations from Robert Penner (http://www.robertpenner.com/easing)
|
385
385
|
|
386
386
|
var eases = {
|
387
|
-
linear: function
|
387
|
+
linear: function () {
|
388
388
|
return function (t) {
|
389
389
|
return t;
|
390
390
|
};
|
391
391
|
}
|
392
392
|
};
|
393
393
|
var functionEasings = {
|
394
|
-
Sine: function
|
394
|
+
Sine: function () {
|
395
395
|
return function (t) {
|
396
396
|
return 1 - Math.cos(t * Math.PI / 2);
|
397
397
|
};
|
398
398
|
},
|
399
|
-
Circ: function
|
399
|
+
Circ: function () {
|
400
400
|
return function (t) {
|
401
401
|
return 1 - Math.sqrt(1 - t * t);
|
402
402
|
};
|
403
403
|
},
|
404
|
-
Back: function
|
404
|
+
Back: function () {
|
405
405
|
return function (t) {
|
406
406
|
return t * t * (3 * t - 2);
|
407
407
|
};
|
408
408
|
},
|
409
|
-
Bounce: function
|
409
|
+
Bounce: function () {
|
410
410
|
return function (t) {
|
411
411
|
var pow2,
|
412
412
|
b = 4;
|
@@ -414,7 +414,7 @@ var penner = function () {
|
|
414
414
|
return 1 / Math.pow(4, 3 - b) - 7.5625 * Math.pow((pow2 * 3 - 2) / 22 - t, 2);
|
415
415
|
};
|
416
416
|
},
|
417
|
-
Elastic: function
|
417
|
+
Elastic: function (amplitude, period) {
|
418
418
|
if (amplitude === void 0) amplitude = 1;
|
419
419
|
if (period === void 0) period = .5;
|
420
420
|
var a = minMax(amplitude, 1, 10);
|
@@ -956,7 +956,7 @@ function flattenKeyframes(keyframes) {
|
|
956
956
|
return a;
|
957
957
|
}, []);
|
958
958
|
var properties = {};
|
959
|
-
var loop = function
|
959
|
+
var loop = function (i) {
|
960
960
|
var propName = propertyNames[i];
|
961
961
|
properties[propName] = keyframes.map(function (key) {
|
962
962
|
var newKey = {};
|
@@ -1045,16 +1045,16 @@ function normalizeTweens(prop, animatable) {
|
|
1045
1045
|
// Tween progress
|
1046
1046
|
|
1047
1047
|
var setProgressValue = {
|
1048
|
-
css: function
|
1048
|
+
css: function (t, p, v) {
|
1049
1049
|
return t.style[p] = v;
|
1050
1050
|
},
|
1051
|
-
attribute: function
|
1051
|
+
attribute: function (t, p, v) {
|
1052
1052
|
return t.setAttribute(p, v);
|
1053
1053
|
},
|
1054
|
-
object: function
|
1054
|
+
object: function (t, p, v) {
|
1055
1055
|
return t[p] = v;
|
1056
1056
|
},
|
1057
|
-
transform: function
|
1057
|
+
transform: function (t, p, v, transforms, manual) {
|
1058
1058
|
transforms.list.set(p, v);
|
1059
1059
|
if (p === transforms.last || manual) {
|
1060
1060
|
var str = '';
|
@@ -1116,7 +1116,7 @@ function getAnimations(animatables, properties) {
|
|
1116
1116
|
|
1117
1117
|
function getInstanceTimings(animations, tweenSettings) {
|
1118
1118
|
var animLength = animations.length;
|
1119
|
-
var getTlOffset = function
|
1119
|
+
var getTlOffset = function (anim) {
|
1120
1120
|
return anim.timelineOffset ? anim.timelineOffset : 0;
|
1121
1121
|
};
|
1122
1122
|
var timings = {};
|
@@ -1673,7 +1673,7 @@ module.exports = function asciidoctor(options) {
|
|
1673
1673
|
// -------------------------------------------------------------------------
|
1674
1674
|
// module initializer
|
1675
1675
|
// -------------------------------------------------------------------------
|
1676
|
-
init: function
|
1676
|
+
init: function (options) {
|
1677
1677
|
var moduleOptions = options;
|
1678
1678
|
var logger = log4javascript.getLogger('j1.core.asciidoctor');
|
1679
1679
|
var logText;
|
@@ -1691,7 +1691,7 @@ module.exports = function asciidoctor(options) {
|
|
1691
1691
|
// manage callouts (HTML)
|
1692
1692
|
// -------------------------------------------------------------------------
|
1693
1693
|
// see: https://stackoverflow.com/questions/19393493/add-colgroup-for-each-table-column
|
1694
|
-
callouts: function
|
1694
|
+
callouts: function (options) {
|
1695
1695
|
var colgroupList = '';
|
1696
1696
|
|
1697
1697
|
// If the colist does not have a <colgroup> structure
|
@@ -1707,7 +1707,7 @@ module.exports = function asciidoctor(options) {
|
|
1707
1707
|
// -------------------------------------------------------------------------
|
1708
1708
|
// manage callouts (HTML)
|
1709
1709
|
// -------------------------------------------------------------------------
|
1710
|
-
conums: function
|
1710
|
+
conums: function (options) {
|
1711
1711
|
var dependencies_met_page_finished = setInterval(function () {
|
1712
1712
|
if (j1.getState() == 'finished') {
|
1713
1713
|
// If the colist does not have a <colgroup> structure
|
@@ -1743,17 +1743,16 @@ module.exports = function asciidoctor(options) {
|
|
1743
1743
|
/*JS Lint helpers: */
|
1744
1744
|
/*global dragMove: false, dragEnd: false, $, jQuery, alert, window, document */
|
1745
1745
|
/*jslint nomen: true, continue:true */
|
1746
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
1747
1746
|
(function ($, window, document) {
|
1748
1747
|
var Carousel = {
|
1749
|
-
init: function
|
1748
|
+
init: function (options, el) {
|
1750
1749
|
var base = this;
|
1751
1750
|
base.$elem = $(el);
|
1752
1751
|
base.options = $.extend({}, $.fn.owlCarousel.options, base.$elem.data(), options);
|
1753
1752
|
base.userOptions = options;
|
1754
1753
|
base.loadContent();
|
1755
1754
|
},
|
1756
|
-
loadContent: function
|
1755
|
+
loadContent: function () {
|
1757
1756
|
var base = this,
|
1758
1757
|
url;
|
1759
1758
|
function getData(data) {
|
@@ -1781,7 +1780,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
1781
1780
|
base.logIn();
|
1782
1781
|
}
|
1783
1782
|
},
|
1784
|
-
logIn: function
|
1783
|
+
logIn: function () {
|
1785
1784
|
var base = this;
|
1786
1785
|
base.$elem.data({
|
1787
1786
|
"owl-originalStyles": base.$elem.attr("style"),
|
@@ -1796,7 +1795,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
1796
1795
|
base.checkVisible = null;
|
1797
1796
|
base.setVars();
|
1798
1797
|
},
|
1799
|
-
setVars: function
|
1798
|
+
setVars: function () {
|
1800
1799
|
var base = this;
|
1801
1800
|
if (base.$elem.children().length === 0) {
|
1802
1801
|
return false;
|
@@ -1815,7 +1814,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
1815
1814
|
base.customEvents();
|
1816
1815
|
base.onStartup();
|
1817
1816
|
},
|
1818
|
-
onStartup: function
|
1817
|
+
onStartup: function () {
|
1819
1818
|
var base = this;
|
1820
1819
|
base.updateItems();
|
1821
1820
|
base.calculateAll();
|
@@ -1844,7 +1843,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
1844
1843
|
base.options.afterInit.apply(this, [base.$elem]);
|
1845
1844
|
}
|
1846
1845
|
},
|
1847
|
-
eachMoveUpdate: function
|
1846
|
+
eachMoveUpdate: function () {
|
1848
1847
|
var base = this;
|
1849
1848
|
if (base.options.lazyLoad === true) {
|
1850
1849
|
base.lazyLoad();
|
@@ -1857,7 +1856,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
1857
1856
|
base.options.afterAction.apply(this, [base.$elem]);
|
1858
1857
|
}
|
1859
1858
|
},
|
1860
|
-
updateVars: function
|
1859
|
+
updateVars: function () {
|
1861
1860
|
var base = this;
|
1862
1861
|
if (typeof base.options.beforeUpdate === "function") {
|
1863
1862
|
base.options.beforeUpdate.apply(this, [base.$elem]);
|
@@ -1872,13 +1871,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
1872
1871
|
base.options.afterUpdate.apply(this, [base.$elem]);
|
1873
1872
|
}
|
1874
1873
|
},
|
1875
|
-
reload: function
|
1874
|
+
reload: function () {
|
1876
1875
|
var base = this;
|
1877
1876
|
window.setTimeout(function () {
|
1878
1877
|
base.updateVars();
|
1879
1878
|
}, 0);
|
1880
1879
|
},
|
1881
|
-
watchVisibility: function
|
1880
|
+
watchVisibility: function () {
|
1882
1881
|
var base = this;
|
1883
1882
|
if (base.$elem.is(":visible") === false) {
|
1884
1883
|
base.$elem.css({
|
@@ -1899,14 +1898,14 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
1899
1898
|
}
|
1900
1899
|
}, 500);
|
1901
1900
|
},
|
1902
|
-
wrapItems: function
|
1901
|
+
wrapItems: function () {
|
1903
1902
|
var base = this;
|
1904
1903
|
base.$userItems.wrapAll("<div class=\"owl-wrapper\">").wrap("<div class=\"owl-item\"></div>");
|
1905
1904
|
base.$elem.find(".owl-wrapper").wrap("<div class=\"owl-wrapper-outer\">");
|
1906
1905
|
base.wrapperOuter = base.$elem.find(".owl-wrapper-outer");
|
1907
1906
|
base.$elem.css("display", "block");
|
1908
1907
|
},
|
1909
|
-
baseClass: function
|
1908
|
+
baseClass: function () {
|
1910
1909
|
var base = this,
|
1911
1910
|
hasBaseClass = base.$elem.hasClass(base.options.baseClass),
|
1912
1911
|
hasThemeClass = base.$elem.hasClass(base.options.theme);
|
@@ -1917,7 +1916,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
1917
1916
|
base.$elem.addClass(base.options.theme);
|
1918
1917
|
}
|
1919
1918
|
},
|
1920
|
-
updateItems: function
|
1919
|
+
updateItems: function () {
|
1921
1920
|
var base = this,
|
1922
1921
|
width,
|
1923
1922
|
i;
|
@@ -1971,7 +1970,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
1971
1970
|
base.options.items = base.itemsAmount;
|
1972
1971
|
}
|
1973
1972
|
},
|
1974
|
-
response: function
|
1973
|
+
response: function () {
|
1975
1974
|
var base = this,
|
1976
1975
|
smallDelay,
|
1977
1976
|
lastWindowWidth;
|
@@ -1993,14 +1992,14 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
1993
1992
|
};
|
1994
1993
|
$(window).resize(base.resizer);
|
1995
1994
|
},
|
1996
|
-
updatePosition: function
|
1995
|
+
updatePosition: function () {
|
1997
1996
|
var base = this;
|
1998
1997
|
base.jumpTo(base.currentItem);
|
1999
1998
|
if (base.options.autoPlay !== false) {
|
2000
1999
|
base.checkAp();
|
2001
2000
|
}
|
2002
2001
|
},
|
2003
|
-
appendItemsSizes: function
|
2002
|
+
appendItemsSizes: function () {
|
2004
2003
|
var base = this,
|
2005
2004
|
roundPages = 0,
|
2006
2005
|
lastItem = base.itemsAmount - base.options.items;
|
@@ -2017,7 +2016,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2017
2016
|
$this.data("owl-roundPages", roundPages);
|
2018
2017
|
});
|
2019
2018
|
},
|
2020
|
-
appendWrapperSizes: function
|
2019
|
+
appendWrapperSizes: function () {
|
2021
2020
|
var base = this,
|
2022
2021
|
width = base.$owlItems.length * base.itemWidth;
|
2023
2022
|
base.$owlWrapper.css({
|
@@ -2026,18 +2025,18 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2026
2025
|
});
|
2027
2026
|
base.appendItemsSizes();
|
2028
2027
|
},
|
2029
|
-
calculateAll: function
|
2028
|
+
calculateAll: function () {
|
2030
2029
|
var base = this;
|
2031
2030
|
base.calculateWidth();
|
2032
2031
|
base.appendWrapperSizes();
|
2033
2032
|
base.loops();
|
2034
2033
|
base.max();
|
2035
2034
|
},
|
2036
|
-
calculateWidth: function
|
2035
|
+
calculateWidth: function () {
|
2037
2036
|
var base = this;
|
2038
2037
|
base.itemWidth = Math.round(base.$elem.width() / base.options.items);
|
2039
2038
|
},
|
2040
|
-
max: function
|
2039
|
+
max: function () {
|
2041
2040
|
var base = this,
|
2042
2041
|
maximum = (base.itemsAmount * base.itemWidth - base.options.items * base.itemWidth) * -1;
|
2043
2042
|
if (base.options.items > base.itemsAmount) {
|
@@ -2050,10 +2049,10 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2050
2049
|
}
|
2051
2050
|
return maximum;
|
2052
2051
|
},
|
2053
|
-
min: function
|
2052
|
+
min: function () {
|
2054
2053
|
return 0;
|
2055
2054
|
},
|
2056
|
-
loops: function
|
2055
|
+
loops: function () {
|
2057
2056
|
var base = this,
|
2058
2057
|
prev = 0,
|
2059
2058
|
elWidth = 0,
|
@@ -2075,7 +2074,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2075
2074
|
}
|
2076
2075
|
}
|
2077
2076
|
},
|
2078
|
-
buildControls: function
|
2077
|
+
buildControls: function () {
|
2079
2078
|
var base = this;
|
2080
2079
|
if (base.options.navigation === true || base.options.pagination === true) {
|
2081
2080
|
base.owlControls = $("<div class=\"owl-controls\"/>").toggleClass("clickable", !base.browser.isTouch).appendTo(base.$elem);
|
@@ -2087,7 +2086,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2087
2086
|
base.buildButtons();
|
2088
2087
|
}
|
2089
2088
|
},
|
2090
|
-
buildButtons: function
|
2089
|
+
buildButtons: function () {
|
2091
2090
|
var base = this,
|
2092
2091
|
buttonsWrapper = $("<div class=\"owl-buttons\"/>");
|
2093
2092
|
base.owlControls.append(buttonsWrapper);
|
@@ -2112,7 +2111,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2112
2111
|
}
|
2113
2112
|
});
|
2114
2113
|
},
|
2115
|
-
buildPagination: function
|
2114
|
+
buildPagination: function () {
|
2116
2115
|
var base = this;
|
2117
2116
|
base.paginationWrapper = $("<div class=\"owl-pagination\"/>");
|
2118
2117
|
base.owlControls.append(base.paginationWrapper);
|
@@ -2123,7 +2122,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2123
2122
|
}
|
2124
2123
|
});
|
2125
2124
|
},
|
2126
|
-
updatePagination: function
|
2125
|
+
updatePagination: function () {
|
2127
2126
|
var base = this,
|
2128
2127
|
counter,
|
2129
2128
|
lastPage,
|
@@ -2158,7 +2157,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2158
2157
|
}
|
2159
2158
|
base.checkPagination();
|
2160
2159
|
},
|
2161
|
-
checkPagination: function
|
2160
|
+
checkPagination: function () {
|
2162
2161
|
var base = this;
|
2163
2162
|
if (base.options.pagination === false) {
|
2164
2163
|
return false;
|
@@ -2170,7 +2169,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2170
2169
|
}
|
2171
2170
|
});
|
2172
2171
|
},
|
2173
|
-
checkNavigation: function
|
2172
|
+
checkNavigation: function () {
|
2174
2173
|
var base = this;
|
2175
2174
|
if (base.options.navigation === false) {
|
2176
2175
|
return false;
|
@@ -2191,7 +2190,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2191
2190
|
}
|
2192
2191
|
}
|
2193
2192
|
},
|
2194
|
-
updateControls: function
|
2193
|
+
updateControls: function () {
|
2195
2194
|
var base = this;
|
2196
2195
|
base.updatePagination();
|
2197
2196
|
base.checkNavigation();
|
@@ -2203,13 +2202,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2203
2202
|
}
|
2204
2203
|
}
|
2205
2204
|
},
|
2206
|
-
destroyControls: function
|
2205
|
+
destroyControls: function () {
|
2207
2206
|
var base = this;
|
2208
2207
|
if (base.owlControls) {
|
2209
2208
|
base.owlControls.remove();
|
2210
2209
|
}
|
2211
2210
|
},
|
2212
|
-
next: function
|
2211
|
+
next: function (speed) {
|
2213
2212
|
var base = this;
|
2214
2213
|
if (base.isTransition) {
|
2215
2214
|
return false;
|
@@ -2226,7 +2225,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2226
2225
|
}
|
2227
2226
|
base.goTo(base.currentItem, speed);
|
2228
2227
|
},
|
2229
|
-
prev: function
|
2228
|
+
prev: function (speed) {
|
2230
2229
|
var base = this;
|
2231
2230
|
if (base.isTransition) {
|
2232
2231
|
return false;
|
@@ -2247,7 +2246,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2247
2246
|
}
|
2248
2247
|
base.goTo(base.currentItem, speed);
|
2249
2248
|
},
|
2250
|
-
goTo: function
|
2249
|
+
goTo: function (position, speed, drag) {
|
2251
2250
|
var base = this,
|
2252
2251
|
goToPixel;
|
2253
2252
|
if (base.isTransition) {
|
@@ -2304,7 +2303,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2304
2303
|
}
|
2305
2304
|
base.afterGo();
|
2306
2305
|
},
|
2307
|
-
jumpTo: function
|
2306
|
+
jumpTo: function (position) {
|
2308
2307
|
var base = this;
|
2309
2308
|
if (typeof base.options.beforeMove === "function") {
|
2310
2309
|
base.options.beforeMove.apply(this, [base.$elem]);
|
@@ -2323,7 +2322,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2323
2322
|
base.currentItem = base.owl.currentItem = position;
|
2324
2323
|
base.afterGo();
|
2325
2324
|
},
|
2326
|
-
afterGo: function
|
2325
|
+
afterGo: function () {
|
2327
2326
|
var base = this;
|
2328
2327
|
base.prevArr.push(base.currentItem);
|
2329
2328
|
base.prevItem = base.owl.prevItem = base.prevArr[base.prevArr.length - 2];
|
@@ -2340,18 +2339,18 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2340
2339
|
base.options.afterMove.apply(this, [base.$elem]);
|
2341
2340
|
}
|
2342
2341
|
},
|
2343
|
-
stop: function
|
2342
|
+
stop: function () {
|
2344
2343
|
var base = this;
|
2345
2344
|
base.apStatus = "stop";
|
2346
2345
|
window.clearInterval(base.autoPlayInterval);
|
2347
2346
|
},
|
2348
|
-
checkAp: function
|
2347
|
+
checkAp: function () {
|
2349
2348
|
var base = this;
|
2350
2349
|
if (base.apStatus !== "stop") {
|
2351
2350
|
base.play();
|
2352
2351
|
}
|
2353
2352
|
},
|
2354
|
-
play: function
|
2353
|
+
play: function () {
|
2355
2354
|
var base = this;
|
2356
2355
|
base.apStatus = "play";
|
2357
2356
|
if (base.options.autoPlay === false) {
|
@@ -2362,7 +2361,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2362
2361
|
base.next(true);
|
2363
2362
|
}, base.options.autoPlay);
|
2364
2363
|
},
|
2365
|
-
swapSpeed: function
|
2364
|
+
swapSpeed: function (action) {
|
2366
2365
|
var base = this;
|
2367
2366
|
if (action === "slideSpeed") {
|
2368
2367
|
base.$owlWrapper.css(base.addCssSpeed(base.options.slideSpeed));
|
@@ -2372,7 +2371,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2372
2371
|
base.$owlWrapper.css(base.addCssSpeed(action));
|
2373
2372
|
}
|
2374
2373
|
},
|
2375
|
-
addCssSpeed: function
|
2374
|
+
addCssSpeed: function (speed) {
|
2376
2375
|
return {
|
2377
2376
|
"-webkit-transition": "all " + speed + "ms ease",
|
2378
2377
|
"-moz-transition": "all " + speed + "ms ease",
|
@@ -2380,7 +2379,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2380
2379
|
"transition": "all " + speed + "ms ease"
|
2381
2380
|
};
|
2382
2381
|
},
|
2383
|
-
removeTransition: function
|
2382
|
+
removeTransition: function () {
|
2384
2383
|
return {
|
2385
2384
|
"-webkit-transition": "",
|
2386
2385
|
"-moz-transition": "",
|
@@ -2388,7 +2387,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2388
2387
|
"transition": ""
|
2389
2388
|
};
|
2390
2389
|
},
|
2391
|
-
doTranslate: function
|
2390
|
+
doTranslate: function (pixels) {
|
2392
2391
|
return {
|
2393
2392
|
"-webkit-transform": "translate3d(" + pixels + "px, 0px, 0px)",
|
2394
2393
|
"-moz-transform": "translate3d(" + pixels + "px, 0px, 0px)",
|
@@ -2397,29 +2396,29 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2397
2396
|
"transform": "translate3d(" + pixels + "px, 0px,0px)"
|
2398
2397
|
};
|
2399
2398
|
},
|
2400
|
-
transition3d: function
|
2399
|
+
transition3d: function (value) {
|
2401
2400
|
var base = this;
|
2402
2401
|
base.$owlWrapper.css(base.doTranslate(value));
|
2403
2402
|
},
|
2404
|
-
css2move: function
|
2403
|
+
css2move: function (value) {
|
2405
2404
|
var base = this;
|
2406
2405
|
base.$owlWrapper.css({
|
2407
2406
|
"left": value
|
2408
2407
|
});
|
2409
2408
|
},
|
2410
|
-
css2slide: function
|
2409
|
+
css2slide: function (value, speed) {
|
2411
2410
|
var base = this;
|
2412
2411
|
base.isCssFinish = false;
|
2413
2412
|
base.$owlWrapper.stop(true, true).animate({
|
2414
2413
|
"left": value
|
2415
2414
|
}, {
|
2416
2415
|
duration: speed || base.options.slideSpeed,
|
2417
|
-
complete: function
|
2416
|
+
complete: function () {
|
2418
2417
|
base.isCssFinish = true;
|
2419
2418
|
}
|
2420
2419
|
});
|
2421
2420
|
},
|
2422
|
-
checkBrowser: function
|
2421
|
+
checkBrowser: function () {
|
2423
2422
|
var base = this,
|
2424
2423
|
translate3D = "translate3d(0px, 0px, 0px)",
|
2425
2424
|
tempElem = document.createElement("div"),
|
@@ -2437,14 +2436,14 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2437
2436
|
"isTouch": isTouch
|
2438
2437
|
};
|
2439
2438
|
},
|
2440
|
-
moveEvents: function
|
2439
|
+
moveEvents: function () {
|
2441
2440
|
var base = this;
|
2442
2441
|
if (base.options.mouseDrag !== false || base.options.touchDrag !== false) {
|
2443
2442
|
base.gestures();
|
2444
2443
|
base.disabledEvents();
|
2445
2444
|
}
|
2446
2445
|
},
|
2447
|
-
eventTypes: function
|
2446
|
+
eventTypes: function () {
|
2448
2447
|
var base = this,
|
2449
2448
|
types = ["s", "e", "x"];
|
2450
2449
|
base.ev_types = {};
|
@@ -2459,7 +2458,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2459
2458
|
base.ev_types.move = types[1];
|
2460
2459
|
base.ev_types.end = types[2];
|
2461
2460
|
},
|
2462
|
-
disabledEvents: function
|
2461
|
+
disabledEvents: function () {
|
2463
2462
|
var base = this;
|
2464
2463
|
base.$elem.on("dragstart.owl", function (event) {
|
2465
2464
|
event.preventDefault();
|
@@ -2468,7 +2467,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2468
2467
|
return $(e.target).is('input, textarea, select, option');
|
2469
2468
|
});
|
2470
2469
|
},
|
2471
|
-
gestures: function
|
2470
|
+
gestures: function () {
|
2472
2471
|
/*jslint unparam: true*/
|
2473
2472
|
var base = this,
|
2474
2473
|
locals = {
|
@@ -2569,10 +2568,10 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2569
2568
|
if ((base.newPosY > 10 || base.newPosY < -10) && locals.sliding === false) {
|
2570
2569
|
$(document).off("touchmove.owl");
|
2571
2570
|
}
|
2572
|
-
minSwipe = function
|
2571
|
+
minSwipe = function () {
|
2573
2572
|
return base.newRelativeX / 5;
|
2574
2573
|
};
|
2575
|
-
maxSwipe = function
|
2574
|
+
maxSwipe = function () {
|
2576
2575
|
return base.maximumPixels + base.newRelativeX / 5;
|
2577
2576
|
};
|
2578
2577
|
base.newPosX = Math.max(Math.min(base.newPosX, minSwipe()), maxSwipe());
|
@@ -2616,7 +2615,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2616
2615
|
}
|
2617
2616
|
base.$elem.on(base.ev_types.start, ".owl-wrapper", dragStart);
|
2618
2617
|
},
|
2619
|
-
getNewPosition: function
|
2618
|
+
getNewPosition: function () {
|
2620
2619
|
var base = this,
|
2621
2620
|
newPosition = base.closestItem();
|
2622
2621
|
if (newPosition > base.maximumItem) {
|
@@ -2628,7 +2627,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2628
2627
|
}
|
2629
2628
|
return newPosition;
|
2630
2629
|
},
|
2631
|
-
closestItem: function
|
2630
|
+
closestItem: function () {
|
2632
2631
|
var base = this,
|
2633
2632
|
array = base.options.scrollPerPage === true ? base.pagesInArray : base.positionsInArray,
|
2634
2633
|
goal = base.newPosX,
|
@@ -2653,7 +2652,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2653
2652
|
});
|
2654
2653
|
return base.currentItem;
|
2655
2654
|
},
|
2656
|
-
moveDirection: function
|
2655
|
+
moveDirection: function () {
|
2657
2656
|
var base = this,
|
2658
2657
|
direction;
|
2659
2658
|
if (base.newRelativeX < 0) {
|
@@ -2665,7 +2664,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2665
2664
|
}
|
2666
2665
|
return direction;
|
2667
2666
|
},
|
2668
|
-
customEvents: function
|
2667
|
+
customEvents: function () {
|
2669
2668
|
/*jslint unparam: true*/
|
2670
2669
|
var base = this;
|
2671
2670
|
base.$elem.on("owl.next", function () {
|
@@ -2690,7 +2689,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2690
2689
|
base.jumpTo(item);
|
2691
2690
|
});
|
2692
2691
|
},
|
2693
|
-
stopOnHover: function
|
2692
|
+
stopOnHover: function () {
|
2694
2693
|
var base = this;
|
2695
2694
|
if (base.options.stopOnHover === true && base.browser.isTouch !== true && base.options.autoPlay !== false) {
|
2696
2695
|
base.$elem.on("mouseover", function () {
|
@@ -2703,7 +2702,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2703
2702
|
});
|
2704
2703
|
}
|
2705
2704
|
},
|
2706
|
-
lazyLoad: function
|
2705
|
+
lazyLoad: function () {
|
2707
2706
|
var base = this,
|
2708
2707
|
i,
|
2709
2708
|
$item,
|
@@ -2740,7 +2739,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2740
2739
|
}
|
2741
2740
|
}
|
2742
2741
|
},
|
2743
|
-
lazyPreload: function
|
2742
|
+
lazyPreload: function ($item, $lazyImg) {
|
2744
2743
|
var base = this,
|
2745
2744
|
iterations = 0,
|
2746
2745
|
isBackgroundImg;
|
@@ -2775,7 +2774,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2775
2774
|
}
|
2776
2775
|
checkLazyImage();
|
2777
2776
|
},
|
2778
|
-
autoHeight: function
|
2777
|
+
autoHeight: function () {
|
2779
2778
|
var base = this,
|
2780
2779
|
$currentimg = $(base.$owlItems[base.currentItem]).find("img"),
|
2781
2780
|
iterations;
|
@@ -2806,18 +2805,18 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2806
2805
|
addHeight();
|
2807
2806
|
}
|
2808
2807
|
},
|
2809
|
-
completeImg: function
|
2808
|
+
completeImg: function (img) {
|
2810
2809
|
var naturalWidthType;
|
2811
2810
|
if (!img.complete) {
|
2812
2811
|
return false;
|
2813
2812
|
}
|
2814
|
-
naturalWidthType =
|
2813
|
+
naturalWidthType = typeof img.naturalWidth;
|
2815
2814
|
if (naturalWidthType !== "undefined" && img.naturalWidth === 0) {
|
2816
2815
|
return false;
|
2817
2816
|
}
|
2818
2817
|
return true;
|
2819
2818
|
},
|
2820
|
-
onVisibleItems: function
|
2819
|
+
onVisibleItems: function () {
|
2821
2820
|
var base = this,
|
2822
2821
|
i;
|
2823
2822
|
if (base.options.addClassActive === true) {
|
@@ -2832,13 +2831,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2832
2831
|
}
|
2833
2832
|
base.owl.visibleItems = base.visibleItems;
|
2834
2833
|
},
|
2835
|
-
transitionTypes: function
|
2834
|
+
transitionTypes: function (className) {
|
2836
2835
|
var base = this;
|
2837
2836
|
//Currently available: "fade", "backSlide", "goDown", "fadeUp"
|
2838
2837
|
base.outClass = "owl-" + className + "-out";
|
2839
2838
|
base.inClass = "owl-" + className + "-in";
|
2840
2839
|
},
|
2841
|
-
singleItemTransition: function
|
2840
|
+
singleItemTransition: function () {
|
2842
2841
|
var base = this,
|
2843
2842
|
outClass = base.outClass,
|
2844
2843
|
inClass = base.inClass,
|
@@ -2870,7 +2869,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2870
2869
|
base.clearTransStyle($currentItem, inClass);
|
2871
2870
|
});
|
2872
2871
|
},
|
2873
|
-
clearTransStyle: function
|
2872
|
+
clearTransStyle: function (item, classToRemove) {
|
2874
2873
|
var base = this;
|
2875
2874
|
item.css({
|
2876
2875
|
"position": "",
|
@@ -2883,7 +2882,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2883
2882
|
base.isTransition = false;
|
2884
2883
|
}
|
2885
2884
|
},
|
2886
|
-
owlStatus: function
|
2885
|
+
owlStatus: function () {
|
2887
2886
|
var base = this;
|
2888
2887
|
base.owl = {
|
2889
2888
|
"userOptions": base.userOptions,
|
@@ -2898,13 +2897,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2898
2897
|
"dragDirection": base.dragDirection
|
2899
2898
|
};
|
2900
2899
|
},
|
2901
|
-
clearEvents: function
|
2900
|
+
clearEvents: function () {
|
2902
2901
|
var base = this;
|
2903
2902
|
base.$elem.off(".owl owl mousedown.disableTextSelect");
|
2904
2903
|
$(document).off(".owl owl");
|
2905
2904
|
$(window).off("resize", base.resizer);
|
2906
2905
|
},
|
2907
|
-
unWrap: function
|
2906
|
+
unWrap: function () {
|
2908
2907
|
var base = this;
|
2909
2908
|
if (base.$elem.children().length !== 0) {
|
2910
2909
|
base.$owlWrapper.unwrap();
|
@@ -2916,23 +2915,23 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2916
2915
|
base.clearEvents();
|
2917
2916
|
base.$elem.attr({
|
2918
2917
|
style: base.$elem.data("owl-originalStyles") || "",
|
2919
|
-
|
2918
|
+
class: base.$elem.data("owl-originalClasses")
|
2920
2919
|
});
|
2921
2920
|
},
|
2922
|
-
destroy: function
|
2921
|
+
destroy: function () {
|
2923
2922
|
var base = this;
|
2924
2923
|
base.stop();
|
2925
2924
|
window.clearInterval(base.checkVisible);
|
2926
2925
|
base.unWrap();
|
2927
2926
|
base.$elem.removeData();
|
2928
2927
|
},
|
2929
|
-
reinit: function
|
2928
|
+
reinit: function (newOptions) {
|
2930
2929
|
var base = this,
|
2931
2930
|
options = $.extend({}, base.userOptions, newOptions);
|
2932
2931
|
base.unWrap();
|
2933
2932
|
base.init(options, base.$elem);
|
2934
2933
|
},
|
2935
|
-
addItem: function
|
2934
|
+
addItem: function (htmlString, targetPosition) {
|
2936
2935
|
var base = this,
|
2937
2936
|
position;
|
2938
2937
|
if (!htmlString) {
|
@@ -2956,7 +2955,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
2956
2955
|
}
|
2957
2956
|
base.setVars();
|
2958
2957
|
},
|
2959
|
-
removeItem: function
|
2958
|
+
removeItem: function (targetPosition) {
|
2960
2959
|
var base = this,
|
2961
2960
|
position;
|
2962
2961
|
if (base.$elem.children().length === 0) {
|
@@ -3070,9 +3069,9 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
3070
3069
|
* Licensed under MIT License.
|
3071
3070
|
*/
|
3072
3071
|
module.exports = function (options) {
|
3073
|
-
|
3074
|
-
|
3075
|
-
|
3072
|
+
const defaultOptions = __webpack_require__(739);
|
3073
|
+
const ParseContent = __webpack_require__(482);
|
3074
|
+
const parseContent = ParseContent(defaultOptions);
|
3076
3075
|
|
3077
3076
|
// ---------------------------------------------------------------------------
|
3078
3077
|
// Global variables
|
@@ -3095,7 +3094,7 @@ module.exports = function (options) {
|
|
3095
3094
|
// _init_
|
3096
3095
|
// Global initializer for the core object
|
3097
3096
|
// -------------------------------------------------------------------------
|
3098
|
-
_init_: function
|
3097
|
+
_init_: function (options) {
|
3099
3098
|
//
|
3100
3099
|
// Place handling of options here
|
3101
3100
|
//
|
@@ -3107,7 +3106,7 @@ module.exports = function (options) {
|
|
3107
3106
|
// -------------------------------------------------------------------------
|
3108
3107
|
// Returns the current (processing) state of the module
|
3109
3108
|
// -------------------------------------------------------------------------
|
3110
|
-
getState: function
|
3109
|
+
getState: function () {
|
3111
3110
|
return state;
|
3112
3111
|
},
|
3113
3112
|
// END state
|
@@ -3116,7 +3115,7 @@ module.exports = function (options) {
|
|
3116
3115
|
// isMobile
|
3117
3116
|
// Return true if the current platform is a mobile device
|
3118
3117
|
// -------------------------------------------------------------------------
|
3119
|
-
isMobile: function
|
3118
|
+
isMobile: function (ua_name) {
|
3120
3119
|
var mobile = false;
|
3121
3120
|
(function (a) {
|
3122
3121
|
if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm|cell|chtm|cldc|cmd|co(mp|nd)|craw|da(it|ll|ng)|dbte|dcs|devi|dica|dmob|do(c|p)o|ds(12|d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(|_)|g1 u|g560|gene|gf5|gmo|go(\.w|od)|gr(ad|un)|haie|hcit|hd(m|p|t)|hei|hi(pt|ta)|hp( i|ip)|hsc|ht(c(| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i(20|go|ma)|i230|iac( ||\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|[a-w])|libw|lynx|m1w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|mcr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|([1-8]|c))|phil|pire|pl(ay|uc)|pn2|po(ck|rt|se)|prox|psio|ptg|qaa|qc(07|12|21|32|60|[2-7]|i)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h|oo|p)|sdk\/|se(c(|0|1)|47|mc|nd|ri)|sgh|shar|sie(|m)|sk0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h|v|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl|tdg|tel(i|m)|tim|tmo|to(pl|sh)|ts(70|m|m3|m5)|tx9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas|your|zeto|zte/i.test(a.substr(0, 4))) mobile = true;
|
@@ -3128,7 +3127,7 @@ module.exports = function (options) {
|
|
3128
3127
|
// -------------------------------------------------------------------------
|
3129
3128
|
// Clear button for input fields (forms)
|
3130
3129
|
// -------------------------------------------------------------------------
|
3131
|
-
bsFormClearButton: function
|
3130
|
+
bsFormClearButton: function () {
|
3132
3131
|
// $('.position-relative :input').on('keydown focus', function() {
|
3133
3132
|
$(':input').on('keydown focus change mouseover', function () {
|
3134
3133
|
if ($(this).val().length > 0) {
|
@@ -3152,7 +3151,7 @@ module.exports = function (options) {
|
|
3152
3151
|
// -------------------------------------------------------------------------
|
3153
3152
|
// Initialize Backdrops on all <p> elements of class "dropcap"
|
3154
3153
|
// -------------------------------------------------------------------------
|
3155
|
-
createDropCap: function
|
3154
|
+
createDropCap: function () {
|
3156
3155
|
// add class dropcap
|
3157
3156
|
$('.paragraph.dropcap').children('p').addClass('dropcap');
|
3158
3157
|
|
@@ -3172,7 +3171,7 @@ module.exports = function (options) {
|
|
3172
3171
|
// -------------------------------------------------------------------------
|
3173
3172
|
// Initialize Backdrops on all <p> elements of class "dropcap"
|
3174
3173
|
// -------------------------------------------------------------------------
|
3175
|
-
parseHeadings: function
|
3174
|
+
parseHeadings: function () {
|
3176
3175
|
var headings = parseContent.selectHeadings('.js-toc-content', 'h2, h3, h4, h5, h6');
|
3177
3176
|
return headings;
|
3178
3177
|
} // END parseContent
|
@@ -3243,7 +3242,7 @@ module.exports = {
|
|
3243
3242
|
// Smooth scroll offset.
|
3244
3243
|
scrollSmoothOffset: 0,
|
3245
3244
|
// Callback for scroll end.
|
3246
|
-
scrollEndCallback: function
|
3245
|
+
scrollEndCallback: function (e) {},
|
3247
3246
|
// Headings offset between the headings and the top of the document (this is meant for minor adjustments).
|
3248
3247
|
headingsOffset: 1,
|
3249
3248
|
// Timeout between events firing to make sure it's
|
@@ -3264,7 +3263,7 @@ module.exports = {
|
|
3264
3263
|
// onclick function to apply to all links in toc. will be called with
|
3265
3264
|
// the event as the first parameter, and this can be used to stop,
|
3266
3265
|
// propagation, prevent default or perform action
|
3267
|
-
onClick: function
|
3266
|
+
onClick: function (e) {},
|
3268
3267
|
// orderedList can be set to false to generate unordered lists (ul)
|
3269
3268
|
// instead of ordered lists (ol)
|
3270
3269
|
orderedList: true,
|
@@ -3458,7 +3457,6 @@ module.exports = function parseContent(options) {
|
|
3458
3457
|
*/
|
3459
3458
|
|
3460
3459
|
|
3461
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
3462
3460
|
;
|
3463
3461
|
(function ($) {
|
3464
3462
|
function isDOMAttrModifiedSupported() {
|
@@ -3500,7 +3498,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
3500
3498
|
//initialize Mutation Observer
|
3501
3499
|
var MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
|
3502
3500
|
$.fn.attrchange = function (a, b) {
|
3503
|
-
if (
|
3501
|
+
if (typeof a == 'object') {
|
3504
3502
|
//core
|
3505
3503
|
var cfg = {
|
3506
3504
|
trackValues: false,
|
@@ -3580,7 +3578,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
3580
3578
|
};
|
3581
3579
|
$.fn.attrchange.extensions = {
|
3582
3580
|
/*attrchange option/extension*/
|
3583
|
-
disconnect: function
|
3581
|
+
disconnect: function (o) {
|
3584
3582
|
if (typeof o !== 'undefined' && o.isPhysicalDisconnect) {
|
3585
3583
|
return this.each(function () {
|
3586
3584
|
var attrchangeMethod = $(this).data('attrchange-method');
|
@@ -3597,12 +3595,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
3597
3595
|
return this.data('attrchange-status', 'disconnected'); //set a flag that prevents triggering callback onattrchange
|
3598
3596
|
}
|
3599
3597
|
},
|
3600
|
-
remove: function
|
3598
|
+
remove: function (o) {
|
3601
3599
|
return $.fn.attrchange.extensions['disconnect'].call(this, {
|
3602
3600
|
isPhysicalDisconnect: true
|
3603
3601
|
});
|
3604
3602
|
},
|
3605
|
-
getProperties: function
|
3603
|
+
getProperties: function (o) {
|
3606
3604
|
var attrchangeMethod = $(this).data('attrchange-method');
|
3607
3605
|
var pollInterval = $(this).data('attrchange-pollInterval');
|
3608
3606
|
return {
|
@@ -3612,11 +3610,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
3612
3610
|
status: typeof attrchangeMethod === 'undefined' ? 'removed' : $(this).data('attrchange-status')
|
3613
3611
|
};
|
3614
3612
|
},
|
3615
|
-
reconnect: function
|
3613
|
+
reconnect: function (o) {
|
3616
3614
|
//reconnect possible only when there is a logical disconnect
|
3617
3615
|
return this.data('attrchange-status', 'connected');
|
3618
3616
|
},
|
3619
|
-
polling: function
|
3617
|
+
polling: function (o) {
|
3620
3618
|
if (o.hasOwnProperty('isComputedStyle') && o.isComputedStyle == 'true') {
|
3621
3619
|
/* extensive and slow - polling to check on computed style properties */
|
3622
3620
|
return this.each(function (i, _this) {
|
@@ -3762,7 +3760,7 @@ module.exports = function navigator(options) {
|
|
3762
3760
|
// -------------------------------------------------------------------------
|
3763
3761
|
// module initializer
|
3764
3762
|
// -------------------------------------------------------------------------
|
3765
|
-
init: function
|
3763
|
+
init: function (defaultOptions, menuOptions) {
|
3766
3764
|
logger = log4javascript.getLogger('j1.navigator.core');
|
3767
3765
|
logger.debug('\n' + 'initializing module: started');
|
3768
3766
|
|
@@ -3784,7 +3782,7 @@ module.exports = function navigator(options) {
|
|
3784
3782
|
// -------------------------------------------------------------------------
|
3785
3783
|
// event handler
|
3786
3784
|
// -------------------------------------------------------------------------
|
3787
|
-
eventHandler: function
|
3785
|
+
eventHandler: function (options) {
|
3788
3786
|
var defaultOptions = options;
|
3789
3787
|
var $getNav = $('nav.navbar.navigator');
|
3790
3788
|
var scrollDuration = 300;
|
@@ -3950,7 +3948,7 @@ module.exports = function navigator(options) {
|
|
3950
3948
|
var firstList = postsArr.splice(0, Math.round(postsArr.length / 2));
|
3951
3949
|
var secondList = postsArr;
|
3952
3950
|
var ListHTML = '';
|
3953
|
-
var createHTML = function
|
3951
|
+
var createHTML = function (list) {
|
3954
3952
|
ListHTML = '';
|
3955
3953
|
for (var i = 0; i < list.length; i++) {
|
3956
3954
|
ListHTML += '<li>' + list[i] + '</li>';
|
@@ -4114,7 +4112,7 @@ module.exports = function navigator(options) {
|
|
4114
4112
|
// -------------------------------------------------------------------------
|
4115
4113
|
// Manage the Menu Dropdowns for Desktop|Mobile
|
4116
4114
|
// -------------------------------------------------------------------------
|
4117
|
-
manageDropdownMenu: function
|
4115
|
+
manageDropdownMenu: function (defaultOptions, menuOptions) {
|
4118
4116
|
var navDefaultOptions = defaultOptions;
|
4119
4117
|
var navMenuOptions = menuOptions;
|
4120
4118
|
var $getNav = $('nav.navbar.navigator');
|
@@ -4323,7 +4321,7 @@ module.exports = function navigator(options) {
|
|
4323
4321
|
// -------------------------------------------------------------------------
|
4324
4322
|
// Sticky Navbar
|
4325
4323
|
// -------------------------------------------------------------------------
|
4326
|
-
navbarSticky: function
|
4324
|
+
navbarSticky: function () {
|
4327
4325
|
var $getNav = $('nav.navbar.navigator'),
|
4328
4326
|
navSticky = $getNav.hasClass('navbar-sticky');
|
4329
4327
|
if (navSticky) {
|
@@ -4349,7 +4347,7 @@ module.exports = function navigator(options) {
|
|
4349
4347
|
// updateSidebar
|
4350
4348
|
// Note:
|
4351
4349
|
// -------------------------------------------------------------------------
|
4352
|
-
updateSidebar: function
|
4350
|
+
updateSidebar: function (user_data) {
|
4353
4351
|
var logger = log4javascript.getLogger('j1.core.navigator.updateSidebar');
|
4354
4352
|
var json_message;
|
4355
4353
|
|
@@ -4422,7 +4420,7 @@ module.exports = function scrollSmooth(options) {
|
|
4422
4420
|
// -------------------------------------------------------------------------
|
4423
4421
|
// Initialize scrollSmooth
|
4424
4422
|
// -------------------------------------------------------------------------
|
4425
|
-
scroll: function
|
4423
|
+
scroll: function (target, options) {
|
4426
4424
|
var logger;
|
4427
4425
|
var logText;
|
4428
4426
|
logger = log4javascript.getLogger('j1.core.scrollSmooth');
|
@@ -4453,7 +4451,7 @@ module.exports = function scrollSmooth(options) {
|
|
4453
4451
|
// DecodeURI is usded for nonASCII hashes, they was encoded,
|
4454
4452
|
// but id was not encoded, it lead to not finding the tgt element by id.
|
4455
4453
|
// -------------------------------------------------------------------------
|
4456
|
-
scrollTo: function
|
4454
|
+
scrollTo: function (target, options) {
|
4457
4455
|
var start = window.pageYOffset;
|
4458
4456
|
var opt = {
|
4459
4457
|
duration: options.duration,
|
@@ -4559,7 +4557,7 @@ module.exports = {
|
|
4559
4557
|
// Smooth scroll offset.
|
4560
4558
|
scrollSmoothOffset: 0,
|
4561
4559
|
// Callback for scroll end.
|
4562
|
-
scrollEndCallback: function
|
4560
|
+
scrollEndCallback: function (e) {},
|
4563
4561
|
// Headings offset between the headings and the top of the document (this is meant for minor adjustments).
|
4564
4562
|
headingsOffset: 1,
|
4565
4563
|
// Timeout between events firing to make sure it's
|
@@ -4580,7 +4578,7 @@ module.exports = {
|
|
4580
4578
|
// onclick function to apply to all links in toc. will be called with
|
4581
4579
|
// the event as the first parameter, and this can be used to stop,
|
4582
4580
|
// propagation, prevent default or perform action
|
4583
|
-
onClick: function
|
4581
|
+
onClick: function (e) {},
|
4584
4582
|
// orderedList can be set to false to generate unordered lists (ul)
|
4585
4583
|
// instead of ordered lists (ol)
|
4586
4584
|
orderedList: true,
|
@@ -4786,30 +4784,25 @@ module.exports = function parseContent(options) {
|
|
4786
4784
|
https://dev.to/jankapunkt/cross-browser-speech-synthesis-the-hard-way-and-the-easy-way-353
|
4787
4785
|
https://github.com/jankapunkt/easy-speech
|
4788
4786
|
*/
|
4789
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
4790
|
-
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
4791
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
4792
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
4793
|
-
function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
4794
4787
|
(function ($) {
|
4795
|
-
|
4796
|
-
|
4797
|
-
|
4798
|
-
|
4799
|
-
|
4800
|
-
|
4801
|
-
|
4802
|
-
|
4803
|
-
|
4804
|
-
|
4805
|
-
|
4806
|
-
|
4807
|
-
|
4808
|
-
|
4809
|
-
|
4810
|
-
|
4811
|
-
|
4812
|
-
|
4788
|
+
const defaultOptions = __webpack_require__(362);
|
4789
|
+
const ParseContent = __webpack_require__(435);
|
4790
|
+
const parseContent = ParseContent(defaultOptions);
|
4791
|
+
const scrollBehavior = 'smooth';
|
4792
|
+
const speechCycle = 10;
|
4793
|
+
const speechMonitorCycle = 10;
|
4794
|
+
const textSliceLength = 30;
|
4795
|
+
const minWords = 3;
|
4796
|
+
const pageScanCycle = 1000;
|
4797
|
+
const pageScanLines = 10000;
|
4798
|
+
const isFirefox = /Firefox/i.test(navigator.userAgent);
|
4799
|
+
const isEdge = /Edg/i.test(navigator.userAgent);
|
4800
|
+
const chrome = /chrome/i.test(navigator.userAgent);
|
4801
|
+
const isChrome = chrome && !isEdge;
|
4802
|
+
const voiceUserDefault = 'Google UK English Female';
|
4803
|
+
const voiceChromeDefault = 'Google US English';
|
4804
|
+
const ignoreProvider = 'Microsoft';
|
4805
|
+
const sourceLanguage = document.getElementsByTagName("html")[0].getAttribute("lang");
|
4813
4806
|
var defaultLanguage = '';
|
4814
4807
|
var navigatorLanguage = navigator.language || navigator.userLanguage;
|
4815
4808
|
var currentTranslation = getCookie('googtrans');
|
@@ -4825,9 +4818,9 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
4825
4818
|
var rateDefault = 0.9;
|
4826
4819
|
var pitchDefault = 1;
|
4827
4820
|
var volumeDefault = 0.9;
|
4828
|
-
var
|
4829
|
-
var
|
4830
|
-
var
|
4821
|
+
var rate = rateDefault;
|
4822
|
+
var pitch = pitchDefault;
|
4823
|
+
var volume = volumeDefault;
|
4831
4824
|
var pause_spoken = ' — ';
|
4832
4825
|
var chunkCounter = 0;
|
4833
4826
|
var userStoppedSpeaking = false;
|
@@ -5006,7 +4999,7 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
5006
4999
|
// NOTE: the array is loaded asynchronously.
|
5007
5000
|
//
|
5008
5001
|
function populateVoiceList() {
|
5009
|
-
|
5002
|
+
let systemVoicesText = 'systemVoices START - ';
|
5010
5003
|
var systemVoices = speechSynthesis.getVoices();
|
5011
5004
|
for (var i = 0; i < systemVoices.length; i++) {
|
5012
5005
|
voices.push(new voiceObj(systemVoices[i].name, systemVoices[i].lang));
|
@@ -5085,7 +5078,7 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
5085
5078
|
var methods = {
|
5086
5079
|
// main speak2me method.
|
5087
5080
|
//
|
5088
|
-
speak: function
|
5081
|
+
speak: function (options) {
|
5089
5082
|
var toSpeak = '';
|
5090
5083
|
var voiceTags = new Array();
|
5091
5084
|
var _this = this;
|
@@ -5186,27 +5179,27 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
5186
5179
|
// defaults, otherwise use defaults
|
5187
5180
|
//
|
5188
5181
|
if (rateUserDefault !== undefined) {
|
5189
|
-
|
5182
|
+
rate = rateUserDefault;
|
5190
5183
|
} else {
|
5191
|
-
|
5184
|
+
rate = rateDefault;
|
5192
5185
|
}
|
5193
5186
|
if (pitchUserDefault !== undefined) {
|
5194
|
-
|
5187
|
+
pitch = pitchUserDefault;
|
5195
5188
|
} else {
|
5196
|
-
|
5189
|
+
pitch = pitchDefault;
|
5197
5190
|
}
|
5198
5191
|
if (volumeUserDefault !== undefined) {
|
5199
|
-
|
5192
|
+
volume = volumeUserDefault;
|
5200
5193
|
} else {
|
5201
|
-
|
5194
|
+
volume = volumeDefault;
|
5202
5195
|
}
|
5203
5196
|
|
5204
5197
|
// create and configure the utterance object
|
5205
5198
|
//
|
5206
5199
|
speech = new SpeechSynthesisUtterance();
|
5207
|
-
speech.rate =
|
5208
|
-
speech.pitch =
|
5209
|
-
speech.volume =
|
5200
|
+
speech.rate = rate;
|
5201
|
+
speech.pitch = pitch;
|
5202
|
+
speech.volume = volume;
|
5210
5203
|
speech.voice = speechSynthesis.getVoices().filter(function (voice) {
|
5211
5204
|
return voice.name == voiceLanguageDefault;
|
5212
5205
|
})[0];
|
@@ -5236,14 +5229,14 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
5236
5229
|
|
5237
5230
|
// 1st cleanup of chunks
|
5238
5231
|
//
|
5239
|
-
chunks.forEach(
|
5232
|
+
chunks.forEach((chunk, index) => {
|
5240
5233
|
chunks[index] = chunks[index].replace(/^\s+/g, '');
|
5241
5234
|
chunks[index] = chunks[index].replaceAll('""', '');
|
5242
5235
|
});
|
5243
5236
|
|
5244
5237
|
// 2nd cleanup of chunks (delete chunks NOT speakable)
|
5245
5238
|
//
|
5246
|
-
chunks.forEach(
|
5239
|
+
chunks.forEach((chunk, index) => {
|
5247
5240
|
if (chunks[index].length > 0) {
|
5248
5241
|
chunks[index] = chunks[index] + '. ';
|
5249
5242
|
} else {
|
@@ -5255,7 +5248,7 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
5255
5248
|
|
5256
5249
|
// 3rd cleanup of chunks (delete empty chunks)
|
5257
5250
|
//
|
5258
|
-
chunks.forEach(
|
5251
|
+
chunks.forEach((chunk, index) => {
|
5259
5252
|
if (chunks[index].length == 0) {
|
5260
5253
|
// remove empty text element from chunks array
|
5261
5254
|
chunks.splice(index, 1);
|
@@ -5265,7 +5258,7 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
5265
5258
|
// build the chunk OBJECT array
|
5266
5259
|
//
|
5267
5260
|
var chunkSet = [];
|
5268
|
-
chunks.forEach(
|
5261
|
+
chunks.forEach((chunk, index) => {
|
5269
5262
|
var text = chunks[index];
|
5270
5263
|
var sectionText = textSlice(text, textSliceLength, minWords);
|
5271
5264
|
var $paragraph = $('#content').find("p:contains('" + sectionText + "')");
|
@@ -5289,7 +5282,7 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
5289
5282
|
|
5290
5283
|
// parse the headingsArray to add missing offset values
|
5291
5284
|
//
|
5292
|
-
chunkSet.forEach(
|
5285
|
+
chunkSet.forEach((chunk, index) => {
|
5293
5286
|
var text;
|
5294
5287
|
var innerText;
|
5295
5288
|
if (chunk.offset === undefined) {
|
@@ -5302,32 +5295,23 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
5302
5295
|
// for of (new in ES6) does use an object-specific iterator
|
5303
5296
|
// and loops over the values generated by that.
|
5304
5297
|
// for (var node in headingsArray) {
|
5305
|
-
var
|
5306
|
-
|
5307
|
-
|
5308
|
-
|
5309
|
-
|
5310
|
-
|
5311
|
-
|
5312
|
-
|
5313
|
-
|
5314
|
-
|
5315
|
-
|
5316
|
-
|
5317
|
-
|
5318
|
-
|
5319
|
-
|
5320
|
-
|
5321
|
-
|
5322
|
-
// console.warn('speak2me, text: ' + node.innerText + ', offsetTop not caclulated.');
|
5323
|
-
} // END if headline.length
|
5324
|
-
} // END if innerText
|
5325
|
-
} // END for headingsArray
|
5326
|
-
} catch (err) {
|
5327
|
-
_iterator.e(err);
|
5328
|
-
} finally {
|
5329
|
-
_iterator.f();
|
5330
|
-
}
|
5298
|
+
for (var node of headingsArray) {
|
5299
|
+
// cleanup the innerText for compare
|
5300
|
+
//
|
5301
|
+
innerText = node.innerText.replaceAll('?', '');
|
5302
|
+
innerText = node.innerText.replaceAll('!', '');
|
5303
|
+
innerText = node.innerText + pause_spoken;
|
5304
|
+
if (innerText == text) {
|
5305
|
+
var headline = $('#' + node.id);
|
5306
|
+
if (headline.length > 0) {
|
5307
|
+
var offsetTop = headline.offset().top;
|
5308
|
+
chunk.offsetTop = Math.round(offsetTop);
|
5309
|
+
// console.debug('speak2me, text: ' + node.innerText + ', offsetTop: ' + chunk.offsetTop);
|
5310
|
+
} else {
|
5311
|
+
// console.warn('speak2me, text: ' + node.innerText + ', offsetTop not caclulated.');
|
5312
|
+
} // END if headline.length
|
5313
|
+
} // END if innerText
|
5314
|
+
} // END for headingsArray
|
5331
5315
|
} // END if headingsArray
|
5332
5316
|
} // END if chunk.offset
|
5333
5317
|
}); // END forEach chunkSet
|
@@ -5370,7 +5354,7 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
5370
5354
|
// process chunks (to speak) sequentially
|
5371
5355
|
//
|
5372
5356
|
function processTextChunks(speaker, chunks) {
|
5373
|
-
|
5357
|
+
const synth = window.speechSynthesis;
|
5374
5358
|
|
5375
5359
|
// indicate active converter in the quicklinks bar
|
5376
5360
|
//
|
@@ -5379,7 +5363,7 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
5379
5363
|
// listener to ENABLE highlightning and scrolling
|
5380
5364
|
// on active spoken elements
|
5381
5365
|
//
|
5382
|
-
speaker.addEventListener('start',
|
5366
|
+
speaker.addEventListener('start', event => {
|
5383
5367
|
// scroll on ALL valid offsetTop for headings and paragraphs
|
5384
5368
|
//
|
5385
5369
|
if (speaker.offsetTop !== undefined) {
|
@@ -6008,33 +5992,33 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
6008
5992
|
|
6009
5993
|
// run final cleanups on all DOM elements processed.
|
6010
5994
|
//
|
6011
|
-
function cleanDOMelements(
|
6012
|
-
var start, ended, speak, part1, part2,
|
5995
|
+
function cleanDOMelements(final) {
|
5996
|
+
var start, ended, speak, part1, part2, final;
|
6013
5997
|
|
6014
5998
|
// Search for <speak2me> in comments, copy the text,
|
6015
5999
|
// place it outside the comment, and then splice together
|
6016
6000
|
// "final" string again, which omits the comment.
|
6017
6001
|
//
|
6018
|
-
while (
|
6019
|
-
start =
|
6020
|
-
ended =
|
6002
|
+
while (final.indexOf('<!-- <speak2me>') != -1) {
|
6003
|
+
start = final.indexOf('<!-- <speak2me>');
|
6004
|
+
ended = final.indexOf('</speak2me> -->', start);
|
6021
6005
|
if (ended == -1) {
|
6022
6006
|
break;
|
6023
6007
|
}
|
6024
|
-
speak =
|
6025
|
-
part1 =
|
6026
|
-
part2 =
|
6027
|
-
|
6008
|
+
speak = final.substring(start + 17, ended);
|
6009
|
+
part1 = final.substring(0, start);
|
6010
|
+
part2 = final.substring(ended + 17);
|
6011
|
+
final = part1 + ' ' + speak + ' ' + part2;
|
6028
6012
|
}
|
6029
6013
|
;
|
6030
6014
|
|
6031
6015
|
// Strip out remaining comments.
|
6032
6016
|
//
|
6033
|
-
|
6017
|
+
final = final.replace(/<!--[\s\S]*?-->/g, '');
|
6034
6018
|
|
6035
6019
|
// Strip out remaining HTML tags.
|
6036
6020
|
//
|
6037
|
-
|
6021
|
+
final = final.replace(/(<([^>]+)>)/ig, '');
|
6038
6022
|
|
6039
6023
|
// Replace a string of characters with another as specified
|
6040
6024
|
// by "speak2me('replace')".
|
@@ -6047,90 +6031,90 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
6047
6031
|
old = old.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
|
6048
6032
|
rep = replacements[i + 1] + ' ';
|
6049
6033
|
var regexp = new RegExp(old, 'gi');
|
6050
|
-
var
|
6034
|
+
var final = final.replace(regexp, rep);
|
6051
6035
|
i = i + 2;
|
6052
6036
|
}
|
6053
6037
|
|
6054
6038
|
// Remove double quotes.
|
6055
6039
|
//
|
6056
|
-
|
6057
|
-
|
6058
|
-
|
6040
|
+
final = final.replaceAll('"', '');
|
6041
|
+
final = final.replaceAll('“', '');
|
6042
|
+
final = final.replaceAll('”', '');
|
6059
6043
|
|
6060
6044
|
// Remove all colon ':' and replace by a dot.
|
6061
6045
|
//
|
6062
|
-
|
6046
|
+
final = final.replaceAll(':', '.');
|
6063
6047
|
|
6064
6048
|
// Replace all strange '., ' by a pause.
|
6065
6049
|
//
|
6066
|
-
|
6067
|
-
|
6050
|
+
final = final.replaceAll('., ', '. ');
|
6051
|
+
final = final.replaceAll(' , ', ', ');
|
6068
6052
|
|
6069
6053
|
// Remove strange double pause elements.
|
6070
6054
|
//
|
6071
|
-
|
6072
|
-
|
6073
|
-
|
6055
|
+
final = final.replaceAll('. .', '');
|
6056
|
+
final = final.replaceAll(', .', '');
|
6057
|
+
final = final.replaceAll(' , ', '');
|
6074
6058
|
|
6075
6059
|
// Replace empty lines.
|
6076
6060
|
//
|
6077
|
-
|
6078
|
-
|
6061
|
+
final = final.replace(/^$/g, '\n');
|
6062
|
+
final = final.replace(/^\s+$/g, '\n');
|
6079
6063
|
|
6080
6064
|
// Replace single full stops in line ' . ' or '. '.
|
6081
6065
|
//
|
6082
|
-
|
6083
|
-
|
6066
|
+
final = final.replace(/\s+\.\s+/g, '\n');
|
6067
|
+
final = final.replace(/\s+\.\s+$/g, '\n');
|
6084
6068
|
|
6085
6069
|
// Replace strange double full stops '..'.
|
6086
6070
|
//
|
6087
|
-
|
6071
|
+
final = final.replace(/\.\./g, '.');
|
6088
6072
|
|
6089
6073
|
// Replace the abbreviations '.e.g.', 'E.g.' and 'etc.'.
|
6090
6074
|
//
|
6091
|
-
|
6092
|
-
|
6093
|
-
|
6075
|
+
final = final.replaceAll('e.g.', 'for example');
|
6076
|
+
final = final.replaceAll('E.g.', 'For example, ');
|
6077
|
+
final = final.replaceAll('etc.', 'and so on, ');
|
6094
6078
|
|
6095
6079
|
// Replace language specific abbreviations.
|
6096
6080
|
// NOTE: may required for some voices|languages (like Gewrman)
|
6097
6081
|
//
|
6098
|
-
|
6082
|
+
final = final.replaceAll('z. B.', 'zum Beispiel, ');
|
6099
6083
|
|
6100
6084
|
// Remove question and exclamation (?|!) marks.
|
6101
6085
|
//
|
6102
|
-
|
6086
|
+
final = final.replace(/[\!\?]/g, '. ');
|
6103
6087
|
|
6104
6088
|
// Replace em-dashes and double-dashes with a pause
|
6105
6089
|
// since most voices doesn't do so when speaking.
|
6106
6090
|
//
|
6107
|
-
|
6108
|
-
|
6109
|
-
|
6091
|
+
final = final.replaceAll('—', pause_spoken);
|
6092
|
+
final = final.replaceAll('–', pause_spoken);
|
6093
|
+
final = final.replaceAll('--', pause_spoken);
|
6110
6094
|
|
6111
6095
|
// When read from the DOM, a few special characters
|
6112
6096
|
// (& for example) display as their hex codes
|
6113
6097
|
// rather than resolving into their actual character.
|
6114
6098
|
//
|
6115
6099
|
var txt = document.createElement('textarea');
|
6116
|
-
txt.innerHTML =
|
6117
|
-
|
6100
|
+
txt.innerHTML = final;
|
6101
|
+
final = txt.value;
|
6118
6102
|
|
6119
6103
|
// Replace single word in line
|
6120
6104
|
//
|
6121
|
-
|
6105
|
+
final = final.replace(/^\s*(\b\w+\b)\s*$/gm, "$1. ");
|
6122
6106
|
|
6123
6107
|
// Replace month year in line
|
6124
6108
|
//
|
6125
|
-
|
6109
|
+
final = final.replace(/^\s*(\b\w+\b\s*[0-9]{4})$/gm, "$1. ");
|
6126
6110
|
|
6127
6111
|
// Replace multiple whitespaces
|
6128
6112
|
//
|
6129
|
-
|
6113
|
+
final = final.replace(/\s+/g, ' ');
|
6130
6114
|
|
6131
6115
|
// split the final text in to chunks (sentences).
|
6132
6116
|
//
|
6133
|
-
|
6117
|
+
const textChunks = splitTextIntoChunks(final);
|
6134
6118
|
chunkCounterMax = textChunks.length;
|
6135
6119
|
return textChunks;
|
6136
6120
|
}
|
@@ -6141,20 +6125,20 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
6141
6125
|
},
|
6142
6126
|
// END speak
|
6143
6127
|
|
6144
|
-
pause: function
|
6128
|
+
pause: function () {
|
6145
6129
|
window.speechSynthesis.pause();
|
6146
6130
|
return this;
|
6147
6131
|
},
|
6148
6132
|
// END pause
|
6149
6133
|
|
6150
|
-
resume: function
|
6134
|
+
resume: function () {
|
6151
6135
|
window.speechSynthesis.resume();
|
6152
6136
|
return this;
|
6153
6137
|
},
|
6154
6138
|
// END resume
|
6155
6139
|
|
6156
6140
|
// jadams
|
6157
|
-
stop: function
|
6141
|
+
stop: function () {
|
6158
6142
|
window.speechSynthesis.cancel();
|
6159
6143
|
userStoppedSpeaking = true;
|
6160
6144
|
|
@@ -6176,17 +6160,17 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
6176
6160
|
},
|
6177
6161
|
// END stop
|
6178
6162
|
|
6179
|
-
enabled: function
|
6163
|
+
enabled: function () {
|
6180
6164
|
return 'speechSynthesis' in window;
|
6181
6165
|
},
|
6182
6166
|
// END enabled
|
6183
6167
|
|
6184
|
-
isSpeaking: function
|
6168
|
+
isSpeaking: function () {
|
6185
6169
|
return window.speechSynthesis.speaking;
|
6186
6170
|
},
|
6187
6171
|
// END isSpeaking
|
6188
6172
|
|
6189
|
-
isSpoken: function
|
6173
|
+
isSpoken: function () {
|
6190
6174
|
if (window.speechSynthesis.speaking) {
|
6191
6175
|
return chunkCounter;
|
6192
6176
|
} else {
|
@@ -6195,7 +6179,7 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
6195
6179
|
},
|
6196
6180
|
// END isSpoken
|
6197
6181
|
|
6198
|
-
isScrolled: function
|
6182
|
+
isScrolled: function () {
|
6199
6183
|
if (window.speechSynthesis.speaking) {
|
6200
6184
|
return lastScrollPosition;
|
6201
6185
|
} else {
|
@@ -6203,49 +6187,49 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
6203
6187
|
}
|
6204
6188
|
},
|
6205
6189
|
// END isSpoken
|
6206
|
-
isPaused: function
|
6190
|
+
isPaused: function () {
|
6207
6191
|
return window.speechSynthesis.paused;
|
6208
6192
|
},
|
6209
6193
|
// END isPaused
|
6210
6194
|
|
6211
|
-
rate: function
|
6195
|
+
rate: function () {
|
6212
6196
|
var num = arguments[0];
|
6213
6197
|
if (num >= 0.1 && num <= 10) {
|
6214
6198
|
rateUserDefault = num;
|
6215
6199
|
} else if (num === undefined) {
|
6216
6200
|
rateUserDefault = void 0;
|
6217
|
-
|
6201
|
+
rate = rateDefault;
|
6218
6202
|
}
|
6219
6203
|
return this;
|
6220
6204
|
},
|
6221
6205
|
// END rate
|
6222
6206
|
|
6223
|
-
pitch: function
|
6207
|
+
pitch: function () {
|
6224
6208
|
var num = arguments[0];
|
6225
6209
|
if (num >= 0.1 && num <= 2) {
|
6226
6210
|
pitchUserDefault = num;
|
6227
6211
|
} else if (num === undefined) {
|
6228
6212
|
pitchUserDefault = void 0;
|
6229
|
-
|
6213
|
+
pitch = pitchDefault;
|
6230
6214
|
}
|
6231
6215
|
return this;
|
6232
6216
|
},
|
6233
6217
|
// END pitch
|
6234
6218
|
|
6235
|
-
volume: function
|
6219
|
+
volume: function () {
|
6236
6220
|
var num = arguments[0];
|
6237
6221
|
if (num >= 0 && num <= 1) {
|
6238
6222
|
volumeUserDefault = num;
|
6239
6223
|
} else if (num === undefined) {
|
6240
6224
|
volumeUserDefault = void 0;
|
6241
|
-
|
6225
|
+
volume = volumeDefault;
|
6242
6226
|
}
|
6243
6227
|
;
|
6244
6228
|
return this;
|
6245
6229
|
},
|
6246
6230
|
// END volume
|
6247
6231
|
|
6248
|
-
ignore: function
|
6232
|
+
ignore: function () {
|
6249
6233
|
var len = arguments.length;
|
6250
6234
|
ignoreTagsUser.length = 0;
|
6251
6235
|
while (len > 0) {
|
@@ -6257,7 +6241,7 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
6257
6241
|
},
|
6258
6242
|
// END ignore
|
6259
6243
|
|
6260
|
-
recognize: function
|
6244
|
+
recognize: function () {
|
6261
6245
|
var len = arguments.length;
|
6262
6246
|
recognizeTagsUser.length = 0;
|
6263
6247
|
while (len > 0) {
|
@@ -6268,7 +6252,7 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
6268
6252
|
},
|
6269
6253
|
// END recognize
|
6270
6254
|
|
6271
|
-
replace: function
|
6255
|
+
replace: function () {
|
6272
6256
|
var len = arguments.length;
|
6273
6257
|
replacements.length = 0;
|
6274
6258
|
var i = 0;
|
@@ -6285,7 +6269,7 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
6285
6269
|
},
|
6286
6270
|
// END replace
|
6287
6271
|
|
6288
|
-
customize: function
|
6272
|
+
customize: function () {
|
6289
6273
|
var len = arguments.length;
|
6290
6274
|
if (len == 0) {
|
6291
6275
|
customTags = [];
|
@@ -6308,7 +6292,7 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
6308
6292
|
},
|
6309
6293
|
// END customize
|
6310
6294
|
|
6311
|
-
getVoices: function
|
6295
|
+
getVoices: function () {
|
6312
6296
|
// If no arguments, then the user has requested the array of
|
6313
6297
|
// voices populated earlier.
|
6314
6298
|
//
|
@@ -6362,7 +6346,7 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
6362
6346
|
},
|
6363
6347
|
// END getVoiuces
|
6364
6348
|
|
6365
|
-
setVoice: function
|
6349
|
+
setVoice: function () {
|
6366
6350
|
// The setVoice function has to have two attributes
|
6367
6351
|
// if not, exit the function.
|
6368
6352
|
//
|
@@ -6378,7 +6362,7 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
6378
6362
|
requestedVoice = arguments[1];
|
6379
6363
|
for (var i = 0; i < voices.length; i++) {
|
6380
6364
|
if (voices[i].name == requestedVoice) {
|
6381
|
-
requestedVoice
|
6365
|
+
voiceUserDefault = requestedVoice;
|
6382
6366
|
}
|
6383
6367
|
}
|
6384
6368
|
}
|
@@ -6391,7 +6375,7 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
6391
6375
|
if (requestedLanguage.length == 2) {
|
6392
6376
|
for (var i = 0; i < voices.length; i++) {
|
6393
6377
|
if (voices[i].language.substring(0, 2).toUpperCase() == requestedLanguage) {
|
6394
|
-
voices[i].name
|
6378
|
+
voiceUserDefault = voices[i].name;
|
6395
6379
|
break;
|
6396
6380
|
}
|
6397
6381
|
}
|
@@ -6400,7 +6384,7 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
6400
6384
|
// complete language code.
|
6401
6385
|
for (var i = 0; i < voices.length; i++) {
|
6402
6386
|
if (voices[i].language == requestedLanguage) {
|
6403
|
-
voices[i].name
|
6387
|
+
voiceUserDefault = voices[i].name;
|
6404
6388
|
break;
|
6405
6389
|
}
|
6406
6390
|
}
|
@@ -6415,7 +6399,7 @@ function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
6415
6399
|
$.fn.speak2me = function (method) {
|
6416
6400
|
if (methods[method]) {
|
6417
6401
|
return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
|
6418
|
-
} else if (
|
6402
|
+
} else if (typeof method === 'object' || !method) {
|
6419
6403
|
return methods.speak.apply(this, arguments);
|
6420
6404
|
} else {
|
6421
6405
|
$.error('Method ' + method + ' does not exist on $.speak2me');
|
@@ -6767,7 +6751,7 @@ module.exports = {
|
|
6767
6751
|
// Smooth scroll offset.
|
6768
6752
|
scrollSmoothOffset: 0,
|
6769
6753
|
// Callback for scroll end.
|
6770
|
-
scrollEndCallback: function
|
6754
|
+
scrollEndCallback: function (e) {},
|
6771
6755
|
// Headings offset between the headings and the top of the document (this is meant for minor adjustments).
|
6772
6756
|
headingsOffset: 1,
|
6773
6757
|
// Timeout between events firing to make sure it's
|
@@ -6788,7 +6772,7 @@ module.exports = {
|
|
6788
6772
|
// onclick function to apply to all links in toc. will be called with
|
6789
6773
|
// the event as the first parameter, and this can be used to stop,
|
6790
6774
|
// propagation, prevent default or perform action
|
6791
|
-
onClick: function
|
6775
|
+
onClick: function (e) {},
|
6792
6776
|
// orderedList can be set to false to generate unordered lists (ul)
|
6793
6777
|
// instead of ordered lists (ol)
|
6794
6778
|
orderedList: true,
|
@@ -7003,6 +6987,8 @@ function initSmoothScrolling(options) {
|
|
7003
6987
|
function delegatedLinkHijacking() {
|
7004
6988
|
document.body.addEventListener('click', onClick, false);
|
7005
6989
|
function onClick(e) {
|
6990
|
+
e.preventDefault();
|
6991
|
+
e.stopPropagation();
|
7006
6992
|
if (!isInPageLink(e.target) || e.target.className.indexOf('no-smooth-scroll') > -1 || e.target.href.charAt(e.target.href.length - 2) === '#' && e.target.href.charAt(e.target.href.length - 1) === '!' || e.target.className.indexOf(options.linkClass) === -1) {
|
7007
6993
|
return;
|
7008
6994
|
}
|
@@ -7059,6 +7045,7 @@ function jump(target, options) {
|
|
7059
7045
|
callback: options.callback,
|
7060
7046
|
easing: options.easing || easeInOutQuad
|
7061
7047
|
};
|
7048
|
+
|
7062
7049
|
// This makes ids that start with a number work: ('[id="' + decodeURI(target).split('#').join('') + '"]')
|
7063
7050
|
// DecodeURI for nonASCII hashes, they was encoded, but id was not encoded, it lead to not finding the tgt element by id.
|
7064
7051
|
// And this is for IE: document.body.scrollTop
|
@@ -7159,7 +7146,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
7159
7146
|
*/
|
7160
7147
|
|
7161
7148
|
/* globals define */
|
7162
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
7163
7149
|
(function (root, factory) {
|
7164
7150
|
if (true) {
|
7165
7151
|
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory(root)),
|
@@ -13340,6 +13326,7 @@ window.j1.core.parseContent = __webpack_require__(435);
|
|
13340
13326
|
window.j1.core.navigator = __webpack_require__(102);
|
13341
13327
|
window.j1.core.asciidoctor = __webpack_require__(702);
|
13342
13328
|
window.j1.core.scrollSmooth = __webpack_require__(150);
|
13329
|
+
window.j1.modules = {};
|
13343
13330
|
|
13344
13331
|
// Following source objects|modules are *implicetly* forced to be
|
13345
13332
|
// exposed for run-time to the global namespace (window).
|
@@ -13351,10 +13338,10 @@ window.j1.core.scrollSmooth = __webpack_require__(150);
|
|
13351
13338
|
|
13352
13339
|
// const BootstrapJS = require('./node_modules/bootstrap/dist/js/bootstrap.js');
|
13353
13340
|
|
13354
|
-
|
13355
|
-
|
13356
|
-
|
13357
|
-
|
13341
|
+
const J1Tocbot = __webpack_require__(562);
|
13342
|
+
const J1AttrChangeListener = __webpack_require__(497);
|
13343
|
+
const J1Speak2Me = __webpack_require__(544);
|
13344
|
+
const J1SCarousel = __webpack_require__(196);
|
13358
13345
|
|
13359
13346
|
// Passing log data over Internet|SeeMe (currently NOT used)
|
13360
13347
|
// -----------------------------------------------------------------------------
|
@@ -13391,7 +13378,7 @@ var J1SCarousel = __webpack_require__(196);
|
|
13391
13378
|
|
13392
13379
|
// Additional Vanilla JS helpers
|
13393
13380
|
// -----------------------------------------------------------------------------
|
13394
|
-
|
13381
|
+
const J1AdocResultViewer = __webpack_require__(784);
|
13395
13382
|
// const MSIEPolyfills = require('./js/polyfills/ms-ie.js');
|
13396
13383
|
|
13397
13384
|
// HMR messages (currently NOT used)
|