iframe-adjuster 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -23,8 +23,15 @@ This plugin will ALWAYS be free and open-source. It can be used for commercial p
23
23
  <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/iframe-adjuster/dist/iframe-adjuster.min.js"></script>
24
24
  ```
25
25
  <br><br>
26
+ 2. Add `data-iframe-adjust` as an attribute on the target iFrames
26
27
 
27
- 2. Call `iFrameAdjuster()` on the page once, anytime after the Document is ready.
28
+ ```html
29
+ <iframe data-iframe-adjust src="iframe.html" frameborder="0"></iframe>
30
+ ```
31
+
32
+
33
+ <br><br>
34
+ 3. Call `iFrameAdjuster()` on the page once, anytime after the Document is ready.
28
35
 
29
36
  ```javascript
30
37
  document.addEventListener("DOMContentLoaded", () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iframe-adjuster",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "license": "WTFPL",
5
5
  "description": "Adjusts the height of iFrame elements when the contained content changes size",
6
6
  "keywords": [