{"id":27168170,"url":"https://github.com/maclovin/hellomodal","last_synced_at":"2025-04-09T05:29:28.443Z","repository":{"id":34245610,"uuid":"38124500","full_name":"maclovin/hellomodal","owner":"maclovin","description":"The modal component for developers","archived":false,"fork":false,"pushed_at":"2015-09-24T19:01:14.000Z","size":224,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"gh-pages","last_synced_at":"2025-03-11T12:14:05.887Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http;//maclovin.github.io/hellomodal","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"kokororin/pixiv-api-php","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maclovin.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}},"created_at":"2015-06-26T17:30:21.000Z","updated_at":"2015-11-21T19:33:59.000Z","dependencies_parsed_at":"2022-09-11T07:01:05.098Z","dependency_job_id":null,"html_url":"https://github.com/maclovin/hellomodal","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/maclovin%2Fhellomodal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maclovin%2Fhellomodal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maclovin%2Fhellomodal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maclovin%2Fhellomodal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maclovin","download_url":"https://codeload.github.com/maclovin/hellomodal/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247985779,"owners_count":21028759,"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":"2025-04-09T05:29:27.878Z","updated_at":"2025-04-09T05:29:28.419Z","avatar_url":"https://github.com/maclovin.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hello\n\nThe Modal Component For Developers\n\n## Installation and requirements\n- Install jQuery\n- Copy hello minified in \"/dist\" folder to your lib directory.\n\n\n_Actually the hello component check if you got a JSS object created or not.  So, Nevermind. We can put the JSS component together._\n\n\n\n## Features\n\n- Auto position calcs to centralize modal component\n\n- Full size mode\n\n- Shadow background\n\n- Show/Hide animation\n\n- Callback execution on modal events (Load and Submit)\n\n- Ajax content\n\n- interoperable CSS (The Hello component haven't any theme. Only position properties.)\n\n\n\n## Usage Examples\n\nMarkup:\n\n```\n\t\u003cdiv id=\"newsletterModal\" class=\"hide\"\u003e\n\t    \u003cdiv class=\"hello-header\"\u003e\n\t      \u003cbutton type=\"button\" class=\"hello-close\"\u003eClose\u003c/button\u003e\n\t    \u003c/div\u003e\n\t    \u003cdiv class=\"hello-body\"\u003e\n\t      \u003ch1\u003eTudo Muito Dark\u003c/h1\u003e\n\t      \u003ch2\u003eTudo Muito Dark\u003c/h2\u003e\n\t      \u003ch3\u003eTudo Muito Dark\u003c/h3\u003e\n\t    \u003c/div\u003e\n\t    \u003cdiv class=\"hello-footer\"\u003e\n\t      \u003cbutton type=\"button\" class=\"hello-submit\"\u003eSubmit\u003c/button\u003e\n\t    \u003c/div\u003e\n\t\u003c/div\u003e\n\n```\n\nJavascript:\n\n```\n\tvar myModal = new Hello({\n\t\telement: 'newsletterModal', //or $('#newsletterModal')\n\t\twidth: 600,\n\t\theight: 300,\n\t\tanimation: true,\n\t\tshadow, true,\n\t\tajax: '/something.html',\n\t\tsubmit: function() {\n\t\t\talert('sup, dude :P');\n\t\t}\n\t});\n\n\tmyModal.show();\n```\n\n## Settings\n\n#### element (required)\n**Type:** _string_ or jquery selector _object_\n\n---\n\n#### width\n**Type:** _integer_\n\n---\n\n#### height\n**Type:** _integer_\n\n---\n\n#### full\n**Type:** _boolean_\n\nShow the full size modal.\n\n---\n\n#### animation\n**Type:** _boolean_\n\n---\n\n#### shadow\n**Type:** _boolean_\n\nShow the shadow background and lock screen.\n\n---\n\n#### load\n**Type:** _function_\n\nExecute callback after modal loading.\n\n---\n\n#### submit\n**Type:** _function_\n\nExecute callback on ```.hello-submit``` click.\n\n---\n\n#### ajax\n**Type:** _string_\n\nInput data received from a request on modal body.\n\n---\n\n## Methods\n\nShow/Hide modal with:\n\n```\n\tmyModal.show();\n`\n\tmyModal.hide();\n```\n\n## License\n\nMIT 2015\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaclovin%2Fhellomodal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaclovin%2Fhellomodal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaclovin%2Fhellomodal/lists"}