skeets.iframe-dom

1.0.5 • Public • Published

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

Name Function
style Apply custom styles to the iFrame (accepts object with CSS property => value)
viewOriginalOption Provide button that, when pressed, removes custom styles (true / false)
resizeOptions Options passed to iFrameResize (see skeets.iframe-resize)

License

ISC

Readme

Keywords

Package Sidebar

Install

npm i skeets.iframe-dom

Weekly Downloads

2

Version

1.0.5

License

ISC

Unpacked Size

5.3 kB

Total Files

3

Last publish

Collaborators

  • skeets