Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gardr-plugin-ext-resize

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gardr-plugin-ext-resize

Gardr plugin for resizing content of an iframe

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Gardr Resize Plugin (Ext)

Gardr plugin to resize contents of an iframe (images, flash objects, other iframes) if they're exceeding iframe's size.

Requires options plugin bundled in host.

Install

npm install gardr-plugin-ext-resize --save

Bundle

In your ext bundle file:

    var gardrExt = require('gardr-ext');
    var resize = require('gardr-plugin-ext-resize');

    gardrExt.plugin(resize);

    module.exports = gardrExt;

Options (host)

resizeInnerHorizontal - boolean, enables horizontal resizing of iframe content

resizeInnerVertical - boolean, enables horizontal resizing of iframe content

resizeInnerCheckDelay - number, amount of miliseconds after which resizing will be performed (default: instant)

Example

var gardr = gardrHost(...);
gardr.queue('ad', {
    resizeInnerHorizontal: true,
    resizeInnerVertical: true,
    ...
});

Keywords

FAQs

Package last updated on 10 Nov 2014

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc