j1-template 2024.0.0 → 2024.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/apps/public/cc/cc.yml +35 -33
  3. data/assets/data/cookieconsent.html +15 -106
  4. data/assets/data/docsearch.html +155 -0
  5. data/assets/data/iframes.html +96 -0
  6. data/assets/data/quicklinks.html +10 -0
  7. data/assets/data/speak2me.html +4 -3
  8. data/assets/data/translator.html +27 -147
  9. data/assets/themes/j1/adapter/js/{chat.js → chatbot.js} +20 -18
  10. data/assets/themes/j1/adapter/js/clipboard.js +1 -1
  11. data/assets/themes/j1/adapter/js/docsearch.js +270 -0
  12. data/assets/themes/j1/adapter/js/gallery.js +1 -1
  13. data/assets/themes/j1/adapter/js/iframer.js +350 -0
  14. data/assets/themes/j1/adapter/js/j1.js +16 -21
  15. data/assets/themes/j1/adapter/js/mmenu.js +1 -1
  16. data/assets/themes/j1/adapter/js/navigator.js +4 -0
  17. data/assets/themes/j1/adapter/js/rouge.js +1 -1
  18. data/assets/themes/j1/adapter/js/speak2me.js +2 -2
  19. data/assets/themes/j1/adapter/js/translator.js +5 -0
  20. data/assets/themes/j1/core/css/animate.css +4 -4
  21. data/assets/themes/j1/core/css/animate.min.css +1 -1
  22. data/assets/themes/j1/core/js/template.js +19 -7
  23. data/assets/themes/j1/core/js/template.min.js +1 -1
  24. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  25. data/assets/themes/j1/modules/{chatgpt → chatbot}/css/theme/uno.css +10 -0
  26. data/assets/themes/j1/modules/chatbot/css/theme/uno.min.css +16 -0
  27. data/assets/themes/j1/modules/iframeResizer/LICENSE +1 -1
  28. data/assets/themes/j1/modules/iframeResizer/README.md +105 -0
  29. data/assets/themes/j1/modules/iframeResizer/{examples → example}/frame.absolute.html +12 -11
  30. data/assets/themes/j1/modules/iframeResizer/{examples → example}/frame.content.html +22 -28
  31. data/assets/themes/j1/modules/iframeResizer/{examples → example}/frame.hover.html +9 -8
  32. data/assets/themes/j1/modules/iframeResizer/{examples → example}/frame.nested.html +12 -12
  33. data/assets/themes/j1/modules/iframeResizer/{examples → example}/frame.textarea.html +6 -8
  34. data/assets/themes/j1/modules/iframeResizer/{examples → example}/frame.tolerance.html +11 -11
  35. data/assets/themes/j1/modules/iframeResizer/{examples → example}/index.html +43 -19
  36. data/assets/themes/j1/modules/iframeResizer/{examples → example}/two.html +8 -11
  37. data/assets/themes/j1/modules/iframeResizer/js/client/iframeResizer.contentWindow.js +84 -68
  38. data/assets/themes/j1/modules/iframeResizer/js/client/iframeResizer.contentWindow.min.js +10 -8
  39. data/assets/themes/j1/modules/iframeResizer/js/resizer.js +149 -72
  40. data/assets/themes/j1/modules/iframeResizer/js/resizer.min.js +11 -7
  41. data/lib/j1/version.rb +1 -1
  42. data/lib/starter_web/README.md +5 -5
  43. data/lib/starter_web/_config.yml +1 -1
  44. data/lib/starter_web/_data/modules/{chat.yml → chatbots.yml} +2 -2
  45. data/lib/starter_web/_data/modules/defaults/{chat.yml → chatbots.yml} +2 -2
  46. data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +3 -75
  47. data/lib/starter_web/_data/modules/defaults/docsearch.yml +87 -0
  48. data/lib/starter_web/_data/modules/defaults/{framer.yml → iframer.yml} +56 -21
  49. data/lib/starter_web/_data/modules/defaults/navigator.yml +4 -0
  50. data/lib/starter_web/_data/modules/defaults/translator.yml +11 -52
  51. data/lib/starter_web/_data/modules/{framer.yml → docsearch.yml} +20 -9
  52. data/lib/starter_web/_data/modules/iframer.yml +103 -0
  53. data/lib/starter_web/_data/modules/navigator_menu.yml +39 -1
  54. data/lib/starter_web/_data/resources.yml +41 -19
  55. data/lib/starter_web/_data/templates/feed.xml +1 -1
  56. data/lib/starter_web/_plugins/asciidoctor/iframe-block.rb +46 -0
  57. data/lib/starter_web/_plugins/index/lunr.rb +3 -2
  58. data/lib/starter_web/package.json +74 -75
  59. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/000_intro.adoc +1 -1
  60. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +1 -1
  61. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +1 -1
  62. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/111_about_the_converter.asciidoc +1 -2
  63. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/112_getting_started.asciidoc +1 -0
  64. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/211_language_overview.asciidoc +0 -1
  65. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/212_values.asciidoc +1 -2
  66. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/213_fonts.asciidoc +4 -1
  67. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/a2p.bat +2 -2
  68. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/a2p.sh +2 -3
  69. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.a2p +5 -9
  70. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +1 -1
  71. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.pdf +27727 -0
  72. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
  73. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +1 -1
  74. data/lib/starter_web/pages/public/features/general.adoc +1 -1
  75. data/lib/starter_web/pages/public/features/template.adoc +1 -1
  76. data/lib/starter_web/pages/public/learn/roundtrip/asciidoc_extensions.adoc +1 -1
  77. data/lib/starter_web/pages/public/learn/roundtrip/bootstrap_themes.adoc +1 -1
  78. data/lib/starter_web/pages/public/learn/roundtrip/highlghter_rouge.adoc +1 -1
  79. data/lib/starter_web/pages/public/learn/roundtrip/lunr_search.adoc +1 -1
  80. data/lib/starter_web/pages/public/learn/roundtrip/modal_extentions.adoc +1 -1
  81. data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +1 -1
  82. data/lib/starter_web/pages/public/learn/roundtrip/present_videos.adoc +1 -1
  83. data/lib/starter_web/pages/public/learn/roundtrip/responsive_tables.adoc +1 -1
  84. data/lib/starter_web/pages/public/learn/roundtrip/typography.adoc +1 -1
  85. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +1 -1
  86. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +1 -1
  87. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +1 -1
  88. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +1 -1
  89. data/lib/starter_web/pages/public/plans/plans.adoc +1 -1
  90. data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.hover.html +69 -0
  91. data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.nested.html +75 -0
  92. data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.textarea.html +57 -0
  93. data/lib/starter_web/pages/public/tools/previewer/_includes/documents/my.content.html +112 -0
  94. data/lib/starter_web/pages/public/tools/previewer/iframer_documents/iframe.content.html +51 -0
  95. data/lib/starter_web/pages/public/tools/previewer/iframer_documents/iframe.docsearch.info.html +84 -0
  96. data/lib/starter_web/pages/public/tools/previewer/preview_bootstrap_theme.adoc +1 -1
  97. data/lib/starter_web/pages/public/tools/previewer/preview_docsearch.adoc +92 -0
  98. data/lib/starter_web/pages/public/tools/previewer/preview_iframer.adoc +106 -0
  99. metadata +34 -25
  100. data/assets/themes/j1/adapter/js/framer.js +0 -237
  101. data/assets/themes/j1/modules/chat/css/theme/uno.css +0 -92
  102. data/assets/themes/j1/modules/chat/css/theme/uno.min.css +0 -16
  103. data/assets/themes/j1/modules/chatgpt/css/theme/uno.min.css +0 -16
  104. data/lib/starter_web/_data/_defaults/private.yml +0 -129
  105. data/lib/starter_web/_data/modules/nbinteract.yml +0 -476
  106. data/lib/starter_web/utilsrv/_defaults/package.json +0 -57
  107. data/lib/starter_web/utilsrv/package.json +0 -57
  108. data/lib/starter_web/utilsrv/server.js +0 -775
@@ -35,7 +35,7 @@ toc: true
35
35
  regenerate: false
36
36
  permalink: /pages/public/skeleton/multi/
37
37
 
38
- resources: [ animate, clipboard, lightbox, rouge ]
38
+ resources: [ animate, lightbox, rouge ]
39
39
  resource_options:
40
40
  - toccer:
41
41
  collapseDepth: 3
@@ -34,7 +34,7 @@ toc: true
34
34
  regenerate: false
35
35
  permalink: /pages/public/skeleton/simple/
36
36
 
37
- resources: [ animate, clipboard, lightbox, rouge ]
37
+ resources: [ animate, lightbox, rouge ]
38
38
  resource_options:
39
39
  - toccer:
40
40
  collapseDepth: 3
@@ -31,7 +31,7 @@ image:
31
31
  regenerate: false
32
32
  permalink: /pages/public/features/general_features/
33
33
 
34
- resources: [ animate, clipboard, comments, rouge, lightbox, iconify ]
34
+ resources: [ animate, comments, rouge, lightbox, iconify ]
35
35
  resource_options:
36
36
  - toccer:
37
37
  collapseDepth: 3
@@ -33,7 +33,7 @@ regenerate: false
33
33
  permalink: /pages/public/features/template_features/
34
34
 
35
35
  resources: [
36
- animate, clipboard, comments, rouge,
36
+ animate, comments, rouge,
37
37
  lightbox, carousel,
38
38
  masterslider, lightgallery, gallery,
39
39
  videojs, vimeoplayer
@@ -30,7 +30,7 @@ regenerate: false
30
30
  permalink: /pages/public/learn/roundtrip/asciidoc_extensions/
31
31
 
32
32
  resources: [
33
- animate, clipboard, lightbox, lightgallery,
33
+ animate, lightbox, lightgallery,
34
34
  iconify, gallery, rouge, videojs
35
35
  ]
36
36
  resource_options:
@@ -28,7 +28,7 @@ image:
28
28
  regenerate: false
29
29
  permalink: /pages/public/learn/roundtrip/themes/
30
30
 
31
- resources: [ animate, rouge, clipboard ]
31
+ resources: [ animate, rouge ]
32
32
  resource_options:
33
33
  - attic:
34
34
  slides:
@@ -27,7 +27,7 @@ image:
27
27
  regenerate: true
28
28
  permalink: /pages/public/learn/roundtrip/rouge/
29
29
 
30
- resources: [ animate, clipboard, rouge ]
30
+ resources: [ animate, rouge ]
31
31
  resource_options:
32
32
  - attic:
33
33
  slides:
@@ -31,7 +31,7 @@ image:
31
31
  regenerate: false
32
32
  permalink: /pages/public/learn/roundtrip/quicksearch/
33
33
 
34
- resources: [ animate, clipboard, lightbox, rouge ]
34
+ resources: [ animate, lightbox, rouge ]
35
35
  resource_options:
36
36
  - attic:
37
37
  slides:
@@ -29,7 +29,7 @@ tts: false
29
29
  regenerate: false
30
30
  permalink: /pages/public/learn/roundtrip/modals/
31
31
 
32
- resources: [ animate, clipboard, rouge ]
32
+ resources: [ animate, rouge ]
33
33
  resource_options:
34
34
  - attic:
35
35
  slides:
@@ -31,7 +31,7 @@ regenerate: false
31
31
  permalink: /pages/public/learn/roundtrip/present_images/
32
32
 
33
33
  resources: [
34
- animate, clipboard, carousel,
34
+ animate, carousel,
35
35
  gallery, lightbox, lightgallery,
36
36
  masterslider, masonry, rouge, slick
37
37
  ]
@@ -25,8 +25,8 @@ image:
25
25
  width: 1920
26
26
  height: 1280
27
27
 
28
- regenerate: false
29
28
  personalization: true
29
+ regenerate: false
30
30
  permalink: /pages/public/learn/roundtrip/present_videos/
31
31
 
32
32
  resources: [
@@ -27,7 +27,7 @@ tts: false
27
27
  regenerate: false
28
28
  permalink: /pages/public/learn/roundtrip/responsive_tables/
29
29
 
30
- resources: [ animate, clipboard, rouge ]
30
+ resources: [ animate, rouge ]
31
31
  resource_options:
32
32
  - attic:
33
33
  slides:
@@ -27,7 +27,7 @@ image:
27
27
  regenerate: false
28
28
  permalink: /pages/public/learn/roundtrip/typography/
29
29
 
30
- resources: [ animate, clipboard, rouge ]
30
+ resources: [ animate, rouge ]
31
31
  resource_options:
32
32
  - attic:
33
33
  opacity: 0.3
@@ -30,7 +30,7 @@ exclude_from_search: true
30
30
  regenerate: false
31
31
  permalink: /pages/public/legal/en/copyright/
32
32
 
33
- resources: [ animate, clipboard, rouge ]
33
+ resources: [ animate, rouge ]
34
34
  resource_options:
35
35
  - attic:
36
36
  slides:
@@ -29,7 +29,7 @@ exclude_from_search: true
29
29
  regenerate: false
30
30
  permalink: /pages/public/legal/en/privacy/
31
31
 
32
- resources: [ animate, clipboard, rouge ]
32
+ resources: [ animate, rouge ]
33
33
  resource_options:
34
34
  - attic:
35
35
  slides:
@@ -29,7 +29,7 @@ exclude_from_search: true
29
29
  regenerate: false
30
30
  permalink: /pages/public/legal/en/comment_policy/
31
31
 
32
- resources: [ animate, clipboard, rouge ]
32
+ resources: [ animate, rouge ]
33
33
  resource_options:
34
34
  - attic:
35
35
  slides:
@@ -31,7 +31,7 @@ regenerate: false
31
31
  permalink: /pages/public/panels/intro_panel/
32
32
 
33
33
  resources: [
34
- animate, clipboard, carousel, lightbox,
34
+ animate, carousel, lightbox,
35
35
  gallery, lightgallery, rouge
36
36
  ]
37
37
 
@@ -29,7 +29,7 @@ exclude_from_search: true
29
29
  regenerate: false
30
30
  permalink: /pages/public/plans/plan_details/
31
31
 
32
- resources: [ animate, clipboard, lightbox, rouge ]
32
+ resources: [ animate, lightbox, rouge ]
33
33
  resource_options:
34
34
  - attic:
35
35
  slides:
@@ -0,0 +1,69 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>iFrame message passing test 3</title>
6
+ <meta name="description" content="iFrame message passing test 3">
7
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
+ <meta name="robots" content="noindex">
9
+ <meta name="robots" content="nofollow">
10
+
11
+ <link rel="stylesheet" href="/assets/themes/j1/core/css/themes/unolight/bootstrap.css">
12
+ <link rel="stylesheet" href="/assets/themes/j1/core/css/vendor.css">
13
+
14
+ <script src="/assets/themes/j1/modules/jquery/js/jquery.js"></script>
15
+ <script src="/assets/themes/j1/modules/popper/js/popper.js"></script>
16
+
17
+ <script src="/assets/themes/j1/modules/iframeResizer/js/resizer.js"></script>
18
+ <script src="/assets/themes/j1/modules/iframeResizer/js/client/iframeResizer.contentWindow.js"></script>
19
+ </head>
20
+
21
+ <body>
22
+
23
+ <a href="my.content.html">Back to page</a>
24
+ <h2>iFrame Hover Example</h2>
25
+ <p>
26
+ Mouse over the code example below.
27
+ </p>
28
+
29
+ <xmp>
30
+ <!-- #code -->
31
+ </xmp>
32
+
33
+ <script>
34
+ var iFrameResizer = {
35
+ heightCalculationMethod: 'lowestElement'
36
+ }
37
+ </script>
38
+
39
+
40
+
41
+ <div id="code">
42
+ <style>
43
+ xmp {
44
+ background-color: #eee;
45
+ padding: 20px;
46
+ display: block;
47
+ }
48
+
49
+ xmp:hover {
50
+ border: #c33 solid 40px;
51
+ }
52
+ </style>
53
+ <script>
54
+ ;(function() {
55
+ $('xmp').hover(function() {
56
+ if ('parentIFrame' in window) {
57
+ // Fix race condition in FireFox with setTimeout
58
+ setTimeout(parentIFrame.size.bind(parentIFrame), 0)
59
+ }
60
+ })
61
+ })()
62
+ </script>
63
+ </div>
64
+
65
+ <script>
66
+ $('xmp').text('<xmp>' + $('#code').html() + '<xmp>')
67
+ </script>
68
+ </body>
69
+ </html>
@@ -0,0 +1,75 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta name="robots" content="noindex">
6
+ <meta name="robots" content="nofollow">
7
+
8
+ <link rel="stylesheet" href="/assets/themes/j1/core/css/themes/unolight/bootstrap.css">
9
+ <link rel="stylesheet" href="/assets/themes/j1/core/css/vendor.css">
10
+
11
+ <script src="/assets/themes/j1/modules/jquery/js/jquery.js"></script>
12
+ <script src="/assets/themes/j1/modules/popper/js/popper.js"></script>
13
+
14
+ <script src="/assets/themes/j1/modules/iframeResizer/js/resizer.js"></script>
15
+ <script src="/assets/themes/j1/modules/iframeResizer/js/client/iframeResizer.contentWindow.js"></script>
16
+ </head>
17
+
18
+ <body>
19
+ <a href="my.content.html">Back to page</a>
20
+ <h2>Nested iFrame</h2>
21
+ <p>
22
+ Resize window or click one of the links in the nested iFrame to watch it
23
+ resize.
24
+ </p>
25
+
26
+ <p id="callback"></p>
27
+
28
+ <div class="mt-4">
29
+ <iframe
30
+ id="nestedIFrame"
31
+ src="frame.content.html"
32
+ width="100%"
33
+ scrolling="no"
34
+ ></iframe>
35
+ </div>
36
+
37
+ <script>
38
+
39
+ var level = document.location.search.replace(/\?/, '') || 0
40
+
41
+ $('iframe')
42
+ .attr('id', 'nestedIFrame' + level)
43
+ .attr('src', 'frame.content.html?' + level)
44
+
45
+ // -----------------------------------------------------------------------
46
+ // If you do want to TEST the code below, use 'log: true' in
47
+ // the following call for exteded log messages.
48
+ //
49
+ // iFrameResize({log:true});
50
+ //
51
+ // Once you have finished yout tresting, set the log option to `false`.
52
+ // -----------------------------------------------------------------------
53
+ //
54
+ iFrameResize({
55
+ log: true, // Enable console logging
56
+ inPageLinks: true,
57
+ onResized: function(messageData) {
58
+ // Callback fn when message is received
59
+ $('p#callback').html (
60
+ '<b>Frame ID:</b> ' +
61
+ messageData.iframe.id +
62
+ '&nbsp;&nbsp; <b>Height:</b> ' +
63
+ messageData.height +
64
+ '&nbsp;&nbsp; <b>Width:</b> ' +
65
+ messageData.width +
66
+ '&nbsp;&nbsp; <b>Event type:</b> ' +
67
+ messageData.type
68
+ )
69
+ }
70
+ });
71
+
72
+ </script>
73
+ </body>
74
+
75
+ </html>
@@ -0,0 +1,57 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>iFrame message passing test 5</title>
6
+ <meta name="description" content="iFrame message passing test 5">
7
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
+ <meta name="robots" content="noindex">
9
+ <meta name="robots" content="nofollow">
10
+
11
+ <link rel="stylesheet" href="/assets/themes/j1/core/css/themes/unolight/bootstrap.css">
12
+ <link rel="stylesheet" href="/assets/themes/j1/core/css/icon-fonts/mdib.css">
13
+ <link rel="stylesheet" href="/assets/themes/j1/core/css/vendor.css">
14
+
15
+ <script src="/assets/themes/j1/adapter/js/j1.js"></script>
16
+ <script src="/assets/themes/j1/modules/jquery/js/jquery.js"></script>
17
+ <script src="/assets/themes/j1/modules/popper/js/popper.js"></script>
18
+
19
+ </head>
20
+
21
+ <body>
22
+
23
+
24
+ <a href="my.content.html">Back to page</a>
25
+ <h2>iFrame TextArea Example</h2>
26
+ <p>
27
+ Resize the textarea element below.
28
+ </p>
29
+
30
+ <p id="callback"></p>
31
+
32
+
33
+
34
+
35
+
36
+ <textarea id="textArea">Resize me</textarea>
37
+
38
+ <!-- script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script -->
39
+ <script src="../js/client/iframeResizer.contentWindow.min.js"></script>
40
+
41
+ <script>
42
+ function store() {
43
+ this.x = this.offsetWidth
44
+ this.y = this.offsetHeight
45
+ }
46
+
47
+ $('textarea')
48
+ .each(store)
49
+ .on('mouseover mouseout', function() {
50
+ if (this.offsetWidth !== this.x || this.offsetHeight !== this.y) {
51
+ if ('parentIFrame' in window) parentIFrame.size()
52
+ store.call(this)
53
+ }
54
+ })
55
+ </script>
56
+ </body>
57
+ </html>
@@ -0,0 +1,112 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <title>iFrame message passing test 1</title>
7
+ <meta name="description" content="iFrame message passing test 1">
8
+ <meta name="viewport" content="width=device-width">
9
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
10
+ <meta name="robots" content="noindex">
11
+ <meta name="robots" content="nofollow">
12
+
13
+ <link rel="stylesheet" href="/assets/themes/j1/core/css/themes/unolight/bootstrap.css">
14
+ <link rel="stylesheet" href="/assets/themes/j1/core/css/vendor.css">
15
+
16
+ <script src="/assets/themes/j1/modules/jquery/js/jquery.js"></script>
17
+ <script src="/assets/themes/j1/modules/popper/js/popper.js"></script>
18
+ <script src="/assets/themes/j1/modules/iframeResizer/js/client/iframeResizer.contentWindow.js"></script>
19
+ </head>
20
+
21
+ <body class="r-text-200 js-toc-content">
22
+
23
+ <p id="callback"></p>
24
+
25
+ <b>iFrame options: </b>
26
+ &nbsp;
27
+ <a id="nested" href="frame.nested.html">Nested</a>
28
+ &nbsp;
29
+ <a href="frame.hover.html">Hover</a>
30
+ &nbsp;
31
+ <a href="frame.textarea.html">TextArea</a>
32
+
33
+ <div class="paragraph mt-3">
34
+
35
+ <p>
36
+ But I must explain to you how all this mistaken idea of denouncing
37
+ pleasure and praising pain was born and I will give you a complete account
38
+ of the system, and expound the actual teachings of the great explorer of
39
+ the truth, the master-builder of human happiness. No one rejects,
40
+ dislikes, or avoids pleasure itself, because it is pleasure, but because
41
+ those who do not know how to pursue pleasure rationally encounter
42
+ consequences that are extremely painful. Nor again is there anyone who
43
+ loves or pursues or desires to obtain pain of itself, because it is pain,
44
+ but because occasionally circumstances occur in which toil and pain can
45
+ procure him some great pleasure. To take a trivial example, which of us
46
+ ever undertakes laborious physical exercise, except to obtain some
47
+ advantage from it? But who has any right to find fault with a man who
48
+ chooses to enjoy a pleasure that has no annoying consequences, or one who
49
+ avoids a pain that produces no resultant pleasure?
50
+ </p>
51
+ <p>
52
+ On the other hand, we denounce with righteous indignation and dislike men
53
+ who are so beguiled and demoralized by the charms of pleasure of the
54
+ moment, so blinded by desire, that they cannot foresee the pain and
55
+ trouble that are bound to ensue; and equal blame belongs to those who fail
56
+ in their duty through weakness of will, which is the same as saying
57
+ through shrinking from toil and pain. These cases are perfectly simple and
58
+ easy to distinguish. In a free hour, when our power of choice is
59
+ untrammelled and when nothing prevents our being able to do what we like
60
+ best, every pleasure is to be welcomed and every pain avoided. But in
61
+ certain circumstances and owing to the claims of duty or the obligations
62
+ of business it will frequently occur that pleasures have to be repudiated
63
+ and annoyances accepted. The wise man therefore always holds in these
64
+ matters to this principle of selection: he rejects pleasures to secure
65
+ other greater pleasures, or else he endures pains to avoid worse pains.
66
+ </p>
67
+ <p>
68
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
69
+ tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
70
+ veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
71
+ commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
72
+ velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
73
+ cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
74
+ est laborum.
75
+ </p>
76
+ <p>
77
+ Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi
78
+ ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit
79
+ in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur
80
+ sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
81
+ mollit anim id est laborum.
82
+ </p>
83
+
84
+ </div>
85
+
86
+
87
+
88
+
89
+
90
+ <script>
91
+ var iFrameResizer = {
92
+ onResized: function(messageData) {
93
+
94
+ $('p#callback').html (
95
+ '<b>Frame ID:</b> ' + messageData.iframe.id +
96
+ ' <b>Height:</b> ' + messageData.height +
97
+ ' <b>Width:</b> ' + messageData.width +
98
+ ' <b>Event type:</b> ' + messageData.type
99
+ );
100
+ },
101
+ onMessage: function(messageData) {
102
+ $('p#callback').html (
103
+ '<b>Frame ID:</b> ' + messageData.iframe.id +
104
+ ' <b>Message:</b> ' + messageData.message
105
+ );
106
+ }
107
+ }
108
+ </script>
109
+
110
+
111
+ </body>
112
+ </html>
@@ -0,0 +1,51 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <link rel="stylesheet" href="/assets/themes/j1/core/css/themes/unolight/bootstrap.css">
6
+ <link rel="stylesheet" href="/assets/themes/j1/core/css/vendor.css">
7
+ </head>
8
+
9
+ <body class="r-text-300">
10
+ <p>
11
+ <b>Source</b>: iframe.content.html
12
+ </p>
13
+
14
+ <h3 style="font-size: 150% !important;">The Extremes of Good and Evil</h3>
15
+ <p class="small notoc text-gray mb-4">Cicero, Paragraph 1.10.32 · Translation by H. Rackham, Issue 1914 - De Finibus</p>
16
+
17
+ <p>
18
+ But I must explain to you how all this mistaken idea of denouncing
19
+ pleasure and praising pain was born and I will give you a complete account
20
+ of the system, and expound the actual teachings of the great explorer of
21
+ the truth, the master-builder of human happiness. No one rejects,
22
+ dislikes, or avoids pleasure itself, because it is pleasure, but because
23
+ those who do not know how to pursue pleasure rationally encounter
24
+ consequences that are extremely painful. Nor again is there anyone who
25
+ loves or pursues or desires to obtain pain of itself, because it is pain,
26
+ but because occasionally circumstances occur in which toil and pain can
27
+ procure him some great pleasure. To take a trivial example, which of us
28
+ ever undertakes laborious physical exercise, except to obtain some
29
+ advantage from it? But who has any right to find fault with a man who
30
+ chooses to enjoy a pleasure that has no annoying consequences, or one who
31
+ avoids a pain that produces no resultant pleasure?
32
+ </p>
33
+ <p>
34
+ On the other hand, we denounce with righteous indignation and dislike men
35
+ who are so beguiled and demoralized by the charms of pleasure of the
36
+ moment, so blinded by desire, that they cannot foresee the pain and
37
+ trouble that are bound to ensue; and equal blame belongs to those who fail
38
+ in their duty through weakness of will, which is the same as saying
39
+ through shrinking from toil and pain. These cases are perfectly simple and
40
+ easy to distinguish. In a free hour, when our power of choice is
41
+ untrammelled and when nothing prevents our being able to do what we like
42
+ best, every pleasure is to be welcomed and every pain avoided. But in
43
+ certain circumstances and owing to the claims of duty or the obligations
44
+ of business it will frequently occur that pleasures have to be repudiated
45
+ and annoyances accepted. The wise man therefore always holds in these
46
+ matters to this principle of selection: he rejects pleasures to secure
47
+ other greater pleasures, or else he endures pains to avoid worse pains.
48
+ </p>
49
+ </body>
50
+
51
+ </html>
@@ -0,0 +1,84 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <link rel="stylesheet" href="/assets/themes/j1/core/css/themes/unolight/bootstrap.css">
6
+ <link rel="stylesheet" href="/assets/themes/j1/core/css/vendor.css">
7
+ <link rel="stylesheet" href="/assets/themes/j1/modules/rouge/css/uno.light/theme.min.css">
8
+ <link rel="stylesheet" href="/assets/themes/j1/core/css/icon-fonts/fontawesome.min.css">
9
+ </head>
10
+
11
+ <body class="r-text-300">
12
+
13
+ <h3 style="font-size: 150% !important;">Setting up DocSearch</h3>
14
+ <p>
15
+ To setup the module <b>DocSeach</b> with your own set of documents,
16
+ your need an account at <b>Documind AI</b> and then train your bot
17
+ with the documents to be searched for your website.
18
+ </p>
19
+
20
+ <div class="admonitionblock tip">
21
+ <table style="background: rgb(250, 250, 250);">
22
+ <tbody>
23
+ <tr>
24
+ <td class="icon">
25
+ <i class="fa icon-tip" title="Tip"></i>
26
+ </td>
27
+ <td class="content">
28
+ <div class="paragraph">
29
+ <p>
30
+ Say goodbye to the hassle of scrolling lengthy documents endlessly
31
+ to find the information your vistors need. Try yourselves
32
+ <a href="https://documind.chat/" target="_blank" rel="noopener">Documind AI</a>
33
+ for <b>free</b>.
34
+ </p>
35
+ </div>
36
+ </td>
37
+ </tr>
38
+ </tbody>
39
+ </table>
40
+ </div>
41
+
42
+ <p>
43
+ An example setup for the <b>iframe</b> is available with the connfiguration
44
+ for the module <b>iFramer</b> at <i>_data/modules/iframer.yml</i>. Modify
45
+ the config data for the Documind iframe as shown below.
46
+ </p>
47
+
48
+ <div class="listingblock mt-4 mb-4">
49
+ <div class="title">Example Setup</div>
50
+ <div class="content">
51
+ <pre class="rouge highlight notranslate"><code data-lang="yaml">
52
+ <span class="c1"># ------------------------------------------------------------------------</span>
53
+ <span class="c1"># Documind iframe</span>
54
+ <span class="c1">#</span>
55
+ <span class="pi">-</span> <span class="na">iframe</span><span class="pi">:</span>
56
+ <span class="na">enabled</span><span class="pi">:</span> <span class="kc">true</span>
57
+
58
+ <span class="na">id</span><span class="pi">:</span> <span class="s">documind</span>
59
+ <span class="na">inject_contentWindowScript</span><span class="pi">:</span> <span class="kc">false</span>
60
+
61
+ <span class="c1"># ------------------------------------------------------------------------</span>
62
+ <span class="c1"># iframe (HTML) attributes</span>
63
+ <span class="c1"># ------------------------------------------------------------------------</span>
64
+ <span class="c1">#</span>
65
+ <span class="na">attributes</span><span class="pi">:</span>
66
+ <span class="na">loading</span><span class="pi">:</span> <span class="s">lazy</span>
67
+ <span class="na">src</span><span class="pi">:</span> <span class="s">&lt;your-bot-source-link&gt;</span>
68
+ <span class="na">title</span><span class="pi">:</span> <span class="s2">"</span><span class="s">"</span>
69
+ <span class="na">allowtransparency</span><span class="pi">:</span> <span class="kc">true</span>
70
+ <span class="na">style</span><span class="pi">:</span> <span class="s2">"</span><span class="s">background:</span><span class="nv"> </span><span class="s">#FAFAFA;"</span>
71
+ <span class="na">height</span><span class="pi">:</span> <span class="m">600</span>
72
+ <span class="na">width</span><span class="pi">:</span> <span class="s">100%</span>
73
+
74
+ <span class="c1"># ------------------------------------------------------------------------</span>
75
+ <span class="c1"># iFramer (module) options</span>
76
+ <span class="c1"># ------------------------------------------------------------------------</span>
77
+ <span class="na">options</span><span class="pi">:</span>
78
+ <span class="na">checkOrigin</span><span class="pi">:</span> <span class="kc">false</span></code>
79
+ </pre>
80
+ </div>
81
+ </div>
82
+
83
+ </body>
84
+ </html>
@@ -30,7 +30,7 @@ comments: false
30
30
  regenerate: false
31
31
  permalink: /pages/public/tools/previewer/current_theme/
32
32
 
33
- resources: [ animate, bmd, clipboard, rouge ]
33
+ resources: [ animate, bmd, rouge ]
34
34
  resource_options:
35
35
  - toccer:
36
36
  collapseDepth: 4