[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#768400: ITP: libjs-iframe-resizer -- Javascript library that enables the automatic resizing of iframes



Package: wnpp
Severity: wishlist
Owner: Maxime Chatelle <xakz@rxsoft.eu>

* Package name    : libjs-iframe-resizer
  Version         : 2.6.2
  Upstream Author : David J. Bradshaw <dave@bradshaw.net>
* URL             : https://github.com/davidjbradshaw/iframe-resizer
* License         : MIT
  Programming Lang: Javascript

  Description     : Javascript library that enables the automatic resizing of iframes

This library enables the automatic resizing of the height and width of
both same and cross domain iFrames to fit the contained content. It uses
postMessage to pass messages between the host page and the iFrame and
when available MutationObserver to detect DOM changes, with a fallback
to setInterval for IE8-10.
.
The code also detects browser events that can cause the content to
resize; provides functions to allow the iFrame to set a custom size and
close itself. Plus it supports having multiple iFrames on the host-page
and additionally provides for the sending of simple messages from the
iFrame to the parent page.
.
For security, by default the host-page automatically checks that the
origin of incoming messages are from the domain of the page listed in
the src property of the iFrame.

Greetings,
xakz
--
Maxime Chatelle (xakz)
gpg: 5111 3F15 362E 13C6 CCDE  03BE BFBA B6E3 24AE 0C5B

Attachment: pgpu8md_HglZO.pgp
Description: PGP signature


Reply to: