🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

grayscale-body-js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grayscale-body-js

Automatically turn the site to grayscale

1.0.0
latest
Source
npm
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

grayscaleBody.js

Bower Version Npm Version Release Version Downloads

Automatically turn the site to grayscale (may be used for some purpose)

grayscaleBody.js - screenshot 1

Install

1: npm

1.1 Install npm
1.2 Install package: `npm install --save grayscale-body-js`

2: bower

2.1 Install npm
2.2 Install bower: `npm install -g bower`
2.3 Install package: `bower install --save grayscale-body-js`

Getting Started for dev

  • Install Node.js
  • Set path (e.g. cd C:\xampp\htdocs\jojoee.com\grayscale-body-js)
  • Install global: npm install -g gulp bower browser-sync
  • Install dependencies: bower install && npm install
  • Start: gulp to build and gulp watch to dev

Usage

// init
var option = {
  switcherPosition: 'bottom-right', // string: top-left, top-right, bottom-left, bottom-right
  isEnableSwitcher: true,           // boolean
  isDebug: true,                    // boolean
};

var gsb = new GrayscaleBody(option);

// event
gsb.on('onSwitchersClicked', function() {
  console.log('onSwitchersClicked - callback 1');
});

Feature

Note

  • 2 spaces for indent

TODO

  • Support IE edge
  • DocBlockr
  • Grayscale opacity customizer
  • Unit test
  • Separate utilities function into another files
  • Add callback event when switcher button's triggered
  • Add .npmignore
  • Implement ci.testling.com
  • Add E2E testing script by Nightwatch.js
  • Localization
  • Update demo page

Thank you

Keywords

grayscale

FAQs

Package last updated on 22 Oct 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