Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

arko

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arko

Automagically make embeds responsive. (vanilla JS)

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

arko

Super simple and ultra lightweight vanilla JS library that detects embeds like iframe/embed or object tags and makes them responsive.

Usage

  • Include the CSS file in your build-script
  • Install and use arko:
npm install arko
var options = {};

var arko = require('arko');
new arko(options);

Available Options

{
    selectors: [
        'embed',
        'object',
        'iframe'
    ],
    classNames: {
        active: 'is-responsive',
        container: 'embed-container'
    }
}

License

MIT

Keywords

vanilla

FAQs

Package last updated on 24 Nov 2016

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