{"id":19030490,"url":"https://github.com/sofish/essage","last_synced_at":"2025-04-15T17:38:36.933Z","repository":{"id":10866299,"uuid":"13152042","full_name":"sofish/essage","owner":"sofish","description":"a more elegant way to show message","archived":false,"fork":false,"pushed_at":"2013-09-29T03:30:04.000Z","size":179,"stargazers_count":186,"open_issues_count":3,"forks_count":16,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-28T18:11:29.882Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://sofish.github.io/essage/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sofish.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-27T14:06:44.000Z","updated_at":"2024-11-19T08:23:29.000Z","dependencies_parsed_at":"2022-08-29T22:12:00.092Z","dependency_job_id":null,"html_url":"https://github.com/sofish/essage","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/sofish%2Fessage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofish%2Fessage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofish%2Fessage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofish%2Fessage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sofish","download_url":"https://codeload.github.com/sofish/essage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249120157,"owners_count":21215900,"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-08T21:18:07.779Z","updated_at":"2025-04-15T17:38:36.902Z","avatar_url":"https://github.com/sofish.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  Essage\n\n\u003e a more elegant way to show message / tips.\n\n-------------------------\n\n- Live demo [http://sofish.github.io/essage/](http://sofish.github.io/essage/)\n- Browser support: tested under IE6+, Firefox, Chrome, Safari, Mobile Safari\n- Light, Elegant, No hard dependency\n\n-------------------------\n\n![72913732-3232-49d1-ac6b-cfcc8035cefd](https://f.cloud.github.com/assets/153183/1231987/9daee03c-287f-11e3-97e1-f8a66d425814.png)\n\n-------------------------\n\n### 1. installaion\n\nPlace the js/css file on you page, and use the `Essage` object to manage your message:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"essage.css\"\u003e\n\u003cscript src=\"essage.js\"\u003e\u003c/script\u003e\n```\n\n### 2. API: `show` or `hide`\n\n1. **show(message, timeout)** show message\n\n ```js\n // The argument `message` can be html(string).\n Essage.show('\u003cb\u003ehello\u003c/b\u003e, im a message.');\n ```\n\n **auto hide**: If `timeout` {Number} is specific, the message will hide automaticlly after `timeout` (ms).\n\n ```js\n // `timeout` should be a number\n Essage.show('i willl hide automaticlly after 2 seconds', 2000);\n ```\n\n **config**: And, the `message` can be an object:\n\n ```js\n var message = {\n   message: 'message body',\n\n   // add class `essage-success` to the container\n   // by default, there're 4 status: normal, warning, success, error\n   status: 'success',\n\n   // the placement can be `top` or `bottom`, by default is `top`\n   placement: 'bottom'\n };\n\n Essage.show(message, 3000);\n ```\n\n2. **hide()** hide message\n\n ```js\n Essage.hide();\n ```\n\n### 3. MIT licence\n\nLicensed under MIT. [liccese.txt](https://github.com/sofish/essage/blob/master/license.txt)\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofish%2Fessage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofish%2Fessage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofish%2Fessage/lists"}