{"id":18536039,"url":"https://github.com/khalidsheet/web-notifications","last_synced_at":"2026-02-27T05:05:59.638Z","repository":{"id":121442327,"uuid":"152674667","full_name":"khalidsheet/web-notifications","owner":"khalidsheet","description":"A small library for web notifications.","archived":false,"fork":false,"pushed_at":"2018-10-12T02:11:01.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-29T03:51:28.968Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/khalidsheet.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":"2018-10-12T01:04:45.000Z","updated_at":"2018-10-12T16:20:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7cf4264-47f9-4eb4-8261-18826f8b8d9c","html_url":"https://github.com/khalidsheet/web-notifications","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/khalidsheet/web-notifications","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidsheet%2Fweb-notifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidsheet%2Fweb-notifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidsheet%2Fweb-notifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidsheet%2Fweb-notifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khalidsheet","download_url":"https://codeload.github.com/khalidsheet/web-notifications/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidsheet%2Fweb-notifications/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29885801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-06T19:29:32.426Z","updated_at":"2026-02-27T05:05:59.624Z","avatar_url":"https://github.com/khalidsheet.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic Web Notifications\n-----\n\u003e Create a beautiful Notifications, Messages and Alerts with simple lines of code.\n\n## Installation\n * Download all files then import them in your `index.html`\n---\n## Usage \n### Import css and js files\n-- CSS file\n```html\n    \u003clink rel=\"stylesheet\" href=\"path/to/dist/css/notifications.min.css\"\u003e\n```\n\n-- JS file\n```html\n\t\u003cscript src=\"path/todist/js/notifications.min.js\"\u003e\u003c/script\u003e\n```\n\n### then add this element before the body closing tag\n\u003e Don't forget the `notifiable=\"enable\"` attribute. \n```html\n    \u003cdiv class=\"whateverClassName\" notifiable=\"enable\"\u003e\u003c/div\u003e\n```\n---\n## In your JS file\n```js\n    /*\n      create a new Notification Instance.\n      it takes three parameters className, id or whatever selector \n      Notification Tyoe\n      JOSN object called Options\n    */\n\tvar notify = new Notification('.whateverClassName', 'type', {\n\t\ttitle: '',\n\t\tbody: '',\n\t\tposition: '',\n\t\tdir: '' // ltr, rtl\n\t});\n```\n---\n## Notification Types\n* `primary`\n* `secondary`\n* `success`\n* `info`\n* `warning`\n* `danger`\n---\n## Notification Postions\n* `top`\n* `top-left`\n* `top-right`\n* `bottom`\n* `bottom-left`\n* `bottom-right`\n---\n\n## Show the notification\n```js \n    notify.show();\n```\n## Hide the notification\n```js \n    notify.hide();\n```\n## Notification Methods\n```js \n    notify.show();\n    notify.showAfter(3000);\n    notify.hide();\n    notify.hideAfter(3000);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalidsheet%2Fweb-notifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhalidsheet%2Fweb-notifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalidsheet%2Fweb-notifications/lists"}