{"id":13553657,"url":"https://github.com/justindomingue/ohSnap","last_synced_at":"2025-04-03T05:31:14.538Z","repository":{"id":10439422,"uuid":"12605305","full_name":"justindomingue/ohSnap","owner":"justindomingue","description":"A simple  jQuery/Zepto notification library designed to be used in mobile apps","archived":false,"fork":false,"pushed_at":"2021-10-24T16:16:51.000Z","size":111,"stargazers_count":280,"open_issues_count":2,"forks_count":62,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-02T08:16:16.965Z","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/justindomingue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-05T00:26:05.000Z","updated_at":"2024-03-15T03:44:54.000Z","dependencies_parsed_at":"2022-07-30T11:18:07.989Z","dependency_job_id":null,"html_url":"https://github.com/justindomingue/ohSnap","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/justindomingue%2FohSnap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justindomingue%2FohSnap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justindomingue%2FohSnap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justindomingue%2FohSnap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justindomingue","download_url":"https://codeload.github.com/justindomingue/ohSnap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246944377,"owners_count":20858773,"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-08-01T12:02:30.517Z","updated_at":"2025-04-03T05:31:14.226Z","avatar_url":"https://github.com/justindomingue.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Mobile"],"sub_categories":["Miscellaneous Plugins"],"readme":"OhSnap!.js\n=========\n\n\u003e Oh Snap ! The server crashed... Try again later :D\n\nA simple jQuery/Zepto notification library designed to be used in mobile apps\n\nCheck out this [demo page](http://justindomingue.github.io/ohSnap/ \"Demo\")\n\n## Installation\n\nDependency: [jQuery](http://jquery.com) or [Zepto](http://zeptojs.com).\n\nDownload ohSnap.js:\n- from [Github](https://raw.githubusercontent.com/justindomingue/ohSnap/master/ohsnap.js)\n- with Bower: `bower install oh-snap`.\n\nAdd a `div.ohsnap` which will contain the alerts :\n\n    \u003cdiv id=\"ohsnap\"\u003e\u003c/div\u003e\n\nUsage\n-----\n\nTo call a notification, use `ohSnap(text, options)`. Examples :\n\n    ohSnap('Succefully created your account');\n    ohSnap('Oh Snap! I cannot process your card...', {color: 'red', icon: 'icon-alert'}); // color matches CSS class `.alert.color`\n    ohSnap('Yeeaahh! You are now registered.', {time: '2000'} // time is ms\n\nTo remove a notification, use `ohSnapX()`.\n\nAlerts are automatically bound to a click event (internally, `ohSnapX()` is called when the alert is clicked).\n\n### Styling\n\nFurthermore, ohSnap.js creates a div with classes `.alert .alert-color` so you will want to have something like :\n\n    /* ALERTS */\n    /* inspired by Twitter Bootstrap */\n\n    .alert {\n      padding: 15px;\n      margin-bottom: 20px;\n      border: 1px solid #eed3d7;\n      border-radius: 4px;\n      position: absolute;\n      bottom: 0px;\n      right: 21px;\n      /* Each alert has its own width */\n      float: right;\n      clear: right;\n    }\n\n    .alert-red {\n      color: white;\n      background-color: #DA4453;\n    }\n    .alert-green {\n      color: white;\n      background-color: #37BC9B;\n    }\n    .alert-blue {\n      color: white;\n      background-color: #4A89DC;\n    }\n    .alert-yellow {\n      color: white;\n      background-color: #F6BB42;\n    }\n    .alert-orange {\n      color:white;\n      background-color: #E9573F;\n    }\n\n\nBy **Justin Domingue**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustindomingue%2FohSnap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustindomingue%2FohSnap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustindomingue%2FohSnap/lists"}