{"id":15304564,"url":"https://github.com/monkeymars/simplemodal","last_synced_at":"2025-10-08T09:30:44.333Z","repository":{"id":6667036,"uuid":"7911774","full_name":"monkeymars/simplemodal","owner":"monkeymars","description":"Modal window","archived":false,"fork":true,"pushed_at":"2013-01-17T07:52:37.000Z","size":398,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-02T07:56:49.724Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"plasm/simplemodal","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monkeymars.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-30T09:42:24.000Z","updated_at":"2013-01-30T09:42:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/monkeymars/simplemodal","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/monkeymars%2Fsimplemodal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeymars%2Fsimplemodal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeymars%2Fsimplemodal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeymars%2Fsimplemodal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monkeymars","download_url":"https://codeload.github.com/monkeymars/simplemodal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235700110,"owners_count":19031668,"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-10-01T07:57:00.188Z","updated_at":"2025-10-08T09:30:43.961Z","avatar_url":"https://github.com/monkeymars.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Screenshot](https://raw.github.com/plasm/simplemodal/master/logotipo.png)\n\nhttp://simplemodal.plasm.it\n---------------------------\nModal - A simple modal window\n===========================================\nSIMPLE MODAL is a small [MooTools](http://mootools.net/) plugin to create modal windows.\nIt can be used to generate alert or confirm messages with few lines of code. Confirm configuration involves the use of callbacks to be applied to affirmative action; it can work in asynchronous mode and retrieve content from external pages or getting the inline content.\nSIMPLE MODAL is not a lightbox although the possibility to hide parts of its layout may partially make it similar.\n\nHow to Use\n----------\n\nMinimal configuration\n\n\nALERT INTEGRATION \n-----------------\nSnippet code Javascript:\n\n\t#JS\n\t\n\t$(\"myElement\").addEvent(\"click\", function(){\n\t  var SM = new SimpleModal({\"btn_ok\":\"Alert button\"});\n\t      SM.show({\n\t        \"title\":\"Title\",\n\t        \"contents\":\"Your message...\"\n\t      });\n\t});\n\nSnippet code HTML:\n\n\t#HTML\n\t\n\t\u003ca id=\"myElement\" href=\"javascript;\"\u003eAlert\u003c/a\u003e\n\n\nMODAL-AJAX INTEGRATION\n----------------------\nSnippet code Javascript:\n\n\t#JS\n\n\t$(\"myElement\").addEvent(\"click\", function(){\n\t  var SM = new SimpleModal({\"width\":600});\n\t      SM.addButton(\"Action button\", \"btn primary\", function(){\n\t          this.hide();\n\t      });\n\t      SM.addButton(\"Cancel\", \"btn\");\n\t      SM.show({\n\t        \"model\":\"modal-ajax\",\n\t        \"title\":\"Title\",\n\t        \"param\":{\n\t          \"url\":\"file-content.php\",\n\t          \"onRequestComplete\": function(){ /* Action on request complete */ }\n\t        }\n\t      });\n\t});\n\nSnippet code HTML:\n\n\t#HTML\n\n\t\u003ca id=\"myElement\" href=\"javascript;\"\u003eOpen Modal\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkeymars%2Fsimplemodal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonkeymars%2Fsimplemodal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkeymars%2Fsimplemodal/lists"}