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.
- package/README.md +8 -1
- 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
|
-
|
|
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", () => {
|