{"id":18308236,"url":"https://github.com/takaneichinose/message-box","last_synced_at":"2026-04-26T22:31:45.016Z","repository":{"id":93601296,"uuid":"280011540","full_name":"takaneichinose/message-box","owner":"takaneichinose","description":"This Message Box implementation in Javascript, inspired by material design's toast message","archived":false,"fork":false,"pushed_at":"2020-07-16T00:56:57.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T11:33:37.376Z","etag":null,"topics":["alert","alert-messages","alertdialog","alerts","class","css","css3","dialog","html","html5","javascript","javascript-es6","js","message","messagebox","responsive","responsive-design","toast","toast-message","toast-ui"],"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/takaneichinose.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":"2020-07-16T00:16:43.000Z","updated_at":"2023-03-10T07:03:08.000Z","dependencies_parsed_at":"2023-03-13T17:16:16.126Z","dependency_job_id":null,"html_url":"https://github.com/takaneichinose/message-box","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/takaneichinose/message-box","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takaneichinose%2Fmessage-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takaneichinose%2Fmessage-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takaneichinose%2Fmessage-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takaneichinose%2Fmessage-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takaneichinose","download_url":"https://codeload.github.com/takaneichinose/message-box/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takaneichinose%2Fmessage-box/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32315711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T21:09:39.134Z","status":"ssl_error","status_checked_at":"2026-04-26T21:09:21.240Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["alert","alert-messages","alertdialog","alerts","class","css","css3","dialog","html","html5","javascript","javascript-es6","js","message","messagebox","responsive","responsive-design","toast","toast-message","toast-ui"],"created_at":"2024-11-05T16:07:19.637Z","updated_at":"2026-04-26T22:31:45.000Z","avatar_url":"https://github.com/takaneichinose.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Responsive Message Box\n\u003cp\u003eThis Message Box implementation in Javascript, inspired by material design's toast message.\u003c/p\u003e\n\u003cp\u003eNote: I used the VanillaJS (native Javascript) Class to implement the message box. This may not work on older browsers, due to compatibility issue with native class.\u003c/p\u003e\n\u003cp\u003eThis is resolvable by using Javascript compilers or pre-processesors, to compile the Javascript code into cross-browser Javascript code.\u003c/p\u003e\n\u003chr /\u003e\n\u003ch3\u003eUsage\u003c/h3\u003e\n\u003col\u003e\n  \u003cli\u003e\n    \u003ch4\u003eCreate MessageBox class instance\u003c/h4\u003e\n    \u003ccode\u003e\n      let msg = new MessageBox(\"#id\", option)\n    \u003c/code\u003e\n  \u003c/li\u003e\n  \u003cli\u003e\n    \u003ch4\u003eAvailable options (type: Object)\u003c/h4\u003e\n    \u003col type=\"a\"\u003e\n      \u003cli\u003e\n        \u003ch6\u003ecloseTime\u003c/h6\u003e\n        \u003cp\u003eTime before the message box closes (In milliseconds). 0 to make it persistent\u003c/p\u003e\n      \u003c/li\u003e\n      \u003cli\u003e\n        \u003ch6\u003ehideCloseButton\u003c/h6\u003e\n        \u003cp\u003eTo hide the close button\u003c/p\u003e\n      \u003c/li\u003e\n    \u003c/ol\u003e\n  \u003c/li\u003e\n  \u003cli\u003e\n    \u003ch4\u003eCall the \"show\" method to show the dialog box\u003c/h4\u003e\n    \u003ch5\u003eParameters\u003c/h5\u003e\n    \u003cul\u003e\n      \u003cli\u003e\n        \u003ch6\u003emessage\u003c/h6\u003e\n        \u003cp\u003eThe message that will appear on the message box\u003c/p\u003e\n      \u003c/li\u003e\n      \u003cli\u003e\n        \u003ch6\u003elabel\u003c/h6\u003e\n        \u003cp\u003eThe label of the close button (default is \"CLOSE\")\u003c/p\u003e\n      \u003c/li\u003e\n      \u003cli\u003e\n        \u003ch6\u003ecallback\u003c/h6\u003e\n        \u003cp\u003eCallback function\u003c/p\u003e\n      \u003c/li\u003e\n    \u003c/ul\u003e\n  \u003c/li\u003e\n\u003c/ol\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakaneichinose%2Fmessage-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakaneichinose%2Fmessage-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakaneichinose%2Fmessage-box/lists"}