{"id":19554997,"url":"https://github.com/kanety/jquery-simple-dialog","last_synced_at":"2025-07-31T13:04:38.667Z","repository":{"id":57123840,"uuid":"330320208","full_name":"kanety/jquery-simple-dialog","owner":"kanety","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-17T04:47:56.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T21:49:23.823Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/kanety.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-17T05:18:38.000Z","updated_at":"2021-05-17T04:28:55.000Z","dependencies_parsed_at":"2022-08-29T04:20:15.090Z","dependency_job_id":null,"html_url":"https://github.com/kanety/jquery-simple-dialog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanety%2Fjquery-simple-dialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanety%2Fjquery-simple-dialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanety%2Fjquery-simple-dialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanety%2Fjquery-simple-dialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kanety","download_url":"https://codeload.github.com/kanety/jquery-simple-dialog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240814841,"owners_count":19861955,"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":[],"created_at":"2024-11-11T04:30:52.486Z","updated_at":"2025-02-26T07:41:00.620Z","avatar_url":"https://github.com/kanety.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jquery-simple-dialog\n\nA jquery plugin for simple dialog.\n\n## Dependencies\n\n* jquery\n\n## Installation\n\nInstall from npm:\n\n    $ npm install @kanety/jquery-simple-dialog --save\n\n## Usage\n\nBuild html as follows:\n\n```html\n\u003cdiv id=\"content\"\u003e\n  \u003cdiv id=\"drag\"\u003eDialog Title\u003c/div\u003e\n  \u003cdiv\u003econtent\u003c/div\u003e\n  \u003cdiv\u003econtent\u003c/div\u003e\n  \u003chr\u003e\n  \u003cdiv\u003e\n    \u003cbutton type=\"button\" id=\"ok\"\u003eOK\u003c/button\u003e\n    \u003cbutton type=\"button\" id=\"cancel\"\u003eCancel\u003c/button\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n\u003cbutton type=\"button\" id=\"open\"\u003eOpen\u003c/button\u003e\n```\n\nThen run:\n\n```javascript\n$('#content').simpleDialog({\n  opener: '#open',\n  closer: '#ok,#cancel'\n});\n```\n\n### Options\n\nDraggable dialog:\n\n```javascript\n$('#content').simpleDialog({\n  dragger: '#drag'\n});\n```\n\nModal dialog:\n\n```javascript\n$('#content').simpleDialog({\n  modal: true\n});\n```\n\nFocus elements when dialog is opened:\n\n```javascript\n$('#content').simpleDialog({\n  focus: '#ok'\n});\n```\n\n### Callbacks\n\nRun callbacks when a dialog is opened or closed:\n\n```javascript\n$('#content').simpleDialog({\n  ...\n}).on('dialog:open', function(e, $handler) {\n  console.log(\"opened by \" + $handler.attr('id'));\n}).on('dialog:close', function(e, $handler) {\n  console.log(\"closed by \" + $handler.attr('id'));\n});\n```\n\n## License\n\nThe library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanety%2Fjquery-simple-dialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanety%2Fjquery-simple-dialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanety%2Fjquery-simple-dialog/lists"}