{"id":16366396,"url":"https://github.com/steebchen/smackbar","last_synced_at":"2026-02-17T06:30:18.062Z","repository":{"id":57363681,"uuid":"69680547","full_name":"steebchen/smackbar","owner":"steebchen","description":"a simple jquery notification library plugin","archived":false,"fork":false,"pushed_at":"2020-08-03T02:39:03.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T01:29:02.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/steebchen.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":"2016-09-30T15:55:09.000Z","updated_at":"2020-08-03T02:37:36.000Z","dependencies_parsed_at":"2022-09-06T09:40:45.078Z","dependency_job_id":null,"html_url":"https://github.com/steebchen/smackbar","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/steebchen%2Fsmackbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steebchen%2Fsmackbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steebchen%2Fsmackbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steebchen%2Fsmackbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steebchen","download_url":"https://codeload.github.com/steebchen/smackbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239827780,"owners_count":19703749,"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-10-11T02:46:19.618Z","updated_at":"2026-02-17T06:30:18.031Z","avatar_url":"https://github.com/steebchen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# smackbar\na simple jquery notification library plugin\n\n**DISCLAIMER: this library is still in development**\n\nthe name comes from the word snackbar which describes the message style from\nGoogle's material design mixed with the project's only dependency\n[smiler](https://github.com/steebchen/smiler) to transpile files\n\n### setup\n\nMethod 1: CDN (**recommended**)\n\n```html\n\u003cscript src=\"https://cdndoge.xyz/common/js/jquery.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdndoge.xyz/lib/smackbar/smackbar.js\"\u003e\u003c/script\u003e\n\u003clink rel=\"stylesheet\" href=\"https://cdndoge.xyz/lib/smackbar/smackbar.css\"/\u003e\n```\n\nMethod 2: compile it by yourself (fully customizable)\n\n```\ngit clone https://github.com/steebchen/smackbar \u0026\u0026 cd smackbar\nnpm i\nnpm start # compiles all files to the ./public/ directory. edit app.js to customize behavior\n```\n\nMethod 3: get from npm\n\n```\nnpm i smackbar\n```\n\n### usage\n\n#### simple\n\nThis simple example shows a smackbar with a close button. It gets automatically\ndismissed after 4 seconds.\n\n```js\n$.smackbar({\n    message: 'hi'\n})\n```\n\n#### all options\n\n```js\n$.smackbar({\n    message: 'hi', // this is the only required field\n    timeout: 5000, // sepcify time in ms after the smackbar closes. set to false or 0 to disable\n    button: {\n        text: 'Undo', // the button text, will be transformed into uppercase automatically\n        preventClose: boolean, // TODO\n        onclick: function() {\n            console.log('clicked the button')\n        }\n    },\n    onclose: function() {\n        console.log('this function gets called when the smackbar gets closed')\n    }\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteebchen%2Fsmackbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteebchen%2Fsmackbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteebchen%2Fsmackbar/lists"}