{"id":21833026,"url":"https://github.com/null-none/simple-modals","last_synced_at":"2026-04-14T06:04:12.432Z","repository":{"id":146604911,"uuid":"495091121","full_name":"null-none/simple-modals","owner":"null-none","description":"Simple, dependency free javascript modal","archived":false,"fork":false,"pushed_at":"2022-05-22T15:37:41.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-13T22:41:12.214Z","etag":null,"topics":["bootstrap","css","js","modal"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/null-none.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":"2022-05-22T14:56:22.000Z","updated_at":"2023-03-10T07:07:22.000Z","dependencies_parsed_at":"2023-04-26T03:02:06.577Z","dependency_job_id":null,"html_url":"https://github.com/null-none/simple-modals","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/null-none/simple-modals","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fsimple-modals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fsimple-modals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fsimple-modals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fsimple-modals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/null-none","download_url":"https://codeload.github.com/null-none/simple-modals/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fsimple-modals/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265246221,"owners_count":23734109,"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":["bootstrap","css","js","modal"],"created_at":"2024-11-27T19:27:33.546Z","updated_at":"2026-04-14T06:04:12.405Z","avatar_url":"https://github.com/null-none.png","language":"HTML","readme":"# simple-modals\n\nSimple, dependency free javascript modal\n\nsimple-modals is a **tiny** javascript and CSS modal library. It works very similarly to Bootstrap modals, without the need for jQuery or Bootstrap. In fact, simple-modals can be swapped out with Bootstrap modals without making any changes to your markup.\n\nsimple-modals exposes a single global method, `modal()`, that can be used to launch modals with JavaScript. However, the primary means of using simple-modals is through the use of HTML classes and attributes.\n\n## Features\n\n* Dependency free, no jQuery or Bootstrap\n\n* Tiny\n    * JS compressed, gzipped - 534 bytes\n    * CSS compressed, gzipped - 593 bytes\n\n\n* Responsive sizing\n    * Modal size responds to viewport size\n    * Modals never extend outside the viewport\n\n\n* Optional size classes\n    * modal-sm\n    * modal-md\n    * modal-lg\n    * modal-xl\n\n\n* Click delegation\n    * Modals and buttons that are dynamically created will still work\n\n\n* Swappable with Bootstrap\n    * simple-modals uses the same class names and `modal()` method as Bootstrap, making it super simple to swap out as your project grows\n\n\n## Install\n\n```bash\nnpm install simple-modals\n```\n\n\n## Sample Code\n\n```html\n\u003chtml lang=\"en\"\u003e\n    \u003chead\u003e\n        \u003cmeta charset=\"utf-8\"\u003e\n        \u003ctitle\u003eSimple Modal Demo\u003c/title\u003e\n\n        \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"modal.min.css\"\u003e\n    \u003c/head\u003e\n    \u003cbody\u003e\n        \u003cbutton data-toggle=\"modal\" data-target=\"#myModal\"\u003eLaunch Modal\u003c/button\u003e\n        \u003cdiv id=\"myModal\" class=\"modal modal-md\"\u003e\n            \u003cdiv class=\"modal-dialog\"\u003e\n                \u003cdiv class=\"modal-content\"\u003e\n                    \u003cdiv class=\"modal-close\"\u003e\u0026times;\u003c/div\u003e\n                    \u003ch1\u003eMy Simple Modal\u003c/h1\u003e\n                    \u003cp\u003e\n                        Lorem ipsum dolor sit amet, consectetur adipisicing elit,\n                        sed do eiusmod tempor incididunt ut labore et dolore magna\n                        aliqua.\n                \u003c/div\u003e\n            \u003c/div\u003e\n        \u003c/div\u003e\n        \u003cscript type=\"text/javascript\" src=\"modal.min.js\"\u003e\u003c/script\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnull-none%2Fsimple-modals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnull-none%2Fsimple-modals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnull-none%2Fsimple-modals/lists"}