{"id":13457481,"url":"https://craftpip.github.io/jquery-confirm/","last_synced_at":"2025-03-24T14:32:06.527Z","repository":{"id":24922054,"uuid":"28339083","full_name":"craftpip/jquery-confirm","owner":"craftpip","description":"A multipurpose plugin for alert, confirm \u0026 dialog, with extended features.","archived":false,"fork":false,"pushed_at":"2024-02-24T21:58:31.000Z","size":2360,"stargazers_count":1880,"open_issues_count":206,"forks_count":507,"subscribers_count":111,"default_branch":"master","last_synced_at":"2025-03-20T14:11:41.669Z","etag":null,"topics":["ajax","alert","callback","confirm","dialog","jquery","jquery-plugin","modals","popup"],"latest_commit_sha":null,"homepage":"http://craftpip.github.io/jquery-confirm/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/craftpip.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-12-22T13:10:34.000Z","updated_at":"2025-03-14T09:35:57.000Z","dependencies_parsed_at":"2022-08-02T19:46:02.049Z","dependency_job_id":"0a3c7337-529d-402d-9c00-4ec89b36dcdf","html_url":"https://github.com/craftpip/jquery-confirm","commit_stats":{"total_commits":312,"total_committers":16,"mean_commits":19.5,"dds":"0.27564102564102566","last_synced_commit":"d7df98c2e71e685172be4399bd6c296cd4d1de4c"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craftpip%2Fjquery-confirm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craftpip%2Fjquery-confirm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craftpip%2Fjquery-confirm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craftpip%2Fjquery-confirm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/craftpip","download_url":"https://codeload.github.com/craftpip/jquery-confirm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245289599,"owners_count":20591100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ajax","alert","callback","confirm","dialog","jquery","jquery-plugin","modals","popup"],"created_at":"2024-07-31T09:00:26.443Z","updated_at":"2025-03-24T14:32:06.101Z","avatar_url":"https://github.com/craftpip.png","language":"JavaScript","funding_links":["https://www.paypal.me/bonifacepereira"],"categories":["Credits"],"sub_categories":[],"readme":"### ![jquery-confirm](https://raw.githubusercontent.com/craftpip/jquery-confirm/master/jquery-confirm.png \"jquery-confirm\")\n*alerts, confirms and dialogs in* ***one.***\n\nv3.3.3\n\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/bonifacepereira)\n\nA multipurpose plugin for alert, confirm \u0026 dialog, with Super powers.\n\n* Listen keyboard keys \n* Directly load content via Ajax \n* Auto-close dialog after a specified time \n* prevent Dialog close on background click\n* callback function, and ton more\n\nView Detailed [Documentation \u0026 Examples](http://craftpip.github.io/jquery-confirm)\n\n## Installation\n\nDownload the latest release [here](https://github.com/craftpip/jquery-confirm/archive/master.zip) and use the files within `dist` folder.\n\nvia CDN:  \n`\u003clink rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css\"\u003e`  \n`\u003cscript src=\"//cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.js\"\u003e\u003c/script\u003e`\n\nvia Bower:  \n`$ bower install craftpip/jquery-confirm`\n\nvia NPM:  \n`$ npm install jquery-confirm`\n\n## Basic Usage\n\nShowing a confirm box.\n```js\n$.confirm({\n    title: 'What is up?',\n    content: 'Here goes a little content',\n    type: 'green',\n    buttons: {   \n        ok: {\n            text: \"ok!\",\n            btnClass: 'btn-primary',\n            keys: ['enter'],\n            action: function(){\n                 console.log('the user clicked confirm');\n            }\n        },\n        cancel: function(){\n                console.log('the user clicked cancel');\n        }\n    }\n});\n```\n\n## Demo and Documentation\n\nSee Detailed Docs + Example [here](http://craftpip.github.io/jquery-confirm).\n\n## Authors\n\n[Boniface Pereira](https://github.com/craftpip) \u0026 [Awesome Contributors](https://github.com/craftpip/jquery-confirm/graphs/contributors).\n\n## Issues\n\nPlease post issues and feature request here [Github issues](https://github.com/craftpip/jquery-confirm/issues)\n\n## jconfirm alias\n\nThe `$.alert()` , `$.confirm()` \u0026 `$.dialog()` are alias of `jconfirm();`.\n\nCheckout the [documentation](http://craftpip.github.io/jquery-confirm) for further information.\n\n## Version changes\n\n(new in 3.3.3) \n* Safari height bug fix. PR by [lanre-ade](https://github.com/lanre-ade)\n* Fix isClosed bug for firefox. PR by [loganm](https://github.com/loganm)\n* Remove scroll to top when content height changes. PR by [amikot](https://github.com/amikot)\n* added support for AMD and commonJS\n\n(new in 3.3.1) \n* Pass 'false' in buttons property to remove all buttons in $.confirm and $.alert\n\n(new in 3.3.0)\n* Moved overflow scroll inside modal [#286](https://github.com/craftpip/jquery-confirm/issues/2860)\n* Improved draggable\n* Added 'animateFromElement' method \n* Added 'smoothScroll' option \n* Added 'hilight' option \n* Added 'showLoading','hideLoading' option \n* Accept jquery dom element in content [#313](https://github.com/craftpip/jquery-confirm/issues/313) \n* Updated docs \n* 'setDialogCenter' method deprecated, dialog centered with CSS tables\n* 'alignMiddle' method deprecated\n* fixes [#255](https://github.com/craftpip/jquery-confirm/issues/255) [#307](https://github.com/craftpip/jquery-confirm/issues/307) [290](https://github.com/craftpip/jquery-confirm/issues/290)\n\n(new in 3.2.3)\n* Added lazyOpen option\n* Added button properties isHidden and isDisabled\n* setBoxWidth method added\n\n(new in 3.2.1) *untagged\n* Fixed autoClose bug decimal point countdown if 1500 milliseconds was provided.\n\n(new in 3.2.0)\n* new theme Modern added\n* fixed [#242](https://github.com/craftpip/jquery-confirm/issues/242) [#248](https://github.com/craftpip/jquery-confirm/issues/242) \n* themes RTL \u0026 supervan fixes\n\n(new in 3.1.1)\n* bug fixes\n\n(new in 3.1.0)\n* Support for bootstrap v4\n* Draggable dialogs\n* Added options animateScrollToElement, alignMiddle, offsetTop, offsetBottom and drawWindowGap\n\n(new in 3.0.3)\n* Setting defaults fixed\n* added docs for prompt dialog\n* added setType method\n* users can now create custom type styles\n* removed the annoying debug console log\n* other fixes\n\n(new in 3.0.1)\n* Removed bootstrap as dependency\n* Added dialog type to identify success, failure, etc.\n* Animate scroll to previous focused element\n* titleClass option added\n\n(New in 3.0.0) **no backwards compatible with v2.**\n* Define multiple buttons\n* Define keyboard keys for individual buttons\n* Added setContentPrepend, setContentAppend for control over content.\n* Added functions to enable, disable, show, hide, and more for buttons.\n* Added aliases for columnClass\n* Added bgOpacity\n* Added containerFluid\n* Added backgroundDismiss animations\n* Added callbacks, onContentReady, onOpenBefore, onDestroy\n* Docs added for custom animations and themes\n* Animation fixes when loading via Ajax\n* Restructured code\n* Bind button to closeIcon event\n* Bind button to backgroundDismiss event\n* Now created and destroyed instances can be reopened. \n* Bug fixes\n\n(New in 2.5.1)\n* Fixes\n\n(New in 2.5.0)\n* Added closeIconClass\n* Added this.$target\n* Changed modal template\n* Watches modal for new changes auto set to center\n* New documentation\n* Added new theme 'material' and 'bootstrap'\n* Removed themes 'holodark' and 'hololight'\n* Improved performance\n\n(New in 2.0.0)\n* Added closeAnimation\n* Added $('a').confirm() to emulate confirm();\n* Smoother animations\n* Changed backgroundDismiss animation\n* Updated documentations\n\n(New in 1.7.9)\n* Minor bug fixes\n\n(New in 1.7.8)\n* RTL support\n* Option to select keyboard keys\n\n(New in 1.7.5)\n* Callbacks added, onOpen, onClose, onAction\n* Improved docs.\n\n(New in 1.7.3)\n* Fix show and hide for closeIcon\n* Improved animations, more CSS\n* setContent method improved.\n* setTitle method added.\n\n(New in 1.7.0)\n* Option for custom width added (using bootstrap grid)\n* Text overflow logic changed, #13\n* Documentation \u0026 improvements to contentLoaded callback.\n\n(New in 1.6.0)\n* Theme 'supervan' added\n* Load via URL advanced added. now get control over your ajax calls \u0026 callbacks.\n* methods setContent, isClosed added\n* Improved documentation\n\n(New in 1.5.3)\n* Bounce Animation added (kind of elastic).\n* Hide title if false.\n* Keyboard action, SPACE key added to trigger confirm function.\n* Background now has fade animation (open \u0026 close).\n* Keep a record of opened, closed, currentlyOpened dialogs `jconfirm.record`.\n* Tweaks.\n\n(New in 1.5.1)\n* Bower added.\n\n(New in 1.5.0)\n* Keyboard support to control modal. (ENTER and ESC).\n* Control over the dialog via `this`.\n* Updated DOCUMENTATION.\n* Code optimized.\n\n(New in 1.1.3)\n* `$.dialog` alias added.\n* Refined animations.\n* Removed Blur animation (was buggy).\n* Animation speed fixed.\n* Ajax-content loading now waits and disabled buttons until loaded.\n* Modal center justified on screen.\n* Added close icon if buttons are disabled (dialog mode).\n* Disabled window scroll on modal open.\n* Fixed bugs.\n\n(New in 1.1.0)\n* Ajax content loading `content: 'url:loadfrom.html'`.\n\n## Copyright and license\n\nCopyright (C) 2014-2017 jquery-confirm\n\nLicensed under [the MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/craftpip.github.io%2Fjquery-confirm%2F","html_url":"https://awesome.ecosyste.ms/projects/craftpip.github.io%2Fjquery-confirm%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/craftpip.github.io%2Fjquery-confirm%2F/lists"}