{"_id":"overhang","_rev":"11-6c4cfcf9086845d98b5687ca51dfb7ea","name":"overhang","description":"A JQuery plugin for notifications, prompts and confirmations.","dist-tags":{"latest":"1.0.8"},"versions":{"1.0.0":{"name":"overhang","version":"1.0.0","description":"A JQuery plugin for notifications, prompts and confirmations.","repository":{"type":"git","url":"git+https://github.com/paulkr/overhang.js.git"},"keywords":["notifications","prompts","confirmations","alerts"],"author":{"name":"Paul Krishnamurthy","email":"paul@paulkr.com"},"license":"MIT","bugs":{"url":"https://github.com/paulkr/overhang.js/issues"},"homepage":"https://github.com/paulkr/overhang.js#readme","_id":"overhang@1.0.0","scripts":{},"_shasum":"352e7726173730ca15a9920ba4689e6bb5a7713f","_from":".","_npmVersion":"3.10.3","_nodeVersion":"5.5.0","_npmUser":{"name":"paulkr","email":"paul@paulkr.com"},"dist":{"shasum":"352e7726173730ca15a9920ba4689e6bb5a7713f","tarball":"https://registry.npmjs.org/overhang/-/overhang-1.0.0.tgz","integrity":"sha512-3FecX67iPP/v236+rOZ3rsntL56uRudVNM+T7fsSbtkFchXgStfcM7+S3hY77mgBlnuAOHLtyrioLA0gkMO+1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkBoHq1sdSjSinv26PCJIkAaqZprUa4n/6Fg5fWtEqaQIhAPWUnucTtuCVVIbaKyuZU5++cQRUU5Xaesxl8XmfFPTo"}]},"maintainers":[{"name":"paulkr","email":"paul@paulkr.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/overhang-1.0.0.tgz_1470674324342_0.8908134663943201"},"directories":{}},"1.0.1":{"name":"overhang","version":"1.0.1","description":"A JQuery plugin for notifications, prompts and confirmations.","repository":{"type":"git","url":"git+https://github.com/paulkr/overhang.js.git"},"keywords":["notifications","prompts","confirmations","alerts"],"author":{"name":"Paul Krishnamurthy","email":"paul@paulkr.com"},"license":"MIT","bugs":{"url":"https://github.com/paulkr/overhang.js/issues"},"homepage":"https://github.com/paulkr/overhang.js#readme","_id":"overhang@1.0.1","scripts":{},"_shasum":"410b586f317a06bd8ad1bac7fbb063de0f937feb","_from":".","_npmVersion":"3.10.3","_nodeVersion":"5.5.0","_npmUser":{"name":"paulkr","email":"paul@paulkr.com"},"dist":{"shasum":"410b586f317a06bd8ad1bac7fbb063de0f937feb","tarball":"https://registry.npmjs.org/overhang/-/overhang-1.0.1.tgz","integrity":"sha512-Z5RvUaRjuqOPH4RMz7BTbXUL/fUyS3gEgbb8oxQFUUKQ9HFFdiMr4e9KGg9ZLtN/iiUhzgaQwJLmvkkUu8mLPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdqdJIvXnR978l6A3Kqo1mVS6yE2tSzbVvI/VV8R108AIhAMaYttXWrueBKut/FJQaFStr89z+oBp+U0IJyT0UaAS1"}]},"maintainers":[{"name":"paulkr","email":"paul@paulkr.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/overhang-1.0.1.tgz_1472143246150_0.6326462370343506"},"directories":{}},"1.0.2":{"name":"overhang","version":"1.0.2","description":"A JQuery plugin for notifications, prompts and confirmations.","repository":{"type":"git","url":"git+https://github.com/paulkr/overhang.js.git"},"keywords":["notifications","prompts","confirmations","alerts"],"author":{"name":"Paul Krishnamurthy","email":"paul@paulkr.com"},"license":"MIT","bugs":{"url":"https://github.com/paulkr/overhang.js/issues"},"homepage":"https://github.com/paulkr/overhang.js#readme","gitHead":"6280865b11a099ec58dd506383e6ffe9b02a00b0","_id":"overhang@1.0.2","scripts":{},"_shasum":"3f3463f0514a02ac44998d125f10df3814921dca","_from":".","_npmVersion":"3.10.3","_nodeVersion":"5.5.0","_npmUser":{"name":"paulkr","email":"paul@paulkr.com"},"dist":{"shasum":"3f3463f0514a02ac44998d125f10df3814921dca","tarball":"https://registry.npmjs.org/overhang/-/overhang-1.0.2.tgz","integrity":"sha512-78lzX9HEdO0dDugz7RSdYXJFmQxf3h2ELnio0Gal39lqehwyt4cpY2Ghy162u8TPNTcqkSbQqfo4lktIpq9txg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE399ypv+9ClbZEJHAw8Y+8viuQux2XKiGYHr1EYS9gCAiEA1tRxAul0cQwVRsW1UcfNTx7NkmHaA7nLcCeCpfrs85k="}]},"maintainers":[{"name":"paulkr","email":"paul@paulkr.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/overhang-1.0.2.tgz_1472314139129_0.8737147497013211"},"directories":{}},"1.0.4":{"name":"overhang","version":"1.0.4","description":"A JQuery plugin for notifications, prompts and confirmations.","repository":{"type":"git","url":"git+https://github.com/paulkr/overhang.js.git"},"keywords":["notifications","prompts","confirmations","alerts"],"author":{"name":"Paul Krishnamurthy","email":"paul@paulkr.com"},"license":"MIT","bugs":{"url":"https://github.com/paulkr/overhang.js/issues"},"homepage":"https://github.com/paulkr/overhang.js#readme","gitHead":"168ccdb1bf0152ff392d7dddcc9900d4bc68df14","_id":"overhang@1.0.4","_npmVersion":"5.4.2","_nodeVersion":"7.2.1","_npmUser":{"name":"paulkr","email":"paul@paulkr.com"},"dist":{"integrity":"sha512-NOtbMbzNjCqEznptSeD4onRqmPVftOfxuVDNP5fDoyYQBHnzqKegnY1IN7RLNJmAjgMuCaXchG8LCkLCmRNZeA==","shasum":"0df2fdc07508434698d661a84d9b017526f8928b","tarball":"https://registry.npmjs.org/overhang/-/overhang-1.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJwfXyoQelTsKr8K5QlbnGAa41HQjNPzmaTvJcuzW8mQIhAK4HH41eJBKaLSymDsCVOD1Uj3ihB7qM9SJ3cjLtyUOl"}]},"maintainers":[{"name":"paulkr","email":"paul@paulkr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/overhang-1.0.4.tgz_1507264202546_0.7136277034878731"},"directories":{}},"1.0.5":{"name":"overhang","version":"1.0.5","description":"A JQuery plugin for notifications, prompts and confirmations.","repository":{"type":"git","url":"git+https://github.com/paulkr/overhang.js.git"},"keywords":["notifications","prompts","confirmations","alerts"],"author":{"name":"Paul Krishnamurthy","email":"paul@paulkr.com"},"license":"MIT","bugs":{"url":"https://github.com/paulkr/overhang.js/issues"},"homepage":"https://github.com/paulkr/overhang.js#readme","gitHead":"97ad104aca7ce24b5de3239df0c00cd946ffe06e","_id":"overhang@1.0.5","_npmVersion":"5.4.2","_nodeVersion":"7.2.1","_npmUser":{"name":"paulkr","email":"paul@paulkr.com"},"dist":{"integrity":"sha512-0znL723l2J0oWCGis72dzoGIWA/ThHuT0uLXFhIdwKnomw2IMgQcfn5DlQDiUvWzR0Btn0BW/LDweYnGlnm4OA==","shasum":"c695fab3b02f752d6472bb5b5945ccf02ea5b827","tarball":"https://registry.npmjs.org/overhang/-/overhang-1.0.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHkMfNvXZjCXyeAQidTB8GGbb7Om70IoQsgxtTWeC/NwIgfi7U2s0Bg4tTKXdY+wsx8BGiE7DJsryesMcFCNo5apo="}]},"maintainers":[{"name":"paulkr","email":"paul@paulkr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/overhang-1.0.5.tgz_1507405245453_0.15745242685079575"},"directories":{}},"1.0.6":{"name":"overhang","version":"1.0.6","description":"A JQuery plugin for notifications, prompts and confirmations.","repository":{"type":"git","url":"git+https://github.com/paulkr/overhang.js.git"},"keywords":["notifications","prompts","confirmations","alerts"],"author":{"name":"Paul Krishnamurthy","email":"paul@paulkr.com"},"license":"MIT","bugs":{"url":"https://github.com/paulkr/overhang.js/issues"},"homepage":"https://github.com/paulkr/overhang.js#readme","gitHead":"bdc5d4a9ec7414d32f55d05154747f5254fc9852","_id":"overhang@1.0.6","_nodeVersion":"10.14.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-O6Gt71GTVXsWnK0eEzr646hO7pGe0UeiJzZIQdF0iBgzWAercC4oHRdxKei/ln2sWtLkPyPUfUqTrfAL8SRGoA==","shasum":"6fbf021102387e1783ef422d81cd57b6cd4f61df","tarball":"https://registry.npmjs.org/overhang/-/overhang-1.0.6.tgz","fileCount":16,"unpackedSize":638286,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeseuGCRA9TVsSAnZWagAA23UP/2Bjrb9X+d24Elh35R1o\nSYXb40Yeppj8ndOys2zeM2mOHtUfpz89s20bSv+zLGGUNY+QdOubdnpG42yP\ngLHKajXsnQs88rsYzdQoi5SNV+p9ADCYmMDbhXNyF8gsj4ZDdlJ6C8fqDdJ9\nv/6D/s3jSYS7CyzRvQdsOu1jSYoJBlDHoaeCblFqikvHGiHVUtsRrFrSpGJR\nAaos0OY+Yq/JHb5ZANy8eOcCv+KPliCMvSG9+AIHrqHOac7bL//hyM89NKBY\nhJ+KtiQJdfl16+6ifvHQkIndw5XvYZjlZzIWIBBd1sY/zgU7fumkATMrAnRz\nUXSmA3tsClgPgQLzLm/IHY//dBQ6cN7n8RfU7P1Z9019FEIKdeT9Cdmm4ax7\nysHkrxBZ3PqVI/tHftJPLqO8570lhYW1bw71X74JpUiNUgEdLpJuvgjRI2kC\nQEmGCYbG0dQcHO6DZ58QGCG8EkwvMqMbekSNOri/2CNbgUa9MAs2Jhitfz5L\neaNuLN7aDN6JGabguj8y/6NOC21q9gsbxrQ+uytpvI4Sr+9tbdCQwH5SZeW+\nchMoOZBb8zu1CHImhdzbZlfDj88mlcmJTTXLZDb+cWjzm+s37o1RJ2cEHnDz\nv9RqP7ArAL6E4O1tP1P67rhxhp/4MkXPR/eLowTs9zxUjWBDVH+wl8c+r929\nwia8\r\n=uL8n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5SC9909fO83l1Sz39+7EiARiNQtN+qSdi/ffaIV9I2gIhAPBAvjGTo/2rTFzBwCFLNcfvvmbBzo1L6ix0P7T3Ogkd"}]},"maintainers":[{"name":"paulkr","email":"paul@paulkr.com"}],"_npmUser":{"name":"paulkr","email":"paul@paulkr.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/overhang_1.0.6_1588718470155_0.47164530902643276"},"_hasShrinkwrap":false},"1.0.7":{"name":"overhang","version":"1.0.7","description":"A JQuery plugin for notifications, prompts and confirmations.","repository":{"type":"git","url":"git+https://github.com/paulkr/overhang.js.git"},"keywords":["notifications","prompts","confirmations","alerts"],"author":{"name":"Paul Krishnamurthy","email":"paul@paulkr.com"},"license":"MIT","bugs":{"url":"https://github.com/paulkr/overhang.js/issues"},"homepage":"https://github.com/paulkr/overhang.js#readme","gitHead":"8ed2365569370a96badd16d44180c6dcf2680b8f","_id":"overhang@1.0.7","_nodeVersion":"10.14.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-6j0SJ28AJk0B0ro0QmVzpZc1o5RLwNHJSCDyZVn4HHxHl/Jnn4PCDrQaNnhnodLCv0wOi1wTUt/mUOEun2ZUEQ==","shasum":"e6c01782680cf468c660a885b54dff94fac995c7","tarball":"https://registry.npmjs.org/overhang/-/overhang-1.0.7.tgz","fileCount":17,"unpackedSize":638734,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuf7SCRA9TVsSAnZWagAAKb8P/ihdebyiEpN6DGiFDzOh\nA4B6KyjQQ2ma3IMHwwLWdP2pp36AroPBenRWeaE259rPvGoZoazOJEbede7F\n2xnz9+1NeNdJhWP95rw/TI2z/yHvIhE/s7SulW1oTNCXLMoF4ktxntArQ4X9\nlsXAArQ2W6RU9Who2LeWQ7QQC8GA8URMn0MKP4hbDG1rWEH+P0NGLMgmDrIk\nX/rhX+A5Udx/LjbsBwPBVLDN0LvoL/Le4xJiMjynSrSfnKbPMlX/Gjw5Cajl\naJoVRM4yt1fe5xGDzRgC7IZwNlJL2pNX4dm3/HvVGpZljYjGNZEjkzoo/nvV\nJ5XUV+vyx20FoKQHZ8Yx9360zb/ZlU7GSnrym6Kfy7AO7hBGsM9Z/YWkAVmj\nCLydWYkH+EnZnTAzj9GRlECFco7BkjBLZ1co0BsuNFgPQ2WVbMwPCzOEITMC\n9vfrM3vLPlJQAu3gL+gzQyBcUcAgbqWP0ECcxMzfeBXDlC/l156bKBh8hoQY\nBMTbuFE1VkM9ZzWnYZ7Olavx0OJMVxG0Muv/u0MqYe0HirGey3RwxUtyOW7q\nERBQQBWMGUGMZfMyPxUhNmg5PwT+lkEaw3KDATh1MA9mQYahNQ9Qy1kFUXMl\nRvOdgmaOGK/jIC8qLpPIdyP6ZBJU67TjkT3YOFWJYruPr0bWVHu9YJYVyK8q\nfzXl\r\n=VJ91\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+T877yv8AZosyDVqhu7o5zVbw2DULht6lFxYLCzYl5gIhAMcfWCEprccAis6niPiL/3q3g7jN0m6Et5iCMZ54L//6"}]},"maintainers":[{"name":"paulkr","email":"paul@paulkr.com"}],"_npmUser":{"name":"paulkr","email":"paul@paulkr.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/overhang_1.0.7_1589247698099_0.8840332590951996"},"_hasShrinkwrap":false},"1.0.8":{"name":"overhang","version":"1.0.8","description":"A JQuery plugin for notifications, prompts and confirmations.","repository":{"type":"git","url":"git+https://github.com/paulkr/overhang.js.git"},"keywords":["notifications","prompts","confirmations","alerts"],"author":{"name":"Paul Krishnamurthy","email":"paul@paulkr.com"},"license":"MIT","bugs":{"url":"https://github.com/paulkr/overhang.js/issues"},"homepage":"https://github.com/paulkr/overhang.js#readme","gitHead":"737bb0324bd3317de579a84c9707201e01536ed7","_id":"overhang@1.0.8","_nodeVersion":"10.14.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-SCm4/ZXB5q0ajOEjnlZEamDXMJLHTUmTgJTFo8x5RMqt1JTMsM7W7XK8LBO0ZSyybFaxsstFjPwJGwV7GLts1g==","shasum":"5dd87dfd07fb9b8b3c4183f94bcfb0b15506bdbd","tarball":"https://registry.npmjs.org/overhang/-/overhang-1.0.8.tgz","fileCount":17,"unpackedSize":639235,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeugY2CRA9TVsSAnZWagAAargP+wW/PzAJ+pZ56fpbqex+\nFhlUgBhp7jPvD7F20R1NnpqrISbocL+VywHLwZMQVqmjIex2bY4nLxBzEuC+\nZY9JLkOlzALhmnaxc6y6lC9QpqtItoqw9Yntood/JDiXIh8Tuywm02AN0Ram\n+ycBsCWpFPdhSYp56DFDCVt0UxhbAjQHHgdVOk9k/+HrLAq2/sxZDAyRkg3M\nlabhVJwVdJi81Ro3wbIcTVjo2wiMbDkH5ERENxWDOGuZcQbeqBh4CjFf0CRa\nA9E3MqtXRF8NEUzKY3hhmown54V3wBCgnP9wZ8lBnkDTk4yZAdTWo/MnRSLG\nqeEkKhVYIyhQGW5nyJORd+Jpd1Tg3o7OjdGrbUBi5wLo2+hcBxy775Tldq94\nMHjp3pxkT4YXQRSnWD4JIj/T4fr4DGVGEMbT/GMAANmHYEk7xyABkgy6uXKw\nT5advDNsArgAJcH39YMxEsY6HtaNPGl5yC7Y5wmsWIWbz8XT0X9tHV2FPPET\naHqefZuBfp4u6QxFf+O65TFXAdjg8gjoIUtvf9htuGni585KZ19z7yz+dM+M\ntO9xE//NEUwYTxxIawN5Phu7eSF/qs/PDQIVpI8gtPA8Jq9tMs5XQH7XUe8L\nSG4bQPYFlWo2VxMlHl47MMOgnY4a4drc4OdmJ2q0hYbi3kAsF4whb4vxgTuc\nCANU\r\n=N9Vb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC64+SNjccGdkE8J92C0P0jSSpmi3b9obY5OquzQr173QIhAIv5dz4qYvxHdjlK7SfrbNxGufi647mmnDDEyiBZQXdZ"}]},"maintainers":[{"name":"paulkr","email":"paul@paulkr.com"}],"_npmUser":{"name":"paulkr","email":"paul@paulkr.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/overhang_1.0.8_1589249590023_0.512244541760156"},"_hasShrinkwrap":false}},"readme":"<p align=\"center\">\n  <a href=\"http://paulkr.github.io/overhang.js/\">\n    <img\n    alt=\"overhang\" src=\"http://paulkr.github.io/overhang.js/logo.png\" width=\"400\">\n  </a>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://badge.fury.io/js/overhang\"><img src=\"https://badge.fury.io/js/overhang.svg\" alt=\"npm version\" height=\"18\"></a>\n  <a href=\"https://github.com/paulkr/overhang.js/blob/master/LICENSE\">\n    <img src=\"https://img.shields.io/github/license/paulkr/overhang.js.svg\" />\n  </a>\n</p>\n\n<p align=\"center\">\n  A simple jQuery plugin to display sleek, instant notifications, confirmations or prompts inside a given element.\n</p>\n\n<p align=\"center\">\n  <a href=\"https://paulkr.github.io/overhang.js\">See it in action!</a>\n</p>\n\nInstallation\n------------\n\nYou can install overhang through npm:\n\n```bash\n$ npm install overhang\n```\n\nAlternatively, you can download the files in the `dist/` folder manually.\n\nUsage\n-----\n\nInclude a reference to the latest version of jQuery and jQuery UI. — The specific [jQuery UI components](https://jqueryui.com/download) required are: \"**effect.js**\" *(Effects Core)*\n\n```html\n<script type=\"text/javascript\" src=\"//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js\"></script>\n<script type=\"text/javascript\" src=\"//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js\"></script>\n```\n\nInclude references to the Javascript and CSS files.\n\n```html\n<link rel=\"stylesheet\" type=\"text/css\" href=\"dist/overhang.min.css\" />\n<script type=\"text/javascript\" src=\"dist/overhang.min.js\"></script>\n```\n\nConfiguration Parameters\n------------------------\n\n`overhang.js` has 3 primary features - notifications, prompts and confirmations. Most of the options are customizable for all of these features.\n\n### Defaults\n\n##### `type`\n\nThis is the type of the notification that you want to display.\nThe preset types are `success`, `error`, `warn`, `info`, `prompt` and `confirm`.\n\nIf you would like to use a custom theme, leave this parameter blank and follow the rules for setting a custom theme.\n\n```javascript\n$(\"body\").overhang({\n  custom: true, // Set custom to true\n  primary: \"#34495E\", // Your custom primary color\n  accent: \"#F4B350\" // Your custom accent color\n});\n```\n\n`primary` - The background color of the alert.\n\n`accent` - The bottom border color.\n\nIf you want to display either a prompt or confirmation alert, set the type to `prompt` or `confirm`, respectively. Prompts and confirmations both have preset themes, but you can customize them by using the `custom` option.\n\n##### `customClasses`\n\nAny additional CSS classes to add to the overhang element, separated by spaces. Useful for specifying fonts and further customizations. The default is `\"\"`.\n\n##### `textColor`\n\nThe color of the text. The default is set to white.\n\n##### `message`\n\nThe message to be displayed in your alert.\n\n##### `duration`\n\nThe duration in seconds to show the alert for. The default is `1.5` seconds.\n\n##### `speed`\n\nThe speed to drop and raise the alert in milliseconds. The default is set to `500`.\n\n##### `closeConfirm`\n\nSet this to `true` if you would like the user to have to close the alert rather than it disappearing by itself. The default is set to `false`.\n\n##### `upper`\n\nSet this to `true` if you would like your message in all uppercase letters. The default is set to `false`.\n\n##### `easing`\n\njQuery UI easing option for the drop effect. The default is set to `\"easeOutBounce\"`\n\n##### `html`\n\nThis is a boolean if the `message` argument should be interpreted as HTML. The default value is set to `false`.\n\n##### `overlay`\n\nSet this to `true` if you would like to have an overlay displayed with your alert. The default value is set to `false`. You can also pass in a value to the `overlayColor` argument to specify the color of the overlay. The default is set to black.\n\n```javascript\n$(\"body\").overhang({\n  type: \"confirm\",\n  message: \"Do you want to continue?\",\n  closeConfirm: \"true\",\n  overlay: true,\n  overlayColor: \"#1B1B1B\"\n});\n```\n\n#### Basic Alert Notification Example\n\n```javascript\n// Some error notification\n$(\"body\").overhang({\n  type: \"error\",\n  message: \"You could not be logged in at this time.\",\n  closeConfirm: \"true\",\n  customClasses: \"class1 class2\"\n});\n```\n\n### Prompts\n\nWhen using prompts, all you need to do is set the `type` parameter to `\"prompt\"`.\n\n#### Prompt Example\n\n```javascript\n// Some prompt notification\n$(\"body\").overhang({\n  type: \"prompt\",\n  message: \"What is your name\"\n});\n```\n\n### Confirmations\n\nWhen using confirmations, there are additional options that you can customize.\n\n##### `yesMessage`\n\nThis is the text on the \"true\" button that would to display. The default is set to `\"Yes\"`.\n\n##### `noMessage`\n\nThis is the text on the \"false\" button that would to display. The default is set to `\"No\"`.\n\n##### `yesColor`\n\nThis is the color of the \"true\" button. The default is set to `\"#2ECC71\"`.\n\n##### `noColor`\n\nThis is the color of the \"false\" button. The default is set to `\"#E74C3C\"`.\n\n#### Confirmation Example\n\n```javascript\n// Some confirmation\n$(\"body\").overhang({\n  type: \"confirm\",\n  yesMessage: \"Yes please!\",\n  noMessage: \"No thanks.\"\n});\n```\n\nRetrieving Data\n---------------\n\nThe `prompt` and `confirm` features both allow you to get data from the user. The responses are stored as data in the DOM of the target element that `overhang.js` has been applied to.\n\nTo retrieve the data, you simply pass in a callback function with one parameter:\n\n```javascript\n$(\"body\").overhang({\n  type: \"prompt\",\n  message: \"What is your name\",\n  callback: function (value) {\n    alert(\"You entered \" + value);\n  }\n});\n```\n\nor you manually access the data from the DOM:\n\n```javascript\nalert($(\"target-element\").data(\"overhangPrompt\")); // From a prompt\nalert($(\"target-element\").data(\"overhangConfirm\")); // From a confirmation\n```\n\nIf the user has not yet given a response, the default values will be set to `null`.\n\nCallbacks\n---------\n\nThe option callback argument is a function that will run once the user has made an action on the overhang notification. The callback will run after any of these cases:\n\n- The submission of a prompt\n- The selection on a confirmation\n- The close button on a normal notification with a true `closeConfirm`\n- The raise of a normal notification\n\nNote: For confirmations or prompts, the callback will not run when the close button is clicked and nothing is selected.\n\n#### Example\n```javascript\n$(\"body\").overhang({\n  type: \"confirm\",\n  message: \"Are you sure?\",\n\n  // This code will run once an option is clicked.\n  callback: function (selection) {\n    alert(\"You made your selection of \" + selection);\n  }\n});\n```\n\n","maintainers":[{"name":"paulkr","email":"paul@paulkr.com"}],"time":{"modified":"2022-06-23T04:49:46.069Z","created":"2016-08-08T16:38:45.730Z","1.0.0":"2016-08-08T16:38:45.730Z","1.0.1":"2016-08-25T16:40:47.937Z","1.0.2":"2016-08-27T16:09:00.150Z","1.0.4":"2017-10-06T04:30:04.180Z","1.0.5":"2017-10-07T19:40:46.841Z","1.0.6":"2020-05-05T22:41:10.301Z","1.0.7":"2020-05-12T01:41:38.232Z","1.0.8":"2020-05-12T02:13:10.200Z"},"homepage":"https://github.com/paulkr/overhang.js#readme","keywords":["notifications","prompts","confirmations","alerts"],"repository":{"type":"git","url":"git+https://github.com/paulkr/overhang.js.git"},"author":{"name":"Paul Krishnamurthy","email":"paul@paulkr.com"},"bugs":{"url":"https://github.com/paulkr/overhang.js/issues"},"license":"MIT","readmeFilename":"README.md"}