{"_id":"overlay.js","_rev":"9-4c4502228708369da716d69091fddae2","name":"overlay.js","description":"Slim fast overlay, no dependencies — just the basics","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"overlay.js","version":"1.0.0","description":"Slim fast modern overlay, no dependencies — just the essentials","main":"dist/overlay.js","repository":{"type":"git","url":"https://github.com/bcorreia/overlay.js.git"},"author":{"name":"Bruno Correia","email":"mail@bcorreia.com","url":"http://bcorreia.com"},"license":"MIT","devDependencies":{"grunt":"^0.4.5","grunt-banner":"^0.4.0","grunt-contrib-copy":"^0.8.0","grunt-contrib-uglify":"^0.9.1"},"gitHead":"c861b9e50c583cd1d035994969fd6eeff89f377c","bugs":{"url":"https://github.com/bcorreia/overlay.js/issues"},"homepage":"https://github.com/bcorreia/overlay.js","_id":"overlay.js@1.0.0","scripts":{},"_shasum":"6d7676e5a3789efc3275af050e183344b1792973","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"bcorreia","email":"mail@bcorreia.com"},"maintainers":[{"name":"bcorreia","email":"mail@bcorreia.com"}],"dist":{"shasum":"6d7676e5a3789efc3275af050e183344b1792973","tarball":"https://registry.npmjs.org/overlay.js/-/overlay.js-1.0.0.tgz","integrity":"sha512-kC+NOLta+k2r6x8CuWwzZr33HhnzMdNdsLIWwniH8Upns3ovFVfOsxjAaZaQ2tNUyS5yTEI0bEGs2NOfUVEfnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKVGhsk2KM6C1hbF57J8eBCzHis10g75d009ex8Of6aAIhAJwypPXDlU8l+yZCgtNevWsY2Hffm9jwRUNeEpPXYM1J"}]}},"1.0.1":{"name":"overlay.js","version":"1.0.1","description":"Slim fast overlay, no dependencies — just the basics","main":"dist/overlay.js","repository":{"type":"git","url":"https://github.com/bcorreia/overlay.js.git"},"author":{"name":"Bruno Correia","email":"mail@bcorreia.com","url":"http://bcorreia.com"},"license":"MIT","devDependencies":{"grunt":"^0.4.5","grunt-banner":"^0.4.0","grunt-contrib-copy":"^0.8.0","grunt-contrib-uglify":"^0.9.1"},"gitHead":"d3e180d2f65f0af108c28cfcf779e0b5995883ba","bugs":{"url":"https://github.com/bcorreia/overlay.js/issues"},"homepage":"https://github.com/bcorreia/overlay.js","_id":"overlay.js@1.0.1","scripts":{},"_shasum":"8736ff3f9e6bfdb0d3aa749aa3df3c085fc3937d","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"bcorreia","email":"mail@bcorreia.com"},"maintainers":[{"name":"bcorreia","email":"mail@bcorreia.com"}],"dist":{"shasum":"8736ff3f9e6bfdb0d3aa749aa3df3c085fc3937d","tarball":"https://registry.npmjs.org/overlay.js/-/overlay.js-1.0.1.tgz","integrity":"sha512-gUz47UN9Zt57xAOZpnM4rsOAcxBOfyC+lY7CPebr0fmGC8n4i3qQS+fgORd4JN+dYnORyNdYWQb6pkeXnMXAeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNIRkpTs7jZCAMFoN8iKSEvqYK+x7Z24NiMIzFk1KeHwIhALQk65bBVNqL+CH8knUaosDXt9isUrSpK1Ust5rew6x5"}]}},"1.0.2":{"name":"overlay.js","version":"1.0.2","description":"Slim fast overlay, no dependencies — just the basics","main":"dist/overlay.js","repository":{"type":"git","url":"git+https://github.com/bcorreia/overlay.js.git"},"author":{"name":"Bruno Correia","email":"mail@bcorreia.com","url":"http://bcorreia.com"},"license":"MIT","devDependencies":{"babel-cli":"^6.11.4","babel-preset-es2015":"^6.13.2","babelify":"^7.3.0","grunt":"^0.4.5","grunt-banner":"^0.4.0","grunt-contrib-copy":"^0.8.0","grunt-contrib-uglify":"^0.9.1"},"scripts":{"watchify":"watchify src/js/app.js -d -t babelify -o src/js/app.pkg.js -v","babel":"babel src -d lib"},"transform":[["babelify",{"comments":false}]],"gitHead":"98e9824df411de22ed0c8cd48ec8f3590fff6b5c","bugs":{"url":"https://github.com/bcorreia/overlay.js/issues"},"homepage":"https://github.com/bcorreia/overlay.js#readme","_id":"overlay.js@1.0.2","_shasum":"3883079973b649dc677c0e7ffb16a40aab675b53","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.3.1","_npmUser":{"name":"bcorreia","email":"mail@bcorreia.com"},"maintainers":[{"name":"bcorreia","email":"mail@bcorreia.com"}],"dist":{"shasum":"3883079973b649dc677c0e7ffb16a40aab675b53","tarball":"https://registry.npmjs.org/overlay.js/-/overlay.js-1.0.2.tgz","integrity":"sha512-J6iXCfNoGGPa+qGcu1fm+uWFGA6MeAWgjGN6ZnDmRfmIYuTS+NOTtznv6L6OKc1g0q7RIZisYiiAwH0b5v3KQA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICak/C9lHoT2VhF/PzStDQ38kv0LNX+ewyybF86kBmDnAiB1jXNKyhvs5Hjv1+11vwW1MqF6rsTxZR9ZEAsrasbxdg=="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/overlay.js-1.0.2.tgz_1471376949638_0.8181123519316316"}},"1.0.3":{"name":"overlay.js","version":"1.0.3","description":"Slim fast overlay, no dependencies — just the basics","main":"dist/overlay.js","repository":{"type":"git","url":"git+https://github.com/bcorreia/overlay.js.git"},"author":{"name":"Bruno Correia","email":"mail@bcorreia.com","url":"http://bcorreia.com"},"license":"MIT","devDependencies":{"babel-cli":"^6.11.4","babel-preset-es2015":"^6.13.2","babelify":"^7.3.0","grunt":"^0.4.5","grunt-banner":"^0.4.0","grunt-contrib-copy":"^0.8.0","grunt-contrib-uglify":"^0.9.1"},"scripts":{"watchify":"watchify src/js/app.js -d -t babelify -o src/js/app.pkg.js -v","babel":"babel src -d lib"},"transform":[["babelify",{"comments":false}]],"gitHead":"e46a86b36edd18e36d76e5242a8d91ba4690c2a1","bugs":{"url":"https://github.com/bcorreia/overlay.js/issues"},"homepage":"https://github.com/bcorreia/overlay.js#readme","_id":"overlay.js@1.0.3","_shasum":"3b924a11279e81aa2919d8ede95b5000b56a9a0b","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.3.1","_npmUser":{"name":"bcorreia","email":"mail@bcorreia.com"},"maintainers":[{"name":"bcorreia","email":"mail@bcorreia.com"}],"dist":{"shasum":"3b924a11279e81aa2919d8ede95b5000b56a9a0b","tarball":"https://registry.npmjs.org/overlay.js/-/overlay.js-1.0.3.tgz","integrity":"sha512-pNh2FkjkFF47CKBKQP6/TY9Cu6OCns61yXBJgZQ4i5xUHobx2iM4Nr8ohciQI2fqthcL2MyfguW//b4ZEJBIcQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFy//yx7jgGCWFwxbSojHGaa7GlPHZfqwVw5KrtxVr5/AiEArfxNMuxJj9wYnRpSc7YMUBwRLhj7tr/0pIed4XIVEqg="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/overlay.js-1.0.3.tgz_1471386646920_0.8175990565214306"}},"1.1.0":{"name":"overlay.js","version":"1.1.0","description":"Slim fast overlay, no dependencies — just the basics","main":"dist/overlay.js","repository":{"type":"git","url":"git+https://github.com/bcorreia/overlay.js.git"},"author":{"name":"Bruno Correia","email":"mail@bcorreia.com","url":"http://bcorreia.com"},"license":"MIT","devDependencies":{"babel-cli":"^6.11.4","babel-preset-es2015":"^6.13.2","babelify":"^7.3.0","grunt":"^0.4.5","grunt-banner":"^0.4.0","grunt-contrib-copy":"^0.8.0","grunt-contrib-uglify":"^0.9.1"},"scripts":{"watchify":"watchify src/js/app.js -d -t babelify -o src/js/app.bundle.js -v","babel":"babel src -d lib"},"transform":[["babelify",{"comments":false}]],"gitHead":"5f97073a1c45f70908c1b55a6ce5f2bedb59407d","bugs":{"url":"https://github.com/bcorreia/overlay.js/issues"},"homepage":"https://github.com/bcorreia/overlay.js#readme","_id":"overlay.js@1.1.0","_shasum":"0c3f3a42ac5f36f650db7392e47710384d1710ea","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"bcorreia","email":"mail@bcorreia.com"},"maintainers":[{"name":"bcorreia","email":"mail@bcorreia.com"}],"dist":{"shasum":"0c3f3a42ac5f36f650db7392e47710384d1710ea","tarball":"https://registry.npmjs.org/overlay.js/-/overlay.js-1.1.0.tgz","integrity":"sha512-fqXbXzS3Iib8nJLSmy8GLeoFiNN5CpHBBWKHWt0rZ1uhkjLmKVLE+CssYROn7j4ncqX3Eh+fJOEFhuURkCLMsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCd4qXvFCTUQ7rlCdxOQjAV6qRDyJjVqUebcm1VLyB2JQIhAJcytMPaSUkQv4m+rDYtQZ/qtt7Y/2ynP+UjwEO2XJ+Z"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/overlay.js-1.1.0.tgz_1482302869068_0.374602064024657"}},"1.2.0":{"name":"overlay.js","version":"1.2.0","description":"Slim fast overlay, no dependencies — just the basics","main":"dist/overlay.js","repository":{"type":"git","url":"git+https://github.com/bcorreia/overlay.js.git"},"author":{"name":"Bruno Correia","email":"mail@bcorreia.com","url":"http://bcorreia.com"},"license":"MIT","devDependencies":{"babel-cli":"^6.11.4","babel-preset-es2015":"^6.24.1","babelify":"^7.3.0","grunt":"^0.4.5","grunt-banner":"^0.4.0","grunt-contrib-copy":"^0.8.0","grunt-contrib-uglify":"^0.9.1"},"scripts":{"watchify":"watchify src/js/app.js -d -t babelify -o src/js/app.bundle.js -v","babel":"babel src -d lib"},"transform":[["babelify",{"comments":false}]],"gitHead":"06ee81fd7307778a1412319db4df171e2407122d","bugs":{"url":"https://github.com/bcorreia/overlay.js/issues"},"homepage":"https://github.com/bcorreia/overlay.js#readme","_id":"overlay.js@1.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"bcorreia","email":"mail@bcorreia.com"},"maintainers":[{"name":"bcorreia","email":"mail@bcorreia.com"}],"dist":{"integrity":"sha512-xBIOt+SjiopkSsQBFRnf51xzbZ71fA201K2xuIXCpEZnrcCU0dInMpCAfWUetqzr2qrqyH6WHcMuOLcHSD+Xxg==","shasum":"7ffee9fda4a8336cacc2af2e536584c2a0ca2785","tarball":"https://registry.npmjs.org/overlay.js/-/overlay.js-1.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID5jHSZwHIKPQaS3flb+Z9zRWbaXpU0WoOGdeWt9YGuHAiEAohQ9HzKKQb4kvrOXZyWnAqJRD6cAQ8QV/tSNLUPyZIs="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/overlay.js-1.2.0.tgz_1511381204044_0.25414354843087494"}}},"readme":"# overlay.js\n![Bower version](https://img.shields.io/bower/v/overlay.js.svg?style=flat)\n[![npm version](https://img.shields.io/npm/v/overlay.js.svg?style=flat)](https://www.npmjs.com/package/overlay.js)\n[![Build Status](https://travis-ci.org/bcorreia/overlay.js.svg?branch=master)](https://travis-ci.org/bcorreia/overlay.js)\n\nSlim fast overlay, no dependencies — just the basics<br />\n[**Demo**](http://bcorreia.com/projects/overlay.js/src/demo.html)\n\n---\n## Getting Started\nYou may install overlay.js using package managers, or download project [archive](https://github.com/bcorreia/overlay.js/archive/master.zip).<br />\n```bash\nbower install overlay.js\nnpm install overlay.js\n\n# overlay.min.js           minified version of overlay.js\n```\n\n## Usage\n```javascript\n// CommonJS (optional)\nvar Overlay = require('./overlay.js');\n\n// AMD (optional)\nrequire(['overlay.js'], function(Overlay) {\n    // …\n});\n\nelement.addEventListener('click', function() {\n    var layer = new Overlay({\n        html: '',  // html string or node type\n        close: {\n            default: true, // default close button (boolean)\n            onstage: true, // close on click event (anywhere on `.stage` element)\n            text: \"Close\" // innerHTML\n        },\n        onAppend: function() {},\n        onRemove: function() {}\n    });\n});\n```\n\n### Callbacks\n```javascript\n // called right after `html` has been appended to document\nonAppend: function() {}\n\n// called right after `html` has been remove from document\nonRemove: function() {}\n```\n\n### Public Method\n```javascript\n // remove overlay from the DOM\n.remove();\n```\n\n### CSS\n```css\n/* required */\n.overlay             { background: rgba(0, 0, 0, 0.75); width: 100vw; height: 100vh; position:fixed; top:0; animation: fade-in .5s; }\n.overlay .-inner     { width: 100vw; height: 100vh; display: flex; display: -webkit-flex; align-items: center; -webkit-align-items: center; justify-content:center; -webkit-justify-content:center; -ms-flex-pack:justify; }\n.overlay .-close     { position: absolute; top: 32px; right: 36px; padding: 8px 18px; border: 1px solid #FFF; }\n\n/* overlay fade-in animation */\n@-webkit-keyframes fade-in {\n    from   { opacity: 0; }\n    to     { opacity: 1; }\n}\n@keyframes fade-in {\n    from   { opacity: 0; }\n    to     { opacity: 1; }\n}\n```\n\n---\n## License\nThis software is free to use under the [MIT license](https://github.com/bcorreia/overlay.js/blob/master/license.md).","maintainers":[{"name":"bcorreia","email":"mail@bcorreia.com"}],"time":{"modified":"2022-06-23T04:52:04.192Z","created":"2015-07-02T05:14:05.841Z","1.0.0":"2015-07-02T05:14:05.841Z","1.0.1":"2015-07-07T00:23:47.301Z","1.0.2":"2016-08-16T19:49:13.433Z","1.0.3":"2016-08-16T22:30:47.187Z","1.1.0":"2016-12-21T06:47:49.280Z","1.2.0":"2017-11-22T20:06:44.934Z"},"homepage":"https://github.com/bcorreia/overlay.js#readme","repository":{"type":"git","url":"git+https://github.com/bcorreia/overlay.js.git"},"author":{"name":"Bruno Correia","email":"mail@bcorreia.com","url":"http://bcorreia.com"},"bugs":{"url":"https://github.com/bcorreia/overlay.js/issues"},"license":"MIT","readmeFilename":"README.md"}