j1-template 2022.0.9 → 2022.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/modules/ads/google_ad_content_home.html +11 -0
  3. data/_includes/themes/j1/modules/ads/google_ad_top_home.html +11 -0
  4. data/apps/public/cc/index.adoc +0 -1
  5. data/assets/data/article_navigator/index.html +0 -1
  6. data/assets/data/news_panel_posts/index.html +0 -1
  7. data/assets/error_pages/HTTP445.html +5 -4
  8. data/assets/error_pages/HTTP446.html +2 -2
  9. data/assets/error_pages/HTTP447.html +110 -0
  10. data/assets/error_pages/HTTP448.html +111 -0
  11. data/assets/themes/j1/adapter/js/advertising.js +416 -0
  12. data/assets/themes/j1/adapter/js/cookieConsent.js +8 -3
  13. data/assets/themes/j1/adapter/js/framer.js +0 -3
  14. data/assets/themes/j1/adapter/js/j1.js +6 -2
  15. data/assets/themes/j1/adapter/js/rouge.js +1 -1
  16. data/assets/themes/j1/adapter/js/scroller.js +1 -1
  17. data/assets/themes/j1/adapter/js/translator.js +15 -15
  18. data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +6 -0
  19. data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
  20. data/assets/themes/j1/modules/advertising/js/google/adInitializer.js +117 -0
  21. data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.2.js +1 -1
  22. data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.js +1 -1
  23. data/assets/themes/j1/modules/scroller/js/scroller.js +1 -1
  24. data/lib/j1/version.rb +1 -1
  25. data/lib/starter_web/Gemfile +1 -1
  26. data/lib/starter_web/_config.yml +1 -5
  27. data/lib/starter_web/_data/layouts/default.yml +7 -7
  28. data/lib/starter_web/_data/layouts/home.yml +24 -0
  29. data/lib/starter_web/_data/modules/advertising.yml +137 -10
  30. data/lib/starter_web/_data/modules/cookies.yml +1 -1
  31. data/lib/starter_web/_data/modules/defaults/advertising.yml +105 -0
  32. data/lib/starter_web/_data/resources.yml +24 -0
  33. data/lib/starter_web/_includes/attributes.asciidoc +1 -1
  34. data/lib/starter_web/_includes/themes/j1/modules/ads/google_ad_content_home.html +11 -0
  35. data/lib/starter_web/_includes/themes/j1/modules/ads/google_ad_top_home.html +11 -0
  36. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  37. data/lib/starter_web/index.html +0 -1
  38. data/lib/starter_web/package.json +1 -1
  39. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +0 -1
  40. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +0 -1
  41. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +0 -1
  42. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +0 -1
  43. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +0 -1
  44. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +0 -1
  45. data/lib/starter_web/pages/public/blog/navigator/archive.html +0 -1
  46. data/lib/starter_web/pages/public/blog/navigator/index.html +0 -1
  47. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +4 -3
  48. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.ads.asciidoc +265 -0
  49. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.no_ads.asciidoc +237 -0
  50. data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +62 -0
  51. data/lib/starter_web/pages/public/learn/roundtrip/_includes/google-ad.js +130 -0
  52. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +0 -1
  53. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +0 -1
  54. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +0 -1
  55. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  56. data/lib/starter_web/utilsrv/package.json +1 -1
  57. metadata +14 -47
  58. data/_includes/themes/j1/modules/connectors/ad/custom-provider.html +0 -30
  59. data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +0 -62
  60. data/_includes/themes/j1/modules/connectors/ads +0 -56
  61. data/lib/starter_web/pages/_test_pages/100_side-bar-tester.adoc +0 -244
  62. data/lib/starter_web/pages/_test_pages/_includes/attributes.asciidoc +0 -110
  63. data/lib/starter_web/pages/_test_pages/_includes/documents/100_gistblock.asciidoc +0 -28
  64. data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_info.asciidoc +0 -14
  65. data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_left_warning.asciidoc +0 -11
  66. data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_right_danger.asciidoc +0 -11
  67. data/lib/starter_web/pages/_test_pages/_includes/documents/410_central_success.asciidoc +0 -11
  68. data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_left_info.asciidoc +0 -11
  69. data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_right_success.asciidoc +0 -11
  70. data/lib/starter_web/pages/_test_pages/_includes/documents/410_table_bs_modal_examples.asciidoc +0 -47
  71. data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_info.asciidoc +0 -11
  72. data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_left_info.asciidoc +0 -11
  73. data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_right_success.asciidoc +0 -11
  74. data/lib/starter_web/pages/_test_pages/_includes/documents/419_advanced_modals_demo.asciidoc +0 -337
  75. data/lib/starter_web/pages/_test_pages/_includes/documents/tables/bs_modal_examples.asciidoc +0 -47
  76. data/lib/starter_web/pages/_test_pages/accordion-01-tester.adoc +0 -220
  77. data/lib/starter_web/pages/_test_pages/accordion-02-tester.adoc +0 -177
  78. data/lib/starter_web/pages/_test_pages/accordion-03-tester.adoc +0 -148
  79. data/lib/starter_web/pages/_test_pages/attribute-changes-01-tester.adoc +0 -226
  80. data/lib/starter_web/pages/_test_pages/backdrop-tester.adoc +0 -109
  81. data/lib/starter_web/pages/_test_pages/button-tester-1.adoc +0 -127
  82. data/lib/starter_web/pages/_test_pages/card-tester.adoc +0 -128
  83. data/lib/starter_web/pages/_test_pages/cookieConsent.adoc +0 -96
  84. data/lib/starter_web/pages/_test_pages/deepl.0.adoc +0 -258
  85. data/lib/starter_web/pages/_test_pages/deepl.adoc +0 -204
  86. data/lib/starter_web/pages/_test_pages/desandro-button.adoc +0 -171
  87. data/lib/starter_web/pages/_test_pages/desandro.adoc +0 -147
  88. data/lib/starter_web/pages/_test_pages/flipcard-1-tester.adoc +0 -308
  89. data/lib/starter_web/pages/_test_pages/formular-01-tester.adoc +0 -167
  90. data/lib/starter_web/pages/_test_pages/formular-02-tester.adoc +0 -727
  91. data/lib/starter_web/pages/_test_pages/google-translate-tester.0.adoc +0 -113
  92. data/lib/starter_web/pages/_test_pages/google-translate-tester.1.adoc +0 -231
  93. data/lib/starter_web/pages/_test_pages/google-translate-tester.3.adoc +0 -149
  94. data/lib/starter_web/pages/_test_pages/google-translate-tester.4.adoc +0 -237
  95. data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-2.adoc +0 -183
  96. data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-3.adoc +0 -235
  97. data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-4.adoc +0 -222
  98. data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-5.adoc +0 -119
  99. data/lib/starter_web/pages/_test_pages/infinite-scroll-tester.1.adoc +0 -236
  100. data/lib/starter_web/pages/_test_pages/infinite-scroll-tester.adoc +0 -225
  101. data/lib/starter_web/pages/_test_pages/list-group-tester.adoc +0 -265
  102. data/lib/starter_web/pages/_test_pages/tictok.adoc +0 -127
@@ -1,177 +0,0 @@
1
- ---
2
- title: Tester
3
- tagline: bootstrap accordion 2
4
- date: 2020-11-03 00:00:00 +100
5
- description: >
6
- Welcome to the preview page focussing on the image module. This page
7
- shows some valuable features of the J1 Template to manage your image-based
8
- content using lightboxes, carousels (slider), and galleries.
9
-
10
- categories: [ Testpages ]
11
- tags: [ Example ]
12
-
13
- comments: false
14
- fab_menu_id: page_ctrl_simple
15
-
16
- permalink: /pages/public/learn/bs_acc_2/
17
- regenerate: false
18
-
19
- resources: []
20
- resource_options:
21
- - attic:
22
- padding_top: 400
23
- padding_bottom: 50
24
- opacity: 0.5
25
- slides:
26
- - url: /assets/images/pages/roundtrip/images-1920x1280-bw.jpg
27
- alt: Photo by Ricardo Gomez Angel on Unsplash
28
- badge:
29
- type: unsplash
30
- author: Ricardo Gomez Angel
31
- href: https://unsplash.com/@ripato/portfolio
32
- ---
33
-
34
- // Page Initializer
35
- // =============================================================================
36
- // Enable the Liquid Preprocessor
37
- :page-liquid:
38
-
39
- // Set (local) page attributes here
40
- // -----------------------------------------------------------------------------
41
- // :page--attr: <attr-value>
42
- :images-dir: {imagesdir}/pages/roundtrip/100_present_images
43
-
44
- // Load Liquid procedures
45
- // -----------------------------------------------------------------------------
46
- {% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
47
-
48
- // Load page attributes
49
- // -----------------------------------------------------------------------------
50
- {% include {{load_attributes}} scope="global" %}
51
-
52
- {% comment %} language detection|i18n
53
- -------------------------------------------------------------------------------- {% endcomment %}
54
- {% if site.language == "en" %}
55
- {% assign language = "en" %}
56
- {% elsif site.language == "de"%}
57
- {% assign language = "de" %}
58
- {% else %}
59
- {% assign language = "en" %}
60
- {% endif %}
61
-
62
- {% if language == "en" %}
63
- {% assign readmore_text = "read" %}
64
- {% assign infinite_scroll_last = "More articles can be found with the" %}
65
- {% endif %}
66
-
67
- {% if language == "de" %}
68
- {% assign readmore_text = "lesen" %}
69
- {% assign infinite_scroll_last = "Weitere Artikel finden Sie im" %}
70
- {% endif %}
71
-
72
- // Page content
73
- // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
74
-
75
- // Include sub-documents (if any)
76
- // -----------------------------------------------------------------------------
77
-
78
- == BS Accordion 1
79
-
80
- lorem:sentences[5]
81
-
82
- ++++
83
- <div class="container">
84
-
85
- <div class="row">
86
- <div class="col-lg-9 mx-auto">
87
- <!-- Accordion -->
88
- <div id="accordionExample" class="accordion shadow">
89
-
90
- <!-- Accordion item 1 -->
91
- <div class="card">
92
- <div id="headingOne" class="card-header bg-white shadow-sm border-0">
93
- <h6 class="mb-0 font-weight-bold"><a href="#void" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne" class="d-block position-relative text-dark text-uppercase collapsible-link py-2">Collapsible Group Item #1</a></h6>
94
- </div>
95
- <div id="collapseOne" aria-labelledby="headingOne" data-parent="#accordionExample" class="collapse show">
96
- <div class="card-body p-5">
97
- <p class="font-weight-light m-0">Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.</p>
98
- </div>
99
- </div>
100
- </div>
101
-
102
- <!-- Accordion item 2 -->
103
- <div class="card">
104
- <div id="headingTwo" class="card-header bg-white shadow-sm border-0">
105
- <h6 class="mb-0 font-weight-bold"><a href="#void" data-bs-toggle="collapse" data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo" class="d-block position-relative collapsed text-dark text-uppercase collapsible-link py-2">Collapsible Group Item #2</a></h6>
106
- </div>
107
- <div id="collapseTwo" aria-labelledby="headingTwo" data-parent="#accordionExample" class="collapse">
108
- <div class="card-body p-5">
109
- <p class="font-weight-light m-0">Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.</p>
110
- </div>
111
- </div>
112
- </div>
113
-
114
- <!-- Accordion item 3 -->
115
- <div class="card">
116
- <div id="headingThree" class="card-header bg-white shadow-sm border-0">
117
- <h6 class="mb-0 font-weight-bold"><a href="#void" data-bs-toggle="collapse" data-bs-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree" class="d-block position-relative collapsed text-dark text-uppercase collapsible-link py-2">Collapsible Group Item #3</a></h6>
118
- </div>
119
- <div id="collapseThree" aria-labelledby="headingThree" data-parent="#accordionExample" class="collapse">
120
- <div class="card-body p-5">
121
- <p class="font-weight-light m-0">Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.</p>
122
- </div>
123
- </div>
124
- </div>
125
-
126
- </div>
127
- </div>
128
- </div>
129
- </div>
130
-
131
-
132
-
133
- <style>
134
- /*
135
- *
136
- * ==========================================
137
- * CUSTOM UTIL CLASSES
138
- * ==========================================
139
- *
140
- */
141
- /* Horizontal line */
142
- .collapsible-link::before {
143
- content: '';
144
- width: 14px;
145
- height: 2px;
146
- background: #333;
147
- position: absolute;
148
- top: calc(50% - 1px);
149
- right: 1rem;
150
- display: block;
151
- transition: all 0.3s;
152
- }
153
-
154
- /* Vertical line */
155
- .collapsible-link::after {
156
- content: '';
157
- width: 2px;
158
- height: 14px;
159
- background: #333;
160
- position: absolute;
161
- top: calc(50% - 7px);
162
- right: calc(1rem + 6px);
163
- display: block;
164
- transition: all 0.3s;
165
- }
166
-
167
- .collapsible-link[aria-expanded='true']::after {
168
- transform: rotate(90deg) translateX(-1px);
169
- }
170
-
171
- .collapsible-link[aria-expanded='true']::before {
172
- transform: rotate(180deg);
173
- }
174
-
175
-
176
- </style>
177
- ++++
@@ -1,148 +0,0 @@
1
- ---
2
- title: Tester
3
- tagline: bootstrap accordion 3
4
- date: 2020-11-03 00:00:00 +100
5
- description: >
6
- Welcome to the preview page focussing on the image module. This page
7
- shows some valuable features of the J1 Template to manage your image-based
8
- content using lightboxes, carousels (slider), and galleries.
9
-
10
- categories: [ Testpages ]
11
- tags: [ Example ]
12
-
13
- comments: false
14
- fab_menu_id: page_ctrl_simple
15
-
16
- permalink: /pages/public/learn/bs_acc_3/
17
- regenerate: false
18
-
19
- resources: []
20
- resource_options:
21
- - attic:
22
- padding_top: 400
23
- padding_bottom: 50
24
- opacity: 0.5
25
- slides:
26
- - url: /assets/images/pages/roundtrip/images-1920x1280-bw.jpg
27
- alt: Photo by Ricardo Gomez Angel on Unsplash
28
- badge:
29
- type: unsplash
30
- author: Ricardo Gomez Angel
31
- href: https://unsplash.com/@ripato/portfolio
32
- ---
33
-
34
- // Page Initializer
35
- // =============================================================================
36
- // Enable the Liquid Preprocessor
37
- :page-liquid:
38
-
39
- // Set (local) page attributes here
40
- // -----------------------------------------------------------------------------
41
- // :page--attr: <attr-value>
42
- :images-dir: {imagesdir}/pages/roundtrip/100_present_images
43
-
44
- // Load Liquid procedures
45
- // -----------------------------------------------------------------------------
46
- {% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
47
-
48
- // Load page attributes
49
- // -----------------------------------------------------------------------------
50
- {% include {{load_attributes}} scope="global" %}
51
-
52
- {% comment %} language detection|i18n
53
- -------------------------------------------------------------------------------- {% endcomment %}
54
- {% if site.language == "en" %}
55
- {% assign language = "en" %}
56
- {% elsif site.language == "de"%}
57
- {% assign language = "de" %}
58
- {% else %}
59
- {% assign language = "en" %}
60
- {% endif %}
61
-
62
- {% if language == "en" %}
63
- {% assign readmore_text = "read" %}
64
- {% assign infinite_scroll_last = "More articles can be found with the" %}
65
- {% endif %}
66
-
67
- {% if language == "de" %}
68
- {% assign readmore_text = "lesen" %}
69
- {% assign infinite_scroll_last = "Weitere Artikel finden Sie im" %}
70
- {% endif %}
71
-
72
- // Page content
73
- // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
74
-
75
- // https://www.tutorialrepublic.com/codelab.php?topic=bootstrap&file=expand-and-collapse-faq-accordion
76
-
77
- // Include sub-documents (if any)
78
- // -----------------------------------------------------------------------------
79
-
80
- == BS Accordion 3
81
-
82
- lorem:sentences[5]
83
-
84
- ++++
85
- <div class="row">
86
- <div class="col-lg-12">
87
- <div class="accordion" id="accordionExample">
88
- <div class="card">
89
- <div class="card-header" id="headingOne">
90
- <h2 class="clearfix mb-0">
91
- <a class="btn btn-link" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="false" aria-controls="collapseOne"><i class="fa fa-chevron-circle-down"></i> What is Bootstrap Framework?</a>
92
- </h2>
93
- </div>
94
- <div id="collapseOne" class="collapse" aria-labelledby="headingOne" data-parent="#accordionExample">
95
- <div class="card-body">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam eu sem tempor, varius quam at, luctus dui. Mauris magna metus, dapibus nec turpis vel, semper malesuada ante. Vestibulum id metus ac nisl bibendum scelerisque non non purus. Suspendisse varius nibh non aliquet sagittis. In tincidunt orci sit amet elementum vestibulum.</div>
96
- </div>
97
- </div>
98
- <div class="card">
99
- <div class="card-header" id="headingTwo">
100
- <h2 class="mb-0">
101
- <a class="btn btn-link collapsed" data-bs-toggle="collapse" data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo"><i class="fa fa-chevron-circle-down"></i> How to Create Responsive Website with Bootstrap?</a>
102
- </h2>
103
- </div>
104
- <div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionExample">
105
- <div class="card-body">Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.</div>
106
- </div>
107
- </div>
108
- <div class="card">
109
- <div class="card-header" id="headingThree">
110
- <h2 class="mb-0">
111
- <a class="btn btn-link collapsed" data-bs-toggle="collapse" data-bs-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree"><i class="fa fa-chevron-circle-down"></i> Does Bootstrap Framework Provide Cross-browser Support?</a>
112
- </h2>
113
- </div>
114
- <div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#accordionExample">
115
- <div class="card-body">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam eu sem tempor, varius quam at, luctus dui. Mauris magna metus, dapibus nec turpis vel, semper malesuada ante. Vestibulum id metus ac nisl bibendum scelerisque non non purus. Suspendisse varius nibh non aliquet sagittis. In tincidunt orci sit amet elementum vestibulum.</div>
116
- </div>
117
- </div>
118
- <div class="card">
119
- <div class="card-header" id="headingFour">
120
- <h2 class="mb-0">
121
- <a class="btn btn-link collapsed" data-bs-toggle="collapse" data-bs-target="#collapseFour" aria-expanded="false" aria-controls="collapseFour"><i class="fa fa-chevron-circle-down"></i> Can I Use Bootstrap for Mobile App Development?</a>
122
- </h2>
123
- </div>
124
- <div id="collapseFour" class="collapse" aria-labelledby="headingFour" data-parent="#accordionExample">
125
- <div class="card-body">Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.</div>
126
- </div>
127
- </div>
128
- </div>
129
- </div>
130
- </div>
131
- ++++
132
-
133
- ++++
134
- <script>
135
- $(document).ready(function(){
136
- // Add minus icon for collapse element which is open by default
137
- $(".collapse.show").each(function(){
138
- $(this).prev(".card-header").addClass("highlight");
139
- });
140
-
141
- // Highlight open collapsed element
142
- $(".card-header .btn").click(function(){
143
- $(".card-header").not($(this).parents()).removeClass("highlight");
144
- $(this).parents(".card-header").toggleClass("highlight");
145
- });
146
- });
147
- </script>
148
- ++++
@@ -1,226 +0,0 @@
1
- ---
2
- title: Tester
3
- tagline: listen attribute changes
4
- date: 2021-10-18 00:00:00 +100
5
- description: >
6
- A simple example to demonstrate how the attrchange handler
7
- function is triggered when a style attribute is changed.
8
-
9
- categories: [ Tester ]
10
- tags: [ listen, attribute, changes ]
11
-
12
- comments: false
13
- fab_menu_id: default
14
-
15
- permalink: /pages/public/learn/attr_change/
16
- regenerate: false
17
-
18
- resources: []
19
- resource_options:
20
- - attic:
21
- padding_top: 400
22
- padding_bottom: 50
23
- opacity: 0.5
24
- slides:
25
- - url: /assets/images/pages/roundtrip/images-1920x1280-bw.jpg
26
- alt: Photo by Ricardo Gomez Angel on Unsplash
27
- badge:
28
- type: unsplash
29
- author: Ricardo Gomez Angel
30
- href: https://unsplash.com/@ripato/portfolio
31
- ---
32
-
33
- // Page Initializer
34
- // =============================================================================
35
- // Enable the Liquid Preprocessor
36
- :page-liquid:
37
-
38
- // Set (local) page attributes here
39
- // -----------------------------------------------------------------------------
40
- // :page--attr: <attr-value>
41
-
42
- // Load Liquid procedures
43
- // -----------------------------------------------------------------------------
44
- {% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
45
-
46
- // Load page attributes
47
- // -----------------------------------------------------------------------------
48
- {% include {{load_attributes}} scope="none" %}
49
-
50
- // Page content
51
- // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
52
- // https://github.com/meetselva/attrchange
53
- // http://meetselva.github.io/
54
- // https://codepen.io/meetselva/pen/EVaLmP
55
-
56
- // Include sub-documents (if any)
57
- // -----------------------------------------------------------------------------
58
- == Tester
59
-
60
- .Usage
61
- [source, js]
62
- ----
63
- $([selector]).attrchange({
64
- trackValues: true,
65
- callback: function (event) {
66
- //event.attributeName - Attribute Name
67
- //event.oldValue - Prev Value
68
- //event.newValue - New Value
69
- console.log("attr changed: " +event.newValue);
70
- }
71
- });
72
- ----
73
-
74
- ++++
75
- <section class="row ml-0">
76
-
77
- <p>
78
- A simple example to demonstrate how the attrchange handler
79
- function is triggered when a style attribute is changed.
80
- Click the buttons below to move the blue box left/right 10px.
81
- </p>
82
-
83
- <div>
84
- <h3 class="notoc">Demonstration Highlights</h3>
85
- <ul>
86
- <li>Uses the supported browser specific method to detect attribute changes.</li>
87
- <li>Does not use polling to detect an attribute change</li>
88
- <li>Detected DOM change: <span id="attrchange-demo-attrchange-method"></span> </li>
89
- </ul>
90
- </div>
91
-
92
- <div class="container mb-3">
93
-
94
- <div id="attrchange-demobox">
95
- <div id="attrchange-buttons">
96
- <div class="attrchange-demo-liner">Live Demo <span class="demo-value-name">( Event Count: <span id="attrchange-demo-event-count" class="demo-value">0</span> )</span></div>
97
- <button class="attrchange-demo-button left">&lt;&lt;</button>
98
- <button class="attrchange-demo-button right">&gt;&gt;</button>
99
- </div>
100
- <div id="attrchange-demo" class="attrchange-demo">
101
- Click the buttons above to move this box left/right '10px'
102
- </div>
103
- </div>
104
-
105
- <div id="attrchange-demo-logger">
106
- <div class="attrchange-demo-liner">Logs</div>
107
- <div id="attrchange-demo-logs"></div>
108
- </div>
109
-
110
- </div>
111
- </section>
112
- ++++
113
-
114
- ++++
115
- <script>
116
- $(function () {
117
- var eventCount = 0; //event counter
118
- var $attrchange_logger = $('#attrchange-demo-logs'); //cached logger
119
-
120
- $('.attrchange-demo').attrchange({
121
- trackValues: true, // enables tracking old and new values
122
- callback: function (e) { //callback handler on DOM changes
123
- // log the events in the panel
124
- var $logs = $attrchange_logger.prepend('<p>Attribute <b>' + e.attributeName +
125
- '</b> changed from <b>' + e.oldValue +
126
- '</b> to <b>' + e.newValue +
127
- '</b></p>')
128
- .find('p');
129
-
130
- //remove old logs, lets just keep the last 5 events
131
- $logs.filter(':gt(4)').remove();
132
- // highlight the last log in #333 and rest in #999
133
- $logs.css('color', '#777').first().css('color', '#333');
134
- //show the method used for detecting DOM changes
135
- $("#attrchange-demo-attrchange-method").text($(this).attrchange("getProperties")["method"]);
136
- //show the event count
137
- $('#attrchange-demo-event-count').text(++eventCount);
138
- }
139
- });
140
-
141
- $('.attrchange-demo-button').on('click', function () {
142
- $('#attrchange-demo').css('left', ($(this).hasClass('left') ? "-=10px" : "+=10px"));
143
- });
144
-
145
- });
146
- </script>
147
- ++++
148
-
149
- ++++
150
- <style>
151
- #attrchange-demobox {
152
- height: 230px;
153
- float: left;
154
- width: 33%;
155
- background-color: #f2f2f2;
156
- position: relative;
157
- }
158
-
159
- #attrchange-buttons {
160
- margin: 0;
161
- padding: 0;
162
- }
163
-
164
- .attrchange-demo-button {
165
- margin: 0 5px;
166
- }
167
-
168
- #attrchange-demo {
169
- width: 200px;
170
- height: 40px;
171
- overflow: hidden;
172
- padding: 10px;
173
- border: 1px solid #d2d2d2;
174
- background-color: #C2D9EC;
175
- font-size: 0.9em;
176
- position: absolute;
177
- top: 95px;
178
- left: 5px;
179
- }
180
-
181
- #attrchange-demo-logger {
182
- height: 230px;
183
- float: left;
184
- width: 33%;
185
- background-color: #f2f2f2;
186
- overflow: auto;
187
- }
188
-
189
- #attrchange-demo-logs p {
190
- padding-left: 10px;
191
- }
192
-
193
- .attrchange-demo-liner {
194
- margin: 0 0 15px;
195
- font-weight: bold;
196
- background-color: #d2d2d2;
197
- padding: 5px;
198
- }
199
-
200
- .attrchange-demo-liner span {
201
- font-weight: normal;
202
- font-size: 0.9em;
203
- }
204
-
205
- .attrchange-demo-liner span.demo-value {
206
- color: #7E0136;
207
- }
208
-
209
- #attrchange-demo-highlight {
210
- float: left;
211
- width: 33%;
212
- background-color: #d2d2d2;
213
- height: 230px;
214
- }
215
-
216
- #attrchange-demo-highlight ul li {
217
- margin-top: 10px;
218
- }
219
-
220
- #attrchange-demo-attrchange-method {
221
- color: #7E0136;
222
- font-weight: bold;
223
- }
224
-
225
- </style>
226
- ++++
@@ -1,109 +0,0 @@
1
- ---
2
- title: Tester
3
- tagline: backdrop
4
- date: 2020-11-03 00:00:00 +100
5
- description: >
6
- Welcome to the preview page focussing on the image module. This page
7
- shows some valuable features of the J1 Template to manage your image-based
8
- content using lightboxes, carousels (slider), and galleries.
9
-
10
- categories: [ Testpages ]
11
- tags: [ Example ]
12
-
13
- comments: false
14
- fab_menu_id: page_ctrl_simple
15
-
16
- permalink: /pages/public/learn/bd_tester/
17
- regenerate: false
18
-
19
- resources: [
20
- clipboard, rouge, carousel, lightbox,
21
- justifiedGallery, lightGallery
22
- ]
23
- resource_options:
24
- - attic:
25
- padding_top: 400
26
- padding_bottom: 50
27
- opacity: 0.5
28
- slides:
29
- - url: /assets/images/pages/roundtrip/images-1920x1280-bw.jpg
30
- alt: Photo by Ricardo Gomez Angel on Unsplash
31
- badge:
32
- type: unsplash
33
- author: Ricardo Gomez Angel
34
- href: https://unsplash.com/@ripato/portfolio
35
- ---
36
-
37
- // Page Initializer
38
- // =============================================================================
39
- // Enable the Liquid Preprocessor
40
- :page-liquid:
41
-
42
- // Set (local) page attributes here
43
- // -----------------------------------------------------------------------------
44
- // :page--attr: <attr-value>
45
- :images-dir: {imagesdir}/pages/roundtrip/100_present_images
46
-
47
- // Load Liquid procedures
48
- // -----------------------------------------------------------------------------
49
- {% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
50
-
51
- // Load page attributes
52
- // -----------------------------------------------------------------------------
53
- {% include {{load_attributes}} scope="global" %}
54
-
55
- // Page content
56
- // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
57
-
58
- // Include sub-documents (if any)
59
- // -----------------------------------------------------------------------------
60
-
61
- ++++
62
- <div class="row mt-3 mr-3 mb-5 ml-3">
63
- <!-- Heading -->
64
- <div class="row">
65
- <div class="animated fadeInUp">
66
- <h2 class="g-font-weight-500 mb-0">Jekyll One Template</h2>
67
- <p class="tagline mb-0"><b>powerful modern static websites</b></p>
68
- <div class="d-inline-block g-width-50 g-height-2 bg-primary mb-2"></div>
69
- </div>
70
- </div>
71
- <!-- End Heading -->
72
- <!-- Body -->
73
- <div class="row animated fadeInUp">
74
- <div class="mr-3 mb-3">
75
- <p class="dropcap">
76
- Jekyll One Template is the first toolbox to create modern webs and a learning platform to experience what is behind current Internet Technologies for the World Wide Web. J1 provides creative people with both: a rich toolset to build websites and the knowledge needed to learn what's all about.
77
- </p>
78
- <p> J1 meets Jekyll and Bootstrap and makes a lot of friends. The template system combines the best free software for the Web. Jekyll One Template is OpenSource and the modules included are free to use as well. No license issues for private or professional use.</p>
79
- <p> Explore what's possible if you go for static websites.</p>
80
- </div>
81
- <!-- Footer|Button row -->
82
- <div class="mt-1 text-center">
83
- <a href="/pages/public/learn/roundtrip/present_images/" class="btn btn-xl btn-primary text-uppercase text-left mr-2 mb-2" style="min-width: 250px">
84
- <i class="mdi mdi-briefcase-search-outline mdi-3x mdi- mr-3"></i>
85
- <span class="float-right text-left mt-2">
86
- Roundtrip
87
- <span class="d-block r-text-200 text-lowercase">learn top features</span>
88
- </span>
89
- </a>
90
- <a href="https://rubygems.org/gems/j1-template" target="blank" rel="noopener" class="btn btn-xl btn-primary text-uppercase text-left mr-2 mb-2" style="min-width: 250px">
91
- <i class="mdi mdi-briefcase-download-outline mdi-3x mdi- mr-3"></i>
92
- <span class="float-right text-left mt-2">
93
- Download
94
- <span class="d-block r-text-200 text-lowercase">get on rubygems</span>
95
- </span>
96
- </a>
97
- <a href="https://jekyll.one/pages/public/learn/quickstart/" target="blank" rel="noopener" class="btn btn-xl btn-primary text-uppercase text-left mr-2 mb-2" style="min-width: 250px">
98
- <i class="mdi mdi-briefcase-check-outline mdi-3x mdi- mr-3"></i>
99
- <span class="float-right text-left mt-2">
100
- Quickstart
101
- <span class="d-block r-text-200 text-lowercase">finished in 15 minutes</span>
102
- </span>
103
- </a>
104
- </div>
105
- </div>
106
- <!-- END Body -->
107
- <!-- End Card -->
108
- </div>
109
- ++++