1.0.2-alpha.9 • Published 12 months ago
load-iframe v1.0.2-alpha.9
load-iframe
Load an iframe by appending an iframe tag to the DOM.
Installation
$ npm install load-iframe
$ component install segmentio/load-iframe
Example
var load = require('load-iframe');
load('//www.google.com');
Loads Google in the iframe.
var load = require('load-iframe');
load({
http : 'http://www.google.com',
https : 'https://ssl.google.com'
});
Loads in the right URL depending on the protocol.
API
loadIframe(src || options, callback)
Load the given iframe either by passing a src
string, or
an options
object:
{
src: '//example.com', // same as `src` string
http: 'http://example.com', // `src` to load if the protocol is `http:`
https: 'https://ssl.example.com' // `src` to load if the protocol is `https:`
}
Publish
Update the Package.json version to version you want to publish and then as soon as your changed merged to master and your head/latest commit message starts with "Publish" , it will publish the mentioned version
License
MIT
1.0.2-alpha.8
12 months ago
1.0.2-alpha.9
12 months ago
1.0.2-alpha.7
12 months ago
1.0.2-alpha.6
1 year ago
1.0.2-alpha.4
1 year ago
1.0.2-alpha.5
1 year ago
1.0.2-alpha.3
1 year ago
1.0.2-alpha.0
1 year ago
1.0.2-alpha.1
1 year ago
1.0.0
9 years ago