j1-template 2024.0.0 → 2024.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) 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/mmenu.js +1 -1
  15. data/assets/themes/j1/adapter/js/navigator.js +4 -0
  16. data/assets/themes/j1/adapter/js/rouge.js +1 -1
  17. data/assets/themes/j1/adapter/js/speak2me.js +2 -2
  18. data/assets/themes/j1/adapter/js/translator.js +5 -0
  19. data/assets/themes/j1/core/css/animate.css +4 -4
  20. data/assets/themes/j1/core/css/animate.min.css +1 -1
  21. data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +1 -1
  22. data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
  23. data/assets/themes/j1/core/js/template.js +19 -7
  24. data/assets/themes/j1/core/js/template.min.js +1 -1
  25. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  26. data/assets/themes/j1/modules/iframeResizer/LICENSE +1 -1
  27. data/assets/themes/j1/modules/iframeResizer/README.md +105 -0
  28. data/assets/themes/j1/modules/iframeResizer/{examples → example}/frame.absolute.html +12 -11
  29. data/assets/themes/j1/modules/iframeResizer/{examples → example}/frame.content.html +22 -28
  30. data/assets/themes/j1/modules/iframeResizer/{examples → example}/frame.hover.html +9 -8
  31. data/assets/themes/j1/modules/iframeResizer/{examples → example}/frame.nested.html +12 -12
  32. data/assets/themes/j1/modules/iframeResizer/{examples → example}/frame.textarea.html +6 -8
  33. data/assets/themes/j1/modules/iframeResizer/{examples → example}/frame.tolerance.html +11 -11
  34. data/assets/themes/j1/modules/iframeResizer/{examples → example}/index.html +43 -19
  35. data/assets/themes/j1/modules/iframeResizer/{examples → example}/two.html +8 -11
  36. data/assets/themes/j1/modules/iframeResizer/js/client/iframeResizer.contentWindow.js +84 -68
  37. data/assets/themes/j1/modules/iframeResizer/js/client/iframeResizer.contentWindow.min.js +10 -8
  38. data/assets/themes/j1/modules/iframeResizer/js/resizer.js +149 -72
  39. data/assets/themes/j1/modules/iframeResizer/js/resizer.min.js +11 -7
  40. data/lib/j1/version.rb +1 -1
  41. data/lib/starter_web/README.md +5 -5
  42. data/lib/starter_web/_config.yml +1 -1
  43. data/lib/starter_web/_data/modules/{framer.yml → _docsearch.yml} +20 -9
  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/docsearch.yml +45 -0
  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 +2 -1
  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 +35 -25
  100. data/assets/themes/j1/adapter/js/framer.js +0 -237
  101. data/assets/themes/j1/modules/chatgpt/css/theme/uno.css +0 -92
  102. data/assets/themes/j1/modules/chatgpt/css/theme/uno.min.css +0 -16
  103. data/lib/starter_web/_data/_defaults/private.yml +0 -129
  104. data/lib/starter_web/_data/modules/nbinteract.yml +0 -476
  105. data/lib/starter_web/utilsrv/_defaults/package.json +0 -57
  106. data/lib/starter_web/utilsrv/package.json +0 -57
  107. data/lib/starter_web/utilsrv/server.js +0 -775
  108. /data/assets/themes/j1/modules/{chat → chatbot}/css/theme/uno.css +0 -0
  109. /data/assets/themes/j1/modules/{chat → chatbot}/css/theme/uno.min.css +0 -0
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2013-2019 David J. Bradshaw
3
+ Copyright (c) 2013-2023 David J. Bradshaw
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1,105 @@
1
+ <img src="https://raw.githubusercontent.com/davidjbradshaw/iframe-resizer/master/img/logo-no-background.svg" alt="iFrame Resizer" style="margin-bottom: -20">
2
+
3
+ [![NPM version](https://badge.fury.io/js/iframe-resizer.svg)](http://badge.fury.io/js/iframe-resizer)
4
+ [![NPM Downloads](https://img.shields.io/npm/dm/iframe-resizer.svg)](https://npm-stat.com/charts.html?package=iframe-resizer&from=2014-12-31)
5
+ [![](https://data.jsdelivr.com/v1/package/npm/iframe-resizer/badge?style=rounded)](https://www.jsdelivr.com/package/npm/iframe-resizer)
6
+ [![Coverage Status](https://coveralls.io/repos/davidjbradshaw/iframe-resizer/badge.svg?branch=master&service=github)](https://coveralls.io/github/davidjbradshaw/iframe-resizer)
7
+
8
+ This library enables the automatic resizing of the height and width of both same and cross domain iFrames to fit their contained content. It provides a range of features to address the most common issues with using iFrames, these include:
9
+
10
+ - Height and width resizing of the iFrame to content size.
11
+ - Works with multiple and nested iFrames.
12
+ - Domain authentication for cross domain iFrames.
13
+ - Provides a range of page size calculation methods to support complex CSS layouts.
14
+ - Detects changes to the DOM that can cause the page to resize using [MutationObserver](https://developer.mozilla.org/en/docs/Web/API/MutationObserver).
15
+ - Detects events that can cause the page to resize (Window Resize, CSS Animation and Transition, Orientation Change and Mouse events).
16
+ - Simplified messaging between iFrame and host page via [postMessage](https://developer.mozilla.org/en-US/docs/Web/API/window.postMessage).
17
+ - Fixes in page links in iFrame and supports links between the iFrame and parent page.
18
+ - Provides custom sizing and scrolling methods.
19
+ - Exposes parent position and viewport size to the iFrame.
20
+ - Provides `onMouseEnter` and `onMouseLeave` events for the iFrame.
21
+ - Works with [ViewerJS](http://viewerjs.org/) to support PDF and ODF documents.
22
+
23
+ ## Donate
24
+
25
+ Iframe-resizer is the result of many 100s of hours of work, if you would like to join others in showing support for the continued development of this project, then please feel free to buy me a coffee.
26
+
27
+ <a href="https://www.buymeacoffee.com/davidjbradshaw " target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
28
+
29
+ ## Getting Started
30
+
31
+ ### Install
32
+
33
+ This package can be installed via NPM (`npm install iframe-resizer --save`).
34
+
35
+ ### Usage
36
+
37
+ The package contains two minified JavaScript files in the [js](https://github.com/davidjbradshaw/iframe-resizer/tree/master/js) folder. The first ([iframeResizer.min.js](https://raw.githubusercontent.com/davidjbradshaw/iframe-resizer/master/js/iframeResizer.min.js)) is for the page hosting the iFrames. It can be called with via JavaScript:
38
+
39
+ ```js
40
+ const iframes = iFrameResize( [{options}], [css selector] || [iframe] );
41
+ ```
42
+
43
+ The second file ([iframeResizer.contentWindow.min.js](https://raw.github.com/davidjbradshaw/iframe-resizer/master/js/iframeResizer.contentWindow.min.js)) needs placing in the page(s) contained within your iFrame. <i>This file is designed to be a guest on someone else's system, so has no dependencies and won't do anything until it's activated by a message from the containing page</i>.
44
+
45
+ ### Typical setup
46
+
47
+ The normal configuration is to have the iFrame resize when the browser window changes size or the content of the iFrame changes. To set this up you need to configure one of the dimensions of the iFrame to a percentage and tell the library to only update the other dimension. Normally you would set the width to 100% and have the height scale to fit the content.
48
+
49
+ ```html
50
+ <style>
51
+ iframe {
52
+ width: 1px;
53
+ min-width: 100%;
54
+ }
55
+ </style>
56
+ <script src="/js/iframeResizer.min.js"></script>
57
+ <iframe id="myIframe" src="http://anotherdomain.com/iframe.html"></iframe>
58
+ <script>
59
+ iFrameResize({ log: true }, '#myIframe')
60
+ </script>
61
+ ```
62
+
63
+ **Note:** Using _min-width_ to set the width of the iFrame, works around an issue in iOS that can prevent the iFrame from sizing correctly.
64
+
65
+ If you have problems, check the [troubleshooting](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/troubleshooting.md) section.
66
+
67
+ ### Example
68
+
69
+ To see this working take a look at this [example](https://davidjbradshaw.github.io/iframe-resizer/example/) and watch the [console](https://developer.mozilla.org/en-US/docs/Tools/Web_Console).
70
+
71
+ ## API Documentation
72
+
73
+ IFrame-Resizer provides an extensive range of options and APIs for both the parent page and the iframed page.
74
+
75
+ - **Parent Page API**
76
+ - [Options](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/parent_page/options.md)
77
+ - [Events](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/parent_page/events.md)
78
+ - [Methods](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/parent_page/methods.md)
79
+ - **IFramed Page API**
80
+ - [Options](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/iframed_page/options.md)
81
+ - [Events](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/iframed_page/events.md)
82
+ - [Methods](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/iframed_page/methods.md)
83
+ - **Use with Libraries and Frameworks**
84
+ - [React](https://github.com/davidjbradshaw/iframe-resizer-react)
85
+ - [Vue](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/use_with/vue.md)
86
+ - [Nuxt](https://github.com/davidjbradshaw/iframe-resizer/issues/831#issuecomment-665760332)
87
+ - [Angular](https://github.com/davidjbradshaw/iframe-resizer/issues/478#issuecomment-347958630)
88
+ - [Ember](https://github.com/alexlafroscia/ember-iframe-resizer-modifier)
89
+ - [jQuery](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/use_with/jquery.md)
90
+ - [Google Apps Script](https://stackoverflow.com/a/65724113/2087070)
91
+ - [Troubleshooting](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/troubleshooting.md)
92
+ - [Upgrade from version 3](https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/upgrade.md)
93
+ - [Version history](https://github.com/davidjbradshaw/iframe-resizer/blob/master/CHANGELOG.md)
94
+
95
+ ## License
96
+
97
+ Copyright &copy; 2013-23 [David J. Bradshaw](https://github.com/davidjbradshaw) -
98
+ Licensed under the [MIT License](LICENSE)
99
+
100
+ <!--
101
+ [![NPM](https://nodei.co/npm/iframe-resizer.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/iframe-resizer/)
102
+
103
+ [![Build Status](https://travis-ci.org/davidjbradshaw/iframe-resizer.svg?branch=master)](https://travis-ci.org/davidjbradshaw/iframe-resizer)
104
+ [![Known Vulnerabilities](https://snyk.io/test/github/davidjbradshaw/iframe-resizer/badge.svg)](https://snyk.io/test/github/davidjbradshaw/iframe-resizer)
105
+ -->
@@ -1,13 +1,11 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
- <meta charset="utf-8">
5
- <title>iFrame message passing test 1</title>
6
- <meta name="description" content="iFrame message passing test 1">
7
- <meta name="viewport" content="width=device-width">
8
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
9
- <meta name="robots" content="noindex">
10
- <meta name="robots" content="nofollow">
4
+ <meta charset="utf-8" />
5
+ <title>iFrame message passing test</title>
6
+ <meta name="description" content="iFrame message passing test" />
7
+ <meta name="viewport" content="width=device-width" />
8
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
11
9
  <style>
12
10
  a.back {
13
11
  float: right;
@@ -66,7 +64,7 @@
66
64
  prevents the normal height calculation, which is based on the body tag
67
65
  from returning the correct height. To work around this you can set the
68
66
  <b>heightCalculationMethod</b> option to use one of the other page height
69
- propeties.
67
+ properties.
70
68
  </p>
71
69
  <p>
72
70
  Use the dropdown to change the sizing method of the page, select the
@@ -92,7 +90,7 @@
92
90
  <p>
93
91
  <i
94
92
  >This option should be used sparingly, as the alternate methods can be
95
- less acurate at working out the correct page size, can cause screen
93
+ less accurate at working out the correct page size, can cause screen
96
94
  flicker and can sometimes fail to reduce in size when the frame content
97
95
  changes in browsers that do not support mutationObservers (See
98
96
  <a href="http://caniuse.com/mutationobserver">caniuse.com</a> for
@@ -111,9 +109,12 @@
111
109
  >
112
110
  </div>
113
111
 
114
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
115
- <script src="../js/client/iframeResizer.contentWindow.js"></script>
112
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
116
113
 
114
+ <script
115
+ type="text/javascript"
116
+ src="../js/iframeResizer.contentWindow.min.js"
117
+ ></script>
117
118
  <script>
118
119
  $('select').on('change', function() {
119
120
  if ('parentIFrame' in window) {
@@ -1,12 +1,11 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
- <meta charset="utf-8">
5
- <title>iFrame message passing test 2</title>
6
- <meta name="description" content="iFrame message passing test 2">
7
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
- <meta name="robots" content="noindex">
9
- <meta name="robots" content="nofollow">
4
+ <meta charset="utf-8" />
5
+ <title>iFrame message passing test</title>
6
+ <meta name="description" content="iFrame message passing test" />
7
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
8
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
10
9
  <style>
11
10
  *,
12
11
  *:before,
@@ -26,8 +25,8 @@
26
25
  &nbsp;
27
26
  <a
28
27
  href="#"
29
- onclick="if ('parentIFrame' in window) window.parentIFrame.size(450);return false;"
30
- >Size(450)</a
28
+ onclick="if ('parentIFrame' in window) window.parentIFrame.size(250);return false;"
29
+ >Size(250)</a
31
30
  >
32
31
  &nbsp;
33
32
  <a
@@ -61,6 +60,16 @@
61
60
  onclick="if ('parentIFrame' in window) window.parentIFrame.close();return false;"
62
61
  >Close</a
63
62
  >
63
+
64
+ <p>
65
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
66
+ tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
67
+ veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
68
+ commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
69
+ velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
70
+ cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
71
+ est laborum.
72
+ </p>
64
73
  <p>
65
74
  But I must explain to you how all this mistaken idea of denouncing
66
75
  pleasure and praising pain was born and I will give you a complete account
@@ -93,25 +102,6 @@
93
102
  matters to this principle of selection: he rejects pleasures to secure
94
103
  other greater pleasures, or else he endures pains to avoid worse pains.
95
104
  </p>
96
- <p>
97
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
98
- tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
99
- veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
100
- commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
101
- velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
102
- cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
103
- est laborum.
104
- </p>
105
- <p>
106
- Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi
107
- ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit
108
- in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur
109
- sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
110
- mollit anim id est laborum.
111
- </p>
112
-
113
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
114
- <script src="../js/client/iframeResizer.contentWindow.js"></script>
115
105
 
116
106
  <script>
117
107
  var level = document.location.search.replace(/\?/, '') || 0
@@ -126,6 +116,10 @@
126
116
  }
127
117
  </script>
128
118
 
129
-
119
+ <script
120
+ type="text/javascript"
121
+ src="../js/iframeResizer.contentWindow.min.js"
122
+ defer
123
+ ></script>
130
124
  </body>
131
125
  </html>
@@ -1,12 +1,10 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
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">
4
+ <meta charset="utf-8" />
5
+ <title>iFrame message passing test</title>
6
+ <meta name="description" content="iFrame message passing test" />
7
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
10
8
  <style>
11
9
  a {
12
10
  float: right;
@@ -33,8 +31,11 @@
33
31
  }
34
32
  </script>
35
33
 
36
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
37
- <script src="../js/client/iframeResizer.contentWindow.js"></script>
34
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
35
+ <script
36
+ type="text/javascript"
37
+ src="../js/iframeResizer.contentWindow.min.js"
38
+ ></script>
38
39
 
39
40
  <div id="code">
40
41
  <style>
@@ -1,13 +1,11 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
- <meta charset="utf-8">
5
- <title>iFrame message passing test 4</title>
6
- <meta name="description" content="iFrame message passing test 4">
7
- <meta name="viewport" content="width=device-width">
8
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
9
- <meta name="robots" content="noindex">
10
- <meta name="robots" content="nofollow">
4
+ <meta charset="utf-8" />
5
+ <title>iFrame message passing test</title>
6
+ <meta name="description" content="iFrame message passing test" />
7
+ <meta name="viewport" content="width=device-width" />
8
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
11
9
  <style>
12
10
  *,
13
11
  *:before,
@@ -45,11 +43,10 @@
45
43
  </div>
46
44
  <p id="callback"></p>
47
45
 
48
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
49
- <script src="../js/resizer.js"></script>
50
- <script src="../js/client/iframeResizer.contentWindow.js"></script>
46
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
51
47
 
52
- <script>
48
+ <script type="text/javascript" src="../js/iframeResizer.min.js"></script>
49
+ <script type="text/javascript">
53
50
  var level = document.location.search.replace(/\?/, '') || 0
54
51
 
55
52
  $('iframe')
@@ -95,6 +92,9 @@
95
92
  }
96
93
  })
97
94
  </script>
98
-
95
+ <script
96
+ type="text/javascript"
97
+ src="../js/iframeResizer.contentWindow.min.js"
98
+ ></script>
99
99
  </body>
100
100
  </html>
@@ -1,12 +1,10 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
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">
4
+ <meta charset="utf-8" />
5
+ <title>iFrame message passing test</title>
6
+ <meta name="description" content="iFrame message passing test" />
7
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
10
8
  <style>
11
9
  a {
12
10
  float: right;
@@ -25,8 +23,8 @@
25
23
 
26
24
  <textarea id="textArea">Resize me</textarea>
27
25
 
28
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
29
- <script src="../js/client/iframeResizer.contentWindow.min.js"></script>
26
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
27
+ <script src="../js/iframeResizer.contentWindow.min.js"></script>
30
28
 
31
29
  <script>
32
30
  function store() {
@@ -1,11 +1,9 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
- <meta charset="utf-8">
5
- <title>iFrame message passing test 6</title>
6
- <meta name="description" content="iFrame message passing test 6">
7
- <meta name="robots" content="noindex">
8
- <meta name="robots" content="nofollow">
4
+ <meta charset="utf-8" />
5
+ <title>iFrame message passing test</title>
6
+ <meta name="description" content="iFrame message passing test" />
9
7
  <style>
10
8
  a.back {
11
9
  float: right;
@@ -50,12 +48,12 @@
50
48
  >
51
49
  </p>
52
50
  <p>
53
- This page has an absolute position elemnt that take it out side the normal
51
+ This page has an absolute position element that take it out side the normal
54
52
  document body, which is marked with a red border on this page. This
55
53
  prevents the normal height calculation, which is based on the body tag
56
54
  from returning the correct height. To work around this you can set the
57
55
  <b>heightCalculationMethod</b> option to use one of the other page height
58
- propeties.
56
+ properties.
59
57
  </p>
60
58
  <p>
61
59
  Use the dropdown to change the sizing method of the page, select the
@@ -80,7 +78,7 @@
80
78
  <p>
81
79
  <i
82
80
  >This option should be used sparingly, as the alternate methods can be
83
- less acurate at working out the correct page size, can cause screen
81
+ less accurate at working out the correct page size, can cause screen
84
82
  flicker and can sometimes fail to reduce in size when the frame content
85
83
  changes in browsers that do not support mutationObservers (See
86
84
  <a href="http://caniuse.com/mutationobserver">caniuse.com</a> for
@@ -98,9 +96,11 @@
98
96
  >
99
97
  </div>
100
98
 
101
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
102
- <script src="../js/client/iframeResizer.contentWindow.js"></script>
103
-
99
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
100
+ <script
101
+ type="text/javascript"
102
+ src="../js/iframeResizer.contentWindow.min.js"
103
+ ></script>
104
104
  <script>
105
105
  $('select').on('change', function() {
106
106
  if ('parentIFrame' in window) {
@@ -1,13 +1,11 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
- <meta charset="utf-8">
4
+ <meta charset="utf-8" />
5
5
  <title>iFrame message passing test</title>
6
- <meta name="description" content="iFrame message passing test">
7
- <meta name="viewport" content="width=device-width">
8
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
9
- <meta name="robots" content="noindex">
10
- <meta name="robots" content="nofollow">
6
+ <meta name="description" content="iFrame message passing test" />
7
+ <meta name="viewport" content="width=device-width" />
8
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
11
9
  </head>
12
10
 
13
11
  <body>
@@ -32,10 +30,9 @@
32
30
 
33
31
  <![endif]-->
34
32
 
35
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
36
- <script src="../js/client/iframeResizer.contentWindow.js"></script>
37
-
38
- <script>
33
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
34
+ <script type="text/javascript" src="../js/iframeResizer.min.js"></script>
35
+ <script type="text/javascript">
39
36
  /*
40
37
  * If you do not understand what the code below does, then please just use the
41
38
  * following call in your own code.
@@ -45,12 +42,14 @@
45
42
  * Once you have it working, set the log option to false.
46
43
  */
47
44
 
45
+ var callbackDisplay = 'p#callback'
46
+
48
47
  iFrameResize({
49
48
  log: true, // Enable console logging
50
49
  inPageLinks: true,
51
- onResized: function(messageData) {
50
+ onResized: function (messageData) {
52
51
  // Callback fn when resize is received
53
- $('p#callback').html(
52
+ $(callbackDisplay).html(
54
53
  '<b>Frame ID:</b> ' +
55
54
  messageData.iframe.id +
56
55
  ' <b>Height:</b> ' +
@@ -61,9 +60,35 @@
61
60
  messageData.type
62
61
  )
63
62
  },
64
- onMessage: function(messageData) {
63
+ onMouseEnter: function (messageData) {
64
+ // Callback fn when mouse enters iframe
65
+ $(callbackDisplay).html(
66
+ '<b>Frame ID:</b> ' +
67
+ messageData.iframe.id +
68
+ ' <b>ScreenX:</b> ' +
69
+ messageData.screenX +
70
+ ' <b>ScreenY:</b> ' +
71
+ messageData.screenY +
72
+ ' <b>Event type:</b> ' +
73
+ messageData.type
74
+ )
75
+ },
76
+ onMouseLeave: function (messageData) {
77
+ // Callback fn when mouse enters iframe
78
+ $(callbackDisplay).html(
79
+ '<b>Frame ID:</b> ' +
80
+ messageData.iframe.id +
81
+ ' <b>ScreenX:</b> ' +
82
+ messageData.screenX +
83
+ ' <b>ScreenY:</b> ' +
84
+ messageData.screenY +
85
+ ' <b>Event type:</b> ' +
86
+ messageData.type
87
+ )
88
+ },
89
+ onMessage: function (messageData) {
65
90
  // Callback fn when message is received
66
- $('p#callback').html(
91
+ $(callbackDisplay).html(
67
92
  '<b>Frame ID:</b> ' +
68
93
  messageData.iframe.id +
69
94
  ' <b>Message:</b> ' +
@@ -74,12 +99,11 @@
74
99
  .getElementsByTagName('iframe')[0]
75
100
  .iFrameResizer.sendMessage('Hello back from parent page')
76
101
  },
77
- onClosed: function(id) {
102
+ onClosed: function (id) {
78
103
  // Callback fn when iFrame is closed
79
- $('p#callback').html(
80
- '<b>IFrame (</b>' + id + '<b>) removed from page.</b>'
81
- )
82
- }
104
+ $(callbackDisplay).html('<b>IFrame (</b>' + id + '<b>) removed from page.</b>')
105
+ },
106
+
83
107
  })
84
108
  </script>
85
109
  </body>
@@ -1,13 +1,11 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
- <meta charset="utf-8">
5
- <title>iFrame message passing test 7</title>
6
- <meta name="description" content="iFrame message passing test 7">
7
- <meta name="viewport" content="width=device-width">
8
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
9
- <meta name="robots" content="noindex">
10
- <meta name="robots" content="nofollow">
4
+ <meta charset="utf-8" />
5
+ <title>iFrame message passing test</title>
6
+ <meta name="description" content="iFrame message passing test" />
7
+ <meta name="viewport" content="width=device-width" />
8
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
11
9
  </head>
12
10
 
13
11
  <body>
@@ -39,10 +37,9 @@
39
37
 
40
38
  <![endif]-->
41
39
 
42
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
43
- <script src="../js/client/iframeResizer.contentWindow.js"></script>
44
-
45
- <script>
40
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
41
+ <script type="text/javascript" src="../src/iframeResizer.js"></script>
42
+ <script type="text/javascript">
46
43
  /*
47
44
  * If you do not understand what the code below does, then please just use the
48
45
  * following call in your own code.