{"id":19646095,"url":"https://github.com/xerdi/material-design-modal-dialog-builder","last_synced_at":"2026-05-15T09:31:00.596Z","repository":{"id":27717491,"uuid":"31204671","full_name":"Xerdi/Material-Design-Modal-Dialog-Builder","owner":"Xerdi","description":"Create dialogs in a nutshell","archived":false,"fork":false,"pushed_at":"2015-02-23T15:07:49.000Z","size":336,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-09T21:32:12.322Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Xerdi.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":"2015-02-23T11:06:26.000Z","updated_at":"2024-01-12T17:04:29.000Z","dependencies_parsed_at":"2022-09-03T03:43:24.750Z","dependency_job_id":null,"html_url":"https://github.com/Xerdi/Material-Design-Modal-Dialog-Builder","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/Xerdi%2FMaterial-Design-Modal-Dialog-Builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xerdi%2FMaterial-Design-Modal-Dialog-Builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xerdi%2FMaterial-Design-Modal-Dialog-Builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xerdi%2FMaterial-Design-Modal-Dialog-Builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xerdi","download_url":"https://codeload.github.com/Xerdi/Material-Design-Modal-Dialog-Builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240953141,"owners_count":19884024,"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-11T14:36:46.685Z","updated_at":"2026-05-15T09:30:55.564Z","avatar_url":"https://github.com/Xerdi.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Material-Design-Modal-Dialog-Builder\nCreate dialogs in a nutshell\n\n## Dependencies\n[Bootstrap material design](http://fezvrasta.github.io/bootstrap-material-design/)\n\n## Put this in your ```\u003chead\u003e```\n```html\n\u003clink href=\"//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css\" rel=\"stylesheet\"\u003e\n\u003clink href=\"material/css/ripples.min.css\" rel=\"stylesheet\"\u003e\n\u003clink href=\"material/css/material-wfont.min.css\" rel=\"stylesheet\"\u003e\n```\n## Put this at the bottom of your ```\u003cbody\u003e```\n```html\n\u003cscript src=\"//code.jquery.com/jquery-1.10.2.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js\"\u003e\u003c/script\u003e\n\n\u003cscript src=\"material/js/ripples.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"material/js/material.min.js\"\u003e\u003c/script\u003e\n\n\u003cscript src=\"js/modal.js\"\u003e\u003c/script\u003e\n```\n# Usage\n## How to hook a dialog\n\n```javascript\nvar modal = new Modal({\n  title: \"A modal example!\",\n  body: document.createTextNode(\"This is an example of an HTML DOM element added to the body of the modal.\"),\n  success: \"success button text\",\n  process: function () {\n    //some ajax functions\n    modal.close();\n  }\n});\n\n$('#my-button').click(function() {\n  modal.show();\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxerdi%2Fmaterial-design-modal-dialog-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxerdi%2Fmaterial-design-modal-dialog-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxerdi%2Fmaterial-design-modal-dialog-builder/lists"}