1.0.5 • Published 7 months ago

skeets.iframe-dom v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

skeets.iframe-resize

append / prepend / replace an iFrame with content into the DOM.

Install

npm install skeets.iframe-dom

(requires jQuery)

Usage

if (typeof iFrameDom === "undefined" || typeof iFrameDom.append !== "function") {
  console.log("iFrameDom function not found. Install 'skeets.iframe-dom' through npm.");
}
else {
  iFrameDom.append($targetElement, content, options);
}

methods allowed: prepend, replace, append, include

Options

NameFunction
styleApply custom styles to the iFrame (accepts object with CSS property => value)
viewOriginalOptionProvide button that, when pressed, removes custom styles (true / false)
resizeOptionsOptions passed to iFrameResize (see skeets.iframe-resize)

License

ISC

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago