j1-template 2021.1.10 → 2021.1.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_app.html +1 -1
  3. data/_includes/themes/j1/layouts/content_generator_blog_archive.html +1 -1
  4. data/_includes/themes/j1/layouts/content_generator_collection.html +1 -1
  5. data/_includes/themes/j1/layouts/content_generator_page.html +4 -1
  6. data/_includes/themes/j1/layouts/content_generator_post.html +1 -1
  7. data/_includes/themes/j1/layouts/content_generator_raw.html +1 -1
  8. data/_includes/themes/j1/layouts/layout_metadata_generator.html +55 -0
  9. data/_includes/themes/j1/modules/connectors/comment/commento.html +31 -0
  10. data/_includes/themes/j1/modules/connectors/comment/custom-provider.html +7 -8
  11. data/_includes/themes/j1/modules/connectors/comment/disqus.html +12 -54
  12. data/_includes/themes/j1/modules/connectors/comment/facebook.html +7 -8
  13. data/_includes/themes/j1/modules/connectors/comment/hyvor.html +33 -0
  14. data/_includes/themes/j1/modules/connectors/comment/just-comments.html +31 -0
  15. data/_includes/themes/j1/modules/connectors/comments +3 -0
  16. data/_layouts/default.html +51 -0
  17. data/assets/data/disqus.js +81 -0
  18. data/assets/data/hyvor.js +72 -0
  19. data/assets/error_pages/HTTP204.html +4 -0
  20. data/assets/error_pages/HTTP400.html +4 -0
  21. data/assets/error_pages/HTTP401.html +4 -0
  22. data/assets/error_pages/HTTP403.html +4 -0
  23. data/assets/error_pages/HTTP404.html +4 -0
  24. data/assets/error_pages/HTTP444.html +93 -0
  25. data/assets/error_pages/HTTP500.html +4 -0
  26. data/assets/error_pages/HTTP501.html +4 -0
  27. data/assets/error_pages/HTTP502.html +4 -0
  28. data/assets/error_pages/HTTP503.html +4 -0
  29. data/assets/themes/j1/adapter/js/algolia.js +10 -10
  30. data/assets/themes/j1/adapter/js/asciidoctor.js +6 -6
  31. data/assets/themes/j1/adapter/js/attic.js +17 -17
  32. data/assets/themes/j1/adapter/js/bmd.js +6 -6
  33. data/assets/themes/j1/adapter/js/carousel.js +10 -10
  34. data/assets/themes/j1/adapter/js/clipboard.js +10 -10
  35. data/assets/themes/j1/adapter/js/cookieConsent.js +60 -41
  36. data/assets/themes/j1/adapter/js/fam.js +34 -34
  37. data/assets/themes/j1/adapter/js/framer.js +6 -6
  38. data/assets/themes/j1/adapter/js/j1.js +537 -237
  39. data/assets/themes/j1/adapter/js/justifiedGallery.js +11 -11
  40. data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +19 -19
  41. data/assets/themes/j1/adapter/js/lightbox.js +6 -6
  42. data/assets/themes/j1/adapter/js/logger.js +7 -7
  43. data/assets/themes/j1/adapter/js/mmenu.js +25 -25
  44. data/assets/themes/j1/adapter/js/navigator.js +58 -48
  45. data/assets/themes/j1/adapter/js/quicksearch.js +6 -6
  46. data/assets/themes/j1/adapter/js/rouge.js +7 -7
  47. data/assets/themes/j1/adapter/js/rtable.js +6 -6
  48. data/assets/themes/j1/adapter/js/themer.js +149 -96
  49. data/assets/themes/j1/adapter/js/toccer.js +9 -9
  50. data/assets/themes/j1/core/js/template.js +24 -4
  51. data/assets/themes/j1/core/js/template.js.map +1 -1
  52. data/assets/themes/j1/core/js/template.min.js +24 -4
  53. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  54. data/assets/themes/j1/modules/backstretch/js/backstretch.js +3 -3
  55. data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +35 -23
  56. data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +2 -2
  57. data/assets/themes/j1/modules/lunrSearch/js/quicksearch.js +1 -1
  58. data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +74 -55
  59. data/assets/themes/j1/modules/themeSwitcher/js/switcher.min.js +75 -57
  60. data/lib/j1/version.rb +1 -1
  61. data/lib/starter_web/Gemfile +1 -1
  62. data/lib/starter_web/_config.yml +42 -24
  63. data/lib/starter_web/_data/j1_config.yml +22 -11
  64. data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +11 -9
  65. data/lib/starter_web/_data/modules/defaults/themer.yml +2 -0
  66. data/lib/starter_web/_data/resources.yml +0 -4
  67. data/lib/starter_web/_includes/attributes.asciidoc +1 -1
  68. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  69. data/lib/starter_web/assets/images/modules/attics/matthew-dockery-1920x1280.jpg +0 -0
  70. data/lib/starter_web/index.html +3 -3
  71. data/lib/starter_web/package.json +1 -1
  72. data/lib/starter_web/pages/public/asciidoc_skeletons/book/book.adoc +3 -0
  73. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +3 -0
  74. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +3 -0
  75. data/lib/starter_web/pages/public/blog/navigator/archive.html +4 -0
  76. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +4 -0
  77. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +4 -0
  78. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +5 -1
  79. data/lib/starter_web/pages/public/blog/navigator/index.html +4 -0
  80. data/lib/starter_web/pages/public/cookieConsent.adoc +3 -0
  81. data/lib/starter_web/pages/public/learn/quickstart.adoc +473 -0
  82. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +0 -1
  83. data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +2 -1
  84. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +0 -2
  85. data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +0 -2
  86. data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +0 -1
  87. data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +0 -1
  88. data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +0 -1
  89. data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +0 -1
  90. data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +0 -1
  91. data/lib/starter_web/pages/public/learn/where_to_go.adoc +0 -1
  92. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +3 -1
  93. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +3 -1
  94. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +81 -20
  95. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +34 -16
  96. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  97. data/lib/starter_web/utilsrv/package.json +1 -1
  98. metadata +10 -8
  99. data/assets/themes/j1/adapter/js/themer.1.js +0 -326
  100. data/assets/themes/j1/modules/util/js/js.cookie.js +0 -163
  101. data/assets/themes/j1/modules/util/js/lite-url.js +0 -203
  102. data/assets/themes/j1/modules/util/js/lite-url.min.js +0 -7
  103. data/assets/themes/j1/modules/util/js/platform.js +0 -1260
  104. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.org.asciidoc +0 -244
@@ -2,6 +2,7 @@
2
2
  regenerate: false
3
3
  permalink: /502.html
4
4
  http_error: 502
5
+ back_url: /
5
6
  sitemap: false
6
7
  ---
7
8
  {% capture j1_cache %}
@@ -48,12 +49,14 @@ sitemap: false
48
49
 
49
50
  {% if language == 'en' %}
50
51
  {% assign title = "Service currently unavailable" %}
52
+ {% assign back_url_text = "Back Home" %}
51
53
  {% assign reason = "We&#39;ve got some trouble with our backend upstream cluster. <br/> Our service team has been dispatched to bring it back online." %}
52
54
  {% assign contact_issue = "Technical Contact" %}
53
55
  {% endif %}
54
56
 
55
57
  {% if language == 'de' %}
56
58
  {% assign title = "Dienst zurzeit nicht verfügbar" %}
59
+ {% assign back_url_text = "Zurück zur Startseite" %}
57
60
  {% assign reason = "Der Server konnte seine Funktion als Gateway oder Proxy nicht erfüllen. <br/> Das Service Team ist bemüht den Dienst wiederherzustellen." %}
58
61
  {% assign contact_issue = "Technischer Kontakt" %}
59
62
  {% endif %}
@@ -77,6 +80,7 @@ sitemap: false
77
80
  <div class="cover attic">
78
81
  <h1>{{title}} <small>{{page.http_error}}</small></h1>
79
82
  <p class="lead">{{reason}}</p>
83
+ <div><a href="{{page.back_url}}">{{back_url_text}}</a></div>
80
84
  </div>
81
85
  <footer>
82
86
  <p>{{copyright_info}} · {{contact_issue}}: <a href="mailto:{{webmaster_email}}?subject={{title}}">{{webmaster_email}}</a></p>
@@ -2,6 +2,7 @@
2
2
  regenerate: false
3
3
  permalink: /503.html
4
4
  http_error: 503
5
+ back_url: /
5
6
  sitemap: false
6
7
  ---
7
8
  {% capture j1_cache %}
@@ -50,12 +51,14 @@ sitemap: false
50
51
 
51
52
  {% if language == 'en' %}
52
53
  {% assign title = "Service currently unavailable" %}
54
+ {% assign back_url_text = "Back Home" %}
53
55
  {% assign reason = "The server is temporarily unavailable. <br/> Please try again later." %}
54
56
  {% assign contact_issue = "Technical Contact" %}
55
57
  {% endif %}
56
58
 
57
59
  {% if language == 'de' %}
58
60
  {% assign title = "Dienst zurzeit nicht verfügbar" %}
61
+ {% assign back_url_text = "Zurück zur Startseite" %}
59
62
  {% assign reason = "Der Server steht temporär nicht zur Verfügung. <br/> Bitte versuchen Sie es später nocheinmal." %}
60
63
  {% assign contact_issue = "Technischer Kontakt" %}
61
64
  {% endif %}
@@ -79,6 +82,7 @@ sitemap: false
79
82
  <div class="cover attic">
80
83
  <h1>{{title}} <small>{{page.http_error}}</small></h1>
81
84
  <p class="lead">{{reason}}</p>
85
+ <div><a href="{{page.back_url}}">{{back_url_text}}</a></div>
82
86
  </div>
83
87
  <footer>
84
88
  <p>{{copyright_info}} · {{contact_issue}}: <a href="mailto:{{webmaster_email}}?subject={{title}}">{{webmaster_email}}</a></p>
@@ -119,8 +119,8 @@ j1.adapter['algolia'] = (function (j1, window) {
119
119
  }, options);
120
120
 
121
121
  _this.setState('started');
122
- logger.info('state: ' + _this.getState());
123
- logger.info('module is being initialized');
122
+ logger.info('\n' + 'state: ' + _this.getState());
123
+ logger.info('\n' + 'module is being initialized');
124
124
 
125
125
  {% comment %} Load module config from yml data
126
126
  -------------------------------------------------------------------------- {% endcomment %}
@@ -142,7 +142,7 @@ j1.adapter['algolia'] = (function (j1, window) {
142
142
 
143
143
  var hitTemplate = function(hit) {
144
144
  // state = 'start search';
145
- // logger.info('state: ' + state);
145
+ // logger.info('\n' + 'state: ' + state);
146
146
  // var re = new RegExp('^\/posts');
147
147
  // var re = new RegExp('^\/pages');
148
148
  var re = new RegExp('^\/pages|^\/posts|^\/collections');
@@ -182,7 +182,7 @@ j1.adapter['algolia'] = (function (j1, window) {
182
182
  `;
183
183
  }
184
184
  // state = 'finished search';
185
- // logger.info('state: ' + state);
185
+ // logger.info('\n' + 'state: ' + state);
186
186
  };
187
187
 
188
188
  if (moduleOptions.enabled == true) {
@@ -272,14 +272,14 @@ j1.adapter['algolia'] = (function (j1, window) {
272
272
  $('#searcher').addClass('row');
273
273
 
274
274
  _this.setState('finished');
275
- logger.info('state: ' + _this.getState());
276
- logger.info('module initialized successfully');
275
+ logger.info('\n' + 'state: ' + _this.getState());
276
+ logger.info('\n' + 'module initialized successfully');
277
277
 
278
278
  } else {
279
279
  $('#algolia-site-search').append('<p class="ml-5 mt-5 mb-5 "> <strong>Algolia Search DISABLED</strong> </p>');
280
280
  _this.setState('finished');
281
- logger.info('state: ' + _this.getState());
282
- logger.warn('module disabled');
281
+ logger.info('\n' + 'state: ' + _this.getState());
282
+ logger.warn('\n' + 'module disabled');
283
283
  }
284
284
 
285
285
  return true;
@@ -292,7 +292,7 @@ j1.adapter['algolia'] = (function (j1, window) {
292
292
  messageHandler: function (sender, message) {
293
293
  var json_message = JSON.stringify(message, undefined, 2);
294
294
 
295
- logText = 'received message from ' + sender + ': ' + json_message;
295
+ logText = '\n' + 'received message from ' + sender + ': ' + json_message;
296
296
  logger.debug(logText);
297
297
 
298
298
  // -----------------------------------------------------------------------
@@ -302,7 +302,7 @@ j1.adapter['algolia'] = (function (j1, window) {
302
302
  //
303
303
  // Place handling of command|action here
304
304
  //
305
- logger.info(message.text);
305
+ logger.info('\n' + message.text);
306
306
  }
307
307
 
308
308
  //
@@ -79,8 +79,8 @@ j1.adapter['asciidoctor'] = (function (j1, window) {
79
79
 
80
80
  // initialize state flag
81
81
  _this.setState('started');
82
- logger.info('state: ' + _this.getState());
83
- logger.info('module is being initialized');
82
+ logger.info('\n' + 'state: ' + _this.getState());
83
+ logger.info('\n' + 'module is being initialized');
84
84
 
85
85
  // -----------------------------------------------------------------------
86
86
  // Default module settings
@@ -93,7 +93,7 @@ j1.adapter['asciidoctor'] = (function (j1, window) {
93
93
  // -----------------------------------------------------------------------
94
94
  // asciidoctor initializer
95
95
  // -----------------------------------------------------------------------
96
- var log_text = 'asciidoctor is being initialized';
96
+ var log_text = '\n' + 'asciidoctor is being initialized';
97
97
  logger.info(log_text);
98
98
 
99
99
 
@@ -103,7 +103,7 @@ j1.adapter['asciidoctor'] = (function (j1, window) {
103
103
  j1.core.asciidoctor.init();
104
104
 
105
105
  _this.setState('finished');
106
- logger.info('state: ' + _this.getState());
106
+ logger.info('\n' + 'state: ' + _this.getState());
107
107
 
108
108
  clearInterval(dependencies_met_j1_finished);
109
109
  } // END dependencies_met_j1_finished
@@ -118,7 +118,7 @@ j1.adapter['asciidoctor'] = (function (j1, window) {
118
118
  messageHandler: function (sender, message) {
119
119
  var json_message = JSON.stringify(message, undefined, 2);
120
120
 
121
- logText = 'received message from ' + sender + ': ' + json_message;
121
+ logText = '\n' + 'received message from ' + sender + ': ' + json_message;
122
122
  logger.debug(logText);
123
123
 
124
124
  // -----------------------------------------------------------------------
@@ -128,7 +128,7 @@ j1.adapter['asciidoctor'] = (function (j1, window) {
128
128
  //
129
129
  // Place handling of command|action here
130
130
  //
131
- logger.info(message.text);
131
+ logger.info('\n' + message.text);
132
132
  }
133
133
 
134
134
  //
@@ -121,8 +121,8 @@ j1.adapter['attic'] = (function (j1, window) {
121
121
  _this['frontmatterOptions'] = frontmatterOptions;
122
122
 
123
123
  _this.setState('started');
124
- logger.info('state: ' + _this.getState());
125
- logger.info('module is being initialized');
124
+ logger.info('\n' + 'state: ' + _this.getState());
125
+ logger.info('\n' + 'module is being initialized');
126
126
 
127
127
  _this.loadHeader(frontmatterOptions);
128
128
  }, // END init
@@ -183,7 +183,7 @@ j1.adapter['attic'] = (function (j1, window) {
183
183
  -------------------------------------------------------------------- {% endcomment %}
184
184
  $(window).on('backstretch.before', function (e, instance, index) {
185
185
  _this.setState('backstretch_before');
186
- logger.debug('state: ' + _this.getState());
186
+ logger.debug('\n' + 'state: ' + _this.getState());
187
187
  });
188
188
 
189
189
  {% comment %} Add a caption (c) or badge (b) if configured
@@ -192,8 +192,8 @@ j1.adapter['attic'] = (function (j1, window) {
192
192
  $(window).on('backstretch.after', function (e, instance, index) {
193
193
  logText ='add caption text';
194
194
  _this.setState('backstretch_after');
195
- logger.debug('state: ' + status);
196
- logger.debug(logText);
195
+ logger.debug('\n' + 'state: ' + status);
196
+ // logger.debug(logText);
197
197
 
198
198
  if (typeof atticOptions.slides[index].caption != 'undefined') {
199
199
  var cText = atticOptions.slides[index].caption.text;
@@ -233,8 +233,8 @@ j1.adapter['attic'] = (function (j1, window) {
233
233
  }
234
234
  }
235
235
  _this.setState('finished');
236
- logger.info('state: ' + _this.getState());
237
- logger.info('module initialized successfully');
236
+ logger.info('\n' + 'state: ' + _this.getState());
237
+ logger.info('\n' + 'module initialized successfully');
238
238
  });
239
239
 
240
240
  {% comment %} Detect how show should run (only once|infinite loop)
@@ -242,7 +242,7 @@ j1.adapter['attic'] = (function (j1, window) {
242
242
  {% if image_loop %}
243
243
  $(window).on('backstretch.before', function (e, instance, index) {
244
244
  _this.setState('backstretch_before_image_loop');
245
- logger.debug('state: ' + _this.getState());
245
+ logger.debug('\n' + 'state: ' + _this.getState());
246
246
  // remove class for the backstretch_intro background
247
247
  if (index === backstretch_instance_data.images.length -1) {
248
248
  $('.backstretch').removeClass(atticOptions.spinner);
@@ -251,7 +251,7 @@ j1.adapter['attic'] = (function (j1, window) {
251
251
  {% else %}
252
252
  $(window).on('backstretch.before', function (e, instance, index) {
253
253
  _this.setState('backstretch_before_image_once');
254
- logger.debug('state: ' + _this.getState());
254
+ logger.debug('\n' + 'state: ' + _this.getState());
255
255
  // Stop the slideshow after reached the last image
256
256
  if (index === backstretch_instance_data.images.length -1) {
257
257
  $('#{{attic_id}}').backstretch('pause');
@@ -494,18 +494,18 @@ j1.adapter['attic'] = (function (j1, window) {
494
494
  $('head').append(attic_opacity);
495
495
 
496
496
  _this.setState('initialized');
497
- logger.info('state: ' + _this.getState());
497
+ logger.info('\n' + 'state: ' + _this.getState());
498
498
 
499
499
  {% comment %} Run the image header if any
500
500
  -------------------------------------------------------------------- {% endcomment %}
501
501
  if (typeof atticOptions.slides != 'undefined') {
502
502
  // Load the image header if the page is ready (visible)
503
503
  $(function() {
504
- // logger.debug('Load image header on: ' + {{attic_id}});
505
- logger.debug('Load image header');
504
+ // logger.debug('\n' + 'Load image header on: ' + {{attic_id}});
505
+ logger.debug('\n' + 'Load image header');
506
506
  {{attic_id}}(atticOptions);
507
507
  _this.setState('completed');
508
- logger.info('state: ' + _this.getState());
508
+ logger.info('\n' + 'state: ' + _this.getState());
509
509
  });
510
510
  }
511
511
  } // END if header id found in page
@@ -515,8 +515,8 @@ j1.adapter['attic'] = (function (j1, window) {
515
515
  // NO header found in page
516
516
  if ($('#no_header').length) {
517
517
  _this.setState('completed');
518
- logger.info('state: ' + _this.getState());
519
- logger.warn('No header configured or found in page');
518
+ logger.info('\n' + 'state: ' + _this.getState());
519
+ logger.warn('\n' + 'no header configured or found in page');
520
520
  }
521
521
 
522
522
  return true;
@@ -529,7 +529,7 @@ j1.adapter['attic'] = (function (j1, window) {
529
529
  messageHandler: function (sender, message) {
530
530
  var json_message = JSON.stringify(message, undefined, 2);
531
531
 
532
- logText = 'received message from ' + sender + ': ' + json_message;
532
+ logText = '\n' + 'received message from ' + sender + ': ' + json_message;
533
533
  logger.debug(logText);
534
534
 
535
535
  // -----------------------------------------------------------------------
@@ -537,7 +537,7 @@ j1.adapter['attic'] = (function (j1, window) {
537
537
  // -----------------------------------------------------------------------
538
538
  if (message.type === 'command' && message.action === 'module_initialized') {
539
539
  status = 'completed';
540
- logger.info(message.text);
540
+ logger.info('\n' + message.text);
541
541
  }
542
542
 
543
543
  //
@@ -79,8 +79,8 @@ j1.adapter['bmd'] = (function (j1, window) {
79
79
 
80
80
  // initialize state flag
81
81
  _this.setState('started');
82
- logger.info('state: ' + _this.getState());
83
- logger.info('module is being initialized');
82
+ logger.info('\n' + 'state: ' + _this.getState());
83
+ logger.info('\n' + 'module is being initialized');
84
84
 
85
85
  // -----------------------------------------------------------------------
86
86
  // Default module settings
@@ -93,7 +93,7 @@ j1.adapter['bmd'] = (function (j1, window) {
93
93
  // -----------------------------------------------------------------------
94
94
  // BMD initializer
95
95
  // -----------------------------------------------------------------------
96
- var log_text = 'BMD is being initialized';
96
+ var log_text = '\n' + 'BMD is being initialized';
97
97
  logger.info(log_text);
98
98
 
99
99
  var dependencies_met_j1_finished = setInterval(function() {
@@ -101,7 +101,7 @@ j1.adapter['bmd'] = (function (j1, window) {
101
101
  $('body').bootstrapMaterialDesign();
102
102
 
103
103
  _this.setState('finished');
104
- logger.info('state: ' + _this.getState());
104
+ logger.info('\n' + 'state: ' + _this.getState());
105
105
 
106
106
  clearInterval(dependencies_met_j1_finished);
107
107
  } // END dependencies_met_j1_finished
@@ -116,7 +116,7 @@ j1.adapter['bmd'] = (function (j1, window) {
116
116
  messageHandler: function (sender, message) {
117
117
  var json_message = JSON.stringify(message, undefined, 2);
118
118
 
119
- logText = 'received message from ' + sender + ': ' + json_message;
119
+ logText = '\n' + 'received message from ' + sender + ': ' + json_message;
120
120
  logger.debug(logText);
121
121
 
122
122
  // -----------------------------------------------------------------------
@@ -126,7 +126,7 @@ j1.adapter['bmd'] = (function (j1, window) {
126
126
  //
127
127
  // Place handling of command|action here
128
128
  //
129
- logger.info(message.text);
129
+ logger.info('\n' + message.text);
130
130
  }
131
131
 
132
132
  //
@@ -131,8 +131,8 @@ j1.adapter['carousel'] = (function (j1, window) {
131
131
  }
132
132
 
133
133
  _this.setState('started');
134
- logger.info('state: ' + _this.getState());
135
- logger.info('module is being initialized');
134
+ logger.info('\n' + 'state: ' + _this.getState());
135
+ logger.info('\n' + 'module is being initialized');
136
136
 
137
137
  var dependencies_met_page_finished = setInterval(function() {
138
138
  if (j1.getState() == 'finished') {
@@ -157,11 +157,11 @@ j1.adapter['carousel'] = (function (j1, window) {
157
157
  if ($('#{{slider_id}}').length) {
158
158
 
159
159
  {% if environment == 'development' %}
160
- logText = 'slider is being initialized on id: #{{slider_id}}';
160
+ logText = '\n' + 'slider is being initialized on id: #{{slider_id}}';
161
161
  logger.info(logText);
162
162
  _this.setState('running');
163
- logger.info('state: ' + _this.getState());
164
- logger.info('module is being initialized');
163
+ logger.info('\n' + 'state: ' + _this.getState());
164
+ logger.info('\n' + 'module is being initialized');
165
165
  {% endif %}
166
166
 
167
167
  {% if item.show.slide_height != null %}
@@ -336,7 +336,7 @@ j1.adapter['carousel'] = (function (j1, window) {
336
336
  {% endif %}
337
337
  }
338
338
  $('#{{slider_id}}').html(content);
339
- logText = 'initializing slider finished on id: {{slider_id}}';
339
+ logText = '\n' + 'initializing slider finished on id: {{slider_id}}';
340
340
  logger.info(logText);
341
341
  } // END customDataSuccess_{{forloop.index}}
342
342
  } // END if carousel exists
@@ -345,8 +345,8 @@ j1.adapter['carousel'] = (function (j1, window) {
345
345
  clearInterval(dependencies_met_page_finished);
346
346
  }
347
347
  _this.setState('finished');
348
- logger.info('state: ' + _this.getState());
349
- logger.info('initializing module finished');
348
+ logger.info('\n' + 'state: ' + _this.getState());
349
+ logger.info('\n' + 'initializing module finished');
350
350
  }, 25); // END 'dependencies_met_adapter_finished'
351
351
  }, // END init
352
352
 
@@ -357,7 +357,7 @@ j1.adapter['carousel'] = (function (j1, window) {
357
357
  messageHandler: function (sender, message) {
358
358
  var json_message = JSON.stringify(message, undefined, 2);
359
359
 
360
- logText = 'received message from ' + sender + ': ' + json_message;
360
+ logText = '\n' + 'received message from ' + sender + ': ' + json_message;
361
361
  logger.debug(logText);
362
362
 
363
363
  // -----------------------------------------------------------------------
@@ -367,7 +367,7 @@ j1.adapter['carousel'] = (function (j1, window) {
367
367
  //
368
368
  // Place handling of command|action here
369
369
  //
370
- logger.info(message.text);
370
+ logger.info('\n' + message.text);
371
371
  }
372
372
 
373
373
  //
@@ -101,13 +101,13 @@ j1.adapter['clipboard'] = (function (j1, window) {
101
101
 
102
102
  // initialize state flag
103
103
  _this.state = 'started';
104
- logText = 'initialization: started';
104
+ logText = '\n' + 'initialization: started';
105
105
  logger.info(logText);
106
106
 
107
107
  // initialize ClipboardJS if page is loaded
108
108
  var dependencies_met_j1_finished = setInterval(function() {
109
109
  if ( j1.getState() == 'finished' ) {
110
- logText = 'create clipboard';
110
+ logText = '\n' + 'create clipboard';
111
111
  logger.info(logText);
112
112
 
113
113
  clipboardJS = new ClipboardJS('.btn-clipboard', {
@@ -120,10 +120,10 @@ j1.adapter['clipboard'] = (function (j1, window) {
120
120
  _this.initEventHandler(clipboardJS);
121
121
 
122
122
  clearInterval(dependencies_met_j1_finished);
123
- logger.info('met dependencies for: j1');
123
+ logger.info('\n' + 'met dependencies for: j1');
124
124
  _this.setState('finished');
125
- logger.info('state: ' + _this.getState());
126
- logger.info('module initialized successfully');
125
+ logger.info('\n' + 'state: ' + _this.getState());
126
+ logger.info('\n' + 'module initialized successfully');
127
127
  }
128
128
  }, 25); // END dependencies_met_j1_finished
129
129
  },
@@ -154,7 +154,7 @@ j1.adapter['clipboard'] = (function (j1, window) {
154
154
  clipboard.on('success', function (e) {
155
155
  $(e.trigger).attr('title', 'copied!').tooltip('_fixTitle').tooltip('show').attr('title', 'Copy to clipboard').tooltip('_fixTitle');
156
156
  var logger = log4javascript.getLogger('j1.initClipboard');
157
- var logText = 'initialization copy-to-clipboard sucessfull';
157
+ var logText = '\n' + 'initialization copy-to-clipboard sucessfull';
158
158
  logger.debug(logText);
159
159
  /* Cleanup clipped data for trailing numbers */
160
160
  var splitted = e.text.split('\n');
@@ -168,7 +168,7 @@ j1.adapter['clipboard'] = (function (j1, window) {
168
168
  clipboard.on('error', function (e) {
169
169
  var fallbackMsg = /Mac/i.test(navigator.userAgent) ? 'press \u2318 to copy' : 'press ctrl-c to copy';
170
170
  logger = log4javascript.getLogger('j1.initClipboard');
171
- logText = 'initialization copy-to-clipboard failed, fallback used.';
171
+ logText = '\n' + 'initialization copy-to-clipboard failed, fallback used.';
172
172
  logger.warn(logText);
173
173
  $(e.trigger).attr('title', fallbackMsg).tooltip('_fixTitle').tooltip('show').attr('title', 'copy to clipboard').tooltip('_fixTitle');
174
174
  });
@@ -182,7 +182,7 @@ j1.adapter['clipboard'] = (function (j1, window) {
182
182
  // var json_message = JSON.stringify(message, undefined, 2); // multiline
183
183
  var json_message = JSON.stringify(message);
184
184
 
185
- logText = 'received message from ' + sender + ': ' + json_message;
185
+ logText = '\n' + 'received message from ' + sender + ': ' + json_message;
186
186
  logger.debug(logText);
187
187
 
188
188
  // -----------------------------------------------------------------------
@@ -192,10 +192,10 @@ j1.adapter['clipboard'] = (function (j1, window) {
192
192
  //
193
193
  // Place handling of command|action here
194
194
  //
195
- logger.info(message.text);
195
+ logger.info('\n' + message.text);
196
196
  }
197
197
  if (message.type === 'command' && message.action === 'status') {
198
- logger.info('messageHandler: received - ' + message.action);
198
+ logger.info('\n' + 'messageHandler: received - ' + message.action);
199
199
  }
200
200
 
201
201
  //