j1-template 2022.0.1 → 2022.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/blocks/ads/ad.html +14 -14
  3. data/_includes/themes/j1/layouts/content_generator_post.html +1 -1
  4. data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +3 -13
  5. data/_includes/themes/j1/modules/connectors/comment/hyvor.html +4 -5
  6. data/_includes/themes/j1/modules/navigator/generator.html +3 -3
  7. data/_includes/themes/j1/modules/search/docsearch.html +1 -1
  8. data/_includes/themes/j1/procedures/global/create_bs_button.proc +4 -4
  9. data/_includes/themes/j1/procedures/posts/collate_timeline.proc +2 -2
  10. data/_includes/themes/j1/procedures/posts/create_series_header.proc +1 -1
  11. data/_includes/themes/j1/procedures/posts/pager.proc +2 -2
  12. data/_layouts/default.html +3 -11
  13. data/assets/data/authclient.html +11 -11
  14. data/assets/data/cookieconsent.html +8 -8
  15. data/assets/data/gallery_customizer.html +4 -4
  16. data/assets/data/menu.html +13 -13
  17. data/assets/data/mmenu.html +2 -2
  18. data/assets/data/private.json +1 -5
  19. data/assets/data/quicklinks.html +62 -47
  20. data/assets/data/rtext_resizer.html +1 -1
  21. data/assets/data/themes.bootswatch.json +2 -2
  22. data/assets/data/themes.json +4 -4
  23. data/assets/data/translator.html +8 -8
  24. data/assets/themes/j1/adapter/js/clipboard.js +1 -1
  25. data/assets/themes/j1/adapter/js/cookieConsent.js +18 -13
  26. data/assets/themes/j1/adapter/js/j1.js +23 -23
  27. data/assets/themes/j1/adapter/js/navigator.js +3 -3
  28. data/assets/themes/j1/adapter/js/themer.js +13 -4
  29. data/assets/themes/j1/adapter/js/translator.js +10 -6
  30. data/assets/themes/j1/core/css/themes/{uno-dark → unodark}/bootstrap.css +0 -0
  31. data/assets/themes/j1/core/css/themes/{uno-dark → unodark}/bootstrap.min.css +0 -0
  32. data/assets/themes/j1/core/css/themes/{uno-light → unolight}/bootstrap.css +326 -18
  33. data/assets/themes/j1/core/css/themes/{uno-light → unolight}/bootstrap.min.css +1 -1
  34. data/assets/themes/j1/core/js/template.js +143 -65
  35. data/assets/themes/j1/core/js/template.min.js +5 -5
  36. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  37. data/assets/themes/j1/modules/bmd/js/bmd.js +3 -3
  38. data/assets/themes/j1/modules/bmd/js/bmd.min.js +1 -1
  39. data/assets/themes/j1/modules/cryptoJS/js/aes.js +35 -0
  40. data/assets/themes/j1/modules/cryptoJS/js/aes.min.js +35 -0
  41. data/assets/themes/j1/modules/cryptoJS/js/hmac-md5.js +21 -0
  42. data/assets/themes/j1/modules/cryptoJS/js/hmac-ripemd160.js +31 -0
  43. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha1.js +17 -0
  44. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha224.js +19 -0
  45. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha256.js +18 -0
  46. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha3.js +21 -0
  47. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha384.js +27 -0
  48. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha512.js +25 -0
  49. data/assets/themes/j1/modules/cryptoJS/js/md5.js +19 -0
  50. data/assets/themes/j1/modules/cryptoJS/js/pbkdf2.js +19 -0
  51. data/assets/themes/j1/modules/cryptoJS/js/rabbit-legacy.js +36 -0
  52. data/assets/themes/j1/modules/cryptoJS/js/rabbit.js +36 -0
  53. data/assets/themes/j1/modules/cryptoJS/js/rc4.js +33 -0
  54. data/assets/themes/j1/modules/cryptoJS/js/ripemd160.js +29 -0
  55. data/assets/themes/j1/modules/cryptoJS/js/sha1.js +15 -0
  56. data/assets/themes/j1/modules/cryptoJS/js/sha224.js +17 -0
  57. data/assets/themes/j1/modules/cryptoJS/js/sha256.js +16 -0
  58. data/assets/themes/j1/modules/cryptoJS/js/sha3.js +19 -0
  59. data/assets/themes/j1/modules/cryptoJS/js/sha384.js +25 -0
  60. data/assets/themes/j1/modules/cryptoJS/js/sha512.js +23 -0
  61. data/assets/themes/j1/modules/cryptoJS/js/tripledes.js +51 -0
  62. data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.2.js +460 -0
  63. data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.js +379 -353
  64. data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.min.js +1 -1
  65. data/assets/themes/j1/modules/gtag-opt-in/js/gtag-opt-in.js +93 -1
  66. data/assets/themes/j1/modules/materialize/js/autocomplete.js +1 -1
  67. data/assets/themes/j1/modules/materialize/js/bin/materialize.js +4 -4
  68. data/assets/themes/j1/modules/materialize/js/bin/materialize.min.js +1 -1
  69. data/assets/themes/j1/modules/materialize/js/global.js +1 -1
  70. data/assets/themes/j1/modules/materialize/js/select.js +1 -1
  71. data/assets/themes/j1/modules/materialize/js/tapTarget.cash.js +1 -1
  72. data/assets/themes/j1/modules/scroller/js/scroller.js +6 -6
  73. data/assets/themes/j1/modules/scroller/js/scroller.min.js +1 -1
  74. data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.js +2 -2
  75. data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.min.js +1 -1
  76. data/exe/j1 +6 -7
  77. data/lib/j1/commands/generate.rb +15 -16
  78. data/lib/j1/version.rb +1 -1
  79. data/lib/starter_web/Gemfile +7 -1
  80. data/lib/starter_web/_config.yml +1 -1
  81. data/lib/starter_web/_data/_defaults/j1_config.yml +1 -1
  82. data/lib/starter_web/_data/_defaults/private.yml +3 -2
  83. data/lib/starter_web/_data/_defaults/resources.yml +1 -1
  84. data/lib/starter_web/_data/blocks/banner.yml +5 -5
  85. data/lib/starter_web/_data/blocks/defaults/banner.yml +5 -5
  86. data/lib/starter_web/_data/blocks/defaults/panel.yml +3 -3
  87. data/lib/starter_web/_data/builder/defaults/blog_navigator.yml +50 -44
  88. data/lib/starter_web/_data/j1_config.yml +2 -2
  89. data/lib/starter_web/_data/modules/defaults/attics.yml +1 -1
  90. data/lib/starter_web/_data/modules/defaults/navigator.yml +31 -11
  91. data/lib/starter_web/_data/modules/translator.yml +3 -3
  92. data/lib/starter_web/_data/private.yml +3 -2
  93. data/lib/starter_web/_data/resources.yml +28 -3
  94. data/lib/starter_web/_includes/attributes.asciidoc +1 -1
  95. data/lib/starter_web/_plugins/encodeBase64.rb +46 -0
  96. data/lib/starter_web/_plugins/encryptAES.rb +53 -0
  97. data/lib/starter_web/_plugins/filters.rb +2 -1
  98. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  99. data/lib/starter_web/_plugins/minifyJSON.rb +2 -2
  100. data/lib/starter_web/assets/images/pages/roundtrip/500_themes/themes-menu-1280x800.jpg +0 -0
  101. data/lib/starter_web/package.json +1 -1
  102. data/lib/starter_web/pages/_test_pages/100_side-bar-tester.adoc +1 -1
  103. data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_info.asciidoc +3 -3
  104. data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_left_warning.asciidoc +1 -1
  105. data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_right_danger.asciidoc +1 -1
  106. data/lib/starter_web/pages/_test_pages/_includes/documents/410_central_success.asciidoc +1 -1
  107. data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_left_info.asciidoc +1 -1
  108. data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_right_success.asciidoc +1 -1
  109. data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_info.asciidoc +1 -1
  110. data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_left_info.asciidoc +1 -1
  111. data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_right_success.asciidoc +1 -1
  112. data/lib/starter_web/pages/_test_pages/_includes/documents/419_advanced_modals_demo.asciidoc +22 -22
  113. data/lib/starter_web/pages/_test_pages/accordion-01-tester.adoc +3 -3
  114. data/lib/starter_web/pages/_test_pages/accordion-02-tester.adoc +3 -3
  115. data/lib/starter_web/pages/_test_pages/accordion-03-tester.adoc +4 -4
  116. data/lib/starter_web/pages/_test_pages/backdrop-tester.adoc +3 -3
  117. data/lib/starter_web/pages/_test_pages/button-tester-1.adoc +2 -2
  118. data/lib/starter_web/pages/_test_pages/cookieConsent.adoc +1 -1
  119. data/lib/starter_web/pages/_test_pages/infinite-scroll-tester.adoc +3 -3
  120. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +1 -1
  121. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
  122. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +1 -1
  123. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +0 -21
  124. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +1 -1
  125. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +1 -0
  126. data/lib/starter_web/pages/public/blog/navigator/archive.html +1 -1
  127. data/lib/starter_web/pages/public/learn/quickstart.adoc +1 -1
  128. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +4 -5
  129. data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +1 -1
  130. data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +2 -2
  131. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_bottom_info.asciidoc +3 -3
  132. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_bottom_left_warning.asciidoc +1 -1
  133. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_bottom_right_danger.asciidoc +1 -1
  134. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_central_success.asciidoc +1 -1
  135. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_full_height_left_info.asciidoc +1 -1
  136. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_full_height_right_success.asciidoc +1 -1
  137. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_top_info.asciidoc +1 -1
  138. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_top_left_info.asciidoc +1 -1
  139. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/410_top_right_success.asciidoc +1 -1
  140. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/419_advanced_modals_demo.asciidoc +51 -51
  141. data/lib/starter_web/pages/public/learn/where_to_go.adoc +1 -1
  142. data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +1 -1
  143. data/lib/starter_web/pages/public/legal/de/100_impress.adoc +1 -1
  144. data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +5 -5
  145. data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +1 -1
  146. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +1 -1
  147. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +1 -1
  148. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +4 -5
  149. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +1 -1
  150. data/lib/starter_web/pages/public/panels/intro_panel/_includes/attributes.asciidoc +55 -0
  151. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +51 -3
  152. data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +163 -73
  153. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  154. data/lib/starter_web/utilsrv/package.json +1 -1
  155. metadata +34 -9
  156. data/lib/j1/commands/help.rb +0 -32
  157. data/lib/j1/commands/module.rb +0 -69
@@ -2438,7 +2438,15 @@ module.exports = function navigator(options) {
2438
2438
  init: function init(defaultOptions, menuOptions) {
2439
2439
  logger = log4javascript.getLogger('j1.core.navigator');
2440
2440
  logText = 'core is being initialized';
2441
- logger.info(logText);
2441
+ logger.info(logText); // -----------------------------------------------------------------------
2442
+ // Create a Wrapper to suppress "DOM flicker"
2443
+ // jadams, 2021-11-13: Since moved to bs@5, an overflow is on the
2444
+ // HOME page, but NOT seen on any content page!
2445
+ // Added overflow|hidden to the wrapper as a WORKAROUND!
2446
+ // TODO: To be checked, why an overflow is seen on home page
2447
+ // -----------------------------------------------------------------------
2448
+
2449
+ $('body').wrapInner('<div id="no_flicker" class="wrapper" style="overflow: hidden; display: none;"></div>');
2442
2450
  this.manageDropdownMenu(defaultOptions, menuOptions);
2443
2451
  this.navbarSticky();
2444
2452
  this.eventHandler(defaultOptions); // jadams, 2021-07-03: initialize events early
@@ -2456,6 +2464,12 @@ module.exports = function navigator(options) {
2456
2464
  var defaultOptions = options;
2457
2465
  var logger = log4javascript.getLogger('j1.core.navigator.eventHandler');
2458
2466
  var $getNav = $('nav.navbar.navigator');
2467
+ var scrollDuration = 300;
2468
+ var page_link;
2469
+ var classname;
2470
+ var nav_link;
2471
+ var anchor_id;
2472
+ var scrollOffset;
2459
2473
  var json_data; // jadams: unused code (for now).: manages HTML5 server side events
2460
2474
  // for incoming messages from Git Server send e.g. on a 'pull request'
2461
2475
  // NOTE: used for ControlCenter (cc) functionality only !!!
@@ -2496,12 +2510,72 @@ module.exports = function navigator(options) {
2496
2510
  // 'scroll-to-top'
2497
2511
  // See:
2498
2512
  // https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault
2513
+ // https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation
2499
2514
  // https://stackoverflow.com/questions/134845/which-href-value-should-i-use-for-javascript-links-or-javascriptvoid0
2500
2515
  //
2501
2516
 
2502
2517
  $('a[href="#"]').click(function (e) {
2503
- logger.debug('\n' + 'click event on href "#" detected: prevent default action');
2504
- e.preventDefault ? e.preventDefault() : e.returnValue = false;
2518
+ page_link = document.querySelector('[id="' + decodeURI(anchor_id).split('#').join('') + '"]') ? true : false;
2519
+ anchor_id = e.target.hash ? e.target.hash : false;
2520
+ classname = e.target.className ? e.target.className : '';
2521
+ nav_link = classname.includes('nav-');
2522
+
2523
+ if (!nav_link || page_link) {
2524
+ logger.debug('\n' + 'click event on href "#" detected: prevent default action');
2525
+ e.preventDefault ? e.preventDefault() : e.returnValue = false;
2526
+ }
2527
+ }); // -----------------------------------------------------------------------
2528
+ // In-page smooth scroll
2529
+ // -----------------------------------------------------------------------
2530
+ // bind click event to all headlines generated by AsciiDoctor
2531
+ // for smooth-scroll (in-page)
2532
+ //
2533
+
2534
+ $('.sect1, .sect2 .sect3, .sect4, .sect5, .sect6').on('click', function (e) {
2535
+ page_link = document.querySelector('[id="' + decodeURI(anchor_id).split('#').join('') + '"]') ? true : false;
2536
+ anchor_id = e.target.hash ? e.target.hash : false;
2537
+ classname = e.target.className ? e.target.className : '';
2538
+ nav_link = classname.includes('nav-link'); // skip BS nav links
2539
+
2540
+ scrollOffset = j1.getScrollOffset();
2541
+
2542
+ if (anchor_id && !nav_link || page_link) {
2543
+ logger.debug('\n' + 'click event on headline detected: ' + anchor_id);
2544
+ $('html, body').animate({
2545
+ scrollTop: $(anchor_id).offset().top + scrollOffset
2546
+ }, scrollDuration);
2547
+ e.preventDefault ? e.preventDefault() : e.returnValue = false;
2548
+ }
2549
+ }); // bind click event to all HTML elements of class '.badge' (Bootstrap)
2550
+ // for smooth-scroll (in-page) to a '<div>' element
2551
+ //
2552
+
2553
+ $('.badge').on('click', function (e) {
2554
+ anchor_id = e.target.hash ? e.target.hash : false;
2555
+ scrollOffset = 100;
2556
+
2557
+ if (anchor_id) {
2558
+ logger.debug('\n' + 'click event on badge detected: ' + anchor_id);
2559
+ $('html, body').animate({
2560
+ scrollTop: $(anchor_id).offset().top - scrollOffset // NOTE: diffeent scrollOffset
2561
+
2562
+ }, scrollDuration);
2563
+ event.stopPropagation();
2564
+ }
2565
+ }); // bind click event to all HTML elements of class '.badge-tag' (j1)
2566
+ // for smooth-scroll (in-page)
2567
+
2568
+ $('.badge-tag').on('click', function (e) {
2569
+ anchor_id = e.target.hash ? e.target.hash : false;
2570
+ scrollOffset = j1.getScrollOffset();
2571
+
2572
+ if (anchor_id) {
2573
+ logger.debug('\n' + 'click event on badge-tag detected: ' + anchor_id);
2574
+ $('html, body').animate({
2575
+ scrollTop: $(anchor_id).offset().top + scrollOffset
2576
+ }, scrollDuration);
2577
+ event.stopPropagation();
2578
+ }
2505
2579
  }); // jadams: test code for jQuery plugin 'regex'
2506
2580
  // -----------------------------------------------------------------------
2507
2581
  // $('a:contains("?#")').click(function(e) {
@@ -2615,87 +2689,91 @@ module.exports = function navigator(options) {
2615
2689
  }
2616
2690
  });
2617
2691
  } // -----------------------------------------------------------------------
2618
- // Toggle Search
2692
+ // Manage events for all quicklinks
2619
2693
  // https://stackoverflow.com/questions/178325/how-do-i-check-if-an-element-is-hidden-in-jquery
2620
2694
  // https://stackoverflow.com/questions/4770025/how-to-disable-scrolling-temporarily
2621
2695
  // https://stackoverflow.com/questions/5963669/whats-the-difference-between-event-stoppropagation-and-event-preventdefault
2622
2696
  // -----------------------------------------------------------------------
2623
- // $('nav.navbar.navigator .attr-nav').each(function() {
2624
2697
 
2625
2698
 
2626
2699
  $('.attr-nav').each(function () {
2627
- logger.debug('register OPEN event|s for QuickSearch');
2628
- $('li.search > a', this).on('click', function (e) {
2629
- // e.preventDefault(); // don't do the default browser action
2630
- logger.debug('manage search action OPEN');
2631
- $('html,body').animate({
2632
- scrollTop: 0
2633
- }, 0);
2634
- $('.top-search').slideToggle('slow', 'swing', function () {
2635
- if ($('.top-search').is(':visible')) {
2636
- // disable scrolling (desktop)
2637
- $('body').addClass('stop-scrolling'); // disable scrolling (mobile)
2638
-
2639
- $('body').bind('touchmove', function (e) {
2640
- e.preventDefault();
2641
- }); // disable navbar
2642
-
2643
- $('#' + defaultOptions.nav_bar.container_id).hide();
2644
- } else {
2645
- // enable scrolling (desktop)
2646
- $('body').removeClass('stop-scrolling'); // enable scrolling (mobile)
2700
+ // ---------------------------------------------------------------------
2701
+ // QuickSearch
2702
+ //
2703
+ if ($('li.quicksearch')) {
2704
+ logger.debug('register OPEN event for QuickSearch');
2705
+ $('li.quicksearch > a', this).on('click', function (e) {
2706
+ e.preventDefault(); // don't do the default browser action
2647
2707
 
2648
- $('body').unbind('touchmove'); // enable navbar
2708
+ logger.debug('manage search action OPEN');
2709
+ $('html,body').animate({
2710
+ scrollTop: 0
2711
+ }, 0);
2712
+ $('.top-search').slideToggle('slow', 'swing', function () {
2713
+ if ($('.top-search').is(':visible')) {
2714
+ // disable scrolling (desktop)
2715
+ $('body').addClass('stop-scrolling'); // disable scrolling (mobile)
2649
2716
 
2650
- $('#' + defaultOptions.nav_bar.container_id).show();
2651
- }
2652
- }); // e.stopPropagation(); // don't bubble up the event
2653
- });
2654
- });
2655
- logger.debug('register CLOSE event|s for QuickSearch');
2656
- $('.input-group-addon.close-search').on('click', function (e) {
2657
- e.preventDefault(); // don't do the default browser action
2717
+ $('body').bind('touchmove', function (e) {
2718
+ e.preventDefault();
2719
+ }); // disable navbar
2658
2720
 
2659
- logger.debug('manage search action CLOSE');
2660
- $('.top-search').slideUp('slow', 'swing');
2661
- $('html,body').animate({
2662
- scrollTop: 0
2663
- }, 0); // enable scrolling (desktop)
2721
+ $('#' + defaultOptions.nav_bar.container_id).hide();
2722
+ } else {
2723
+ // enable scrolling (desktop)
2724
+ $('body').removeClass('stop-scrolling'); // enable scrolling (mobile)
2664
2725
 
2665
- $('body').removeClass('stop-scrolling'); // enable scrolling (mobile)
2726
+ $('body').unbind('touchmove'); // enable navbar
2666
2727
 
2667
- $('body').unbind('touchmove'); // enable navbar
2728
+ $('#' + defaultOptions.nav_bar.container_id).show();
2729
+ }
2730
+ });
2731
+ e.stopPropagation(); // don't bubble up the event
2732
+ });
2733
+ logger.debug('register CLOSE event for QuickSearch');
2734
+ $('.input-group-addon.close-search').on('click', function (e) {
2735
+ e.preventDefault(); // don't do the default browser action
2668
2736
 
2669
- $('#' + defaultOptions.nav_bar.container_id).show();
2670
- e.stopPropagation(); // don't bubble up the event
2671
- }); // -----------------------------------------------------------------------
2672
- // Toggle Translator SHOW|HIDE
2673
- // -----------------------------------------------------------------------
2737
+ logger.debug('manage search action CLOSE');
2738
+ $('.top-search').slideUp('slow', 'swing');
2739
+ $('html,body').animate({
2740
+ scrollTop: 0
2741
+ }, 0); // enable scrolling (desktop)
2674
2742
 
2675
- $('nav.navbar.navigator .attr-nav').each(function () {
2676
- logger.debug('register SHOW|HIDE event|s for J1 Translator');
2677
- $('li.translator > a', this).on('click', function (e) {
2678
- // e.preventDefault(); // don't do the default browser action
2679
- // window.location.reload(true);
2680
- logger.debug('toggle translator icon SHOW|HIDE'); // See: https://api.jquery.com/toggle/
2681
- // With no parameters, the .toggle() method simply toggles the visibility of elements
2743
+ $('body').removeClass('stop-scrolling'); // enable scrolling (mobile)
2682
2744
 
2683
- $('#google_translate_element').toggle();
2745
+ $('body').unbind('touchmove'); // enable navbar
2684
2746
 
2685
- if ($('#google_translate_element').css('display') !== 'none') {
2686
- $('html,body').animate({
2687
- scrollTop: 0
2688
- }, 'slow');
2689
- } // e.stopPropagation(); // don't bubble up the event
2747
+ $('#' + defaultOptions.nav_bar.container_id).show();
2748
+ e.stopPropagation(); // don't bubble up the event
2749
+ });
2750
+ } // END QuickSearch
2751
+ // ---------------------------------------------------------------------
2752
+ // Translator
2753
+ //
2690
2754
 
2691
- });
2692
- }); // -----------------------------------------------------------------------
2693
- // Wrapper
2694
- // -----------------------------------------------------------------------
2695
2755
 
2696
- $('body').wrapInner('<div class=\'wrapper\'></div>');
2756
+ if ($('li.translate')) {
2757
+ logger.debug('register SHOW event for J1 Translator');
2758
+ $('li.translate > a', this).on('click', function (e) {
2759
+ j1.translator.showDialog();
2760
+ });
2761
+ } // END Translator
2762
+ // ---------------------------------------------------------------------
2763
+ // CookieConsent
2764
+ //
2765
+
2766
+
2767
+ if ($('li.cookie-consent')) {
2768
+ logger.debug('register SHOW event for J1 CookieConsent');
2769
+ $('li.cookie-consent > a', this).on('click', function (e) {
2770
+ j1.cookieConsent.showDialog();
2771
+ });
2772
+ } // END CookieConsent
2773
+
2774
+ }); // End manage events for all quicklinks
2697
2775
  },
2698
- // end event
2776
+ // END eventHandler
2699
2777
  // -------------------------------------------------------------------------
2700
2778
  // Manage the Menu Dropdowns for Desktop|Mobile
2701
2779
  // -------------------------------------------------------------------------