{"id":22830870,"url":"https://github.com/mantoufan/yzhannotify","last_synced_at":"2025-04-23T19:13:49.892Z","repository":{"id":53918758,"uuid":"521202992","full_name":"mantoufan/yzhanNotify","owner":"mantoufan","description":"Element and Global Notifications / Toasts with Pure / Vanilla / Native JavaScript. 使用原生 JavaScript 在视窗或元素的指定位置发送通知和提示。","archived":false,"fork":false,"pushed_at":"2022-08-08T17:07:51.000Z","size":18,"stargazers_count":41,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-12T08:44:28.198Z","etag":null,"topics":["notify","yzhan1kb"],"latest_commit_sha":null,"homepage":"https://mantoufan.github.io/yzhanNotify/","language":"CSS","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/mantoufan.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":"2022-08-04T09:26:14.000Z","updated_at":"2023-05-13T11:19:13.000Z","dependencies_parsed_at":"2022-08-13T04:20:10.337Z","dependency_job_id":null,"html_url":"https://github.com/mantoufan/yzhanNotify","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/mantoufan%2FyzhanNotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mantoufan%2FyzhanNotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mantoufan%2FyzhanNotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mantoufan%2FyzhanNotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mantoufan","download_url":"https://codeload.github.com/mantoufan/yzhanNotify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229445635,"owners_count":18074161,"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":["notify","yzhan1kb"],"created_at":"2024-12-12T20:15:46.841Z","updated_at":"2024-12-12T20:15:47.351Z","avatar_url":"https://github.com/mantoufan.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yzhanNotify\n![npm](https://img.shields.io/npm/v/yzhannotify)\n![npm bundle size](https://img.shields.io/bundlephobia/minzip/yzhannotify)\n![npm](https://img.shields.io/npm/dt/yzhannotify)\n[![GitHub license](https://img.shields.io/github/license/mantoufan/yzhanNotify)](https://github.com/mantoufan/yzhanNotify/blob/main/LICENSE)\n![ie6+](https://img.shields.io/badge/IE-6%2B-skyblue)  \nElement and Global Notifications / Toasts with Pure / Vanilla / Native JavaScript    \n用原生 JavaScript 在视窗或元素的指定位置发送通知和提示 Compatible with IE6+ 支持八方向\n\n## DEMO\n[DEMO](//mantoufan.github.io/yzhanNotify/) \n\n![DEMO Picture](https://files.catbox.moe/s80yx9.jpg)\n\n## Start\n### Node.js\n```javascript\nnpm i yzhannotify\nimport 'yzhannotify/css'\nimport YZhanNotify from 'yzhannotify'\n```\n### Browser\n```html\n\u003clink href=\"https://cdn.jsdelivr.net/npm/yzhannotify@latest/docs/yzhannotify.css\" rel=\"stylesheet\"\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/yzhannotify@latest/docs/yzhannotify.umd.cjs\"\u003e\u003c/scirpt\u003e\n```\n\n## API\n```javascript\nYZhanNotify({\n  msg: 'hello world',\n  position: 'top center', // All optional Values can be found in DEMO\n  duration: '2500', // ms\n  className: '', // Class of notify container \n  ele: document.getElementById('main'), // If ele is null, notify will be displayed globally\n})\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmantoufan%2Fyzhannotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmantoufan%2Fyzhannotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmantoufan%2Fyzhannotify/lists"}