New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

jquery.iframe

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery.iframe

jQuery plugin that creates inline iframes to isolate certain blocks of HTML.

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
9
50%
Maintainers
1
Weekly downloads
 
Created
Source

jquery.iframe

jQuery plugin that creates inline iframes to isolate certain blocks of HTML.

Usage

npm install jquery.iframe --save-dev
// Way 1: create an iframe and append it to the body.
let iframe = $.iframe('body', { /* options... */ });

// Way 2: wrap .my-div into an iframe.
$('.my-div').iframify(, { /* options... */ });

Options

There are the default options:

{
  // jQuery method used to append the iframe element.
  insertMethod: 'appendTo',
  // List of CSS urls that will be loaded into the iframe.
  css: [],
  // Height sync between the iframe element and its contents.
  sync: {
    // Attribute that will be updated in pixels with the content's height. Possible values are height, minHeight and maxHeight.
    attribute: 'height',
    // Interval time in milliseconds that will be used to poll the content's height.
    interval: 10,
  },
}

Caveats

  • Don't move or remove the iframe from the DOM unless you wan't it to stop working.

FAQs

Package last updated on 16 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts