{"id":24383272,"url":"https://github.com/firstandthird/wait","last_synced_at":"2026-04-24T00:39:55.211Z","repository":{"id":10652673,"uuid":"12882749","full_name":"firstandthird/wait","owner":"firstandthird","description":"Javascript plugin to show an iOS style loading graphic","archived":false,"fork":false,"pushed_at":"2016-12-23T17:44:10.000Z","size":478,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-03-28T09:50:53.806Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/firstandthird.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2013-09-17T00:53:57.000Z","updated_at":"2013-11-04T21:23:22.000Z","dependencies_parsed_at":"2022-09-25T07:01:54.178Z","dependency_job_id":null,"html_url":"https://github.com/firstandthird/wait","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/firstandthird/wait","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fwait","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fwait/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fwait/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fwait/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firstandthird","download_url":"https://codeload.github.com/firstandthird/wait/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fwait/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32204710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T00:06:41.111Z","status":"ssl_error","status_checked_at":"2026-04-24T00:06:35.224Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2025-01-19T10:14:04.017Z","updated_at":"2026-04-24T00:39:55.187Z","avatar_url":"https://github.com/firstandthird.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#wait\n\nFidel plugin to show an iOS style loading graphic.\n\n![](https://raw.github.com/firstandthird/wait/master/design/dark.png)\n\n##Features\n\n- Doesn't allow user to click anything else while visible (configurable).\n- Theme support.\n\n##Installation\n\n###Bower\n\n`bower install wait`\n\n###Manual Download\n\n- [Development]()\n- [Production]()\n\n##Usage\n\n###Basic\n\n```javascript\n$('#element').wait('show');\n\n//stuff happens\n\n$('#element').wait('hide');\n```\n\n###With Options (defaults shown)\n\n```javascript\n$('#element').wait('show',{\n\ttitle: 'Loading...',\n\tcontainer: 'body', //centers wait inside this container\n\tpreventClicks: true, //prevents users from clicking on anything inside the container,\n\ttheme: 'dark' //'light' and 'none' also supported\n\tonShow : function() { ... } // Function fired upon shown\n\tonHide : function() { ... } // Function fired upon hide\n\tpprogressSupport : false // Gives support for pprogress\n});\n\n//stuff happens\n\n$('#element').wait('hide');\n```\n\n###Other Methods\n\n#### Set Text\n\nWill change the text while is being shown.\n\n`$('#element').wait('setText', 'Disappearing on 5 seconds...')`\n\n### Pprogress support\n\nIf the [pprogress](https://github.com/firstandthird/pprogress) plugin is in the page and you pass the option `pprogressSupport` as `true`, wait will take the plugin and create a basic template inside of the modal so you can do fancy timers for wait.\n\nThe wait plugin offers a wrapper around pprogress so if you call\n\n```javascript\n$('#element').wait('pprogress','tick', 0.20);\n```\n\nWill call the method thick on the inner pprogress instance passing the value `0.20`. Please, see [pprogress](https://github.com/firstandthird/pprogress) docs in order to learn more about this plugin.\n\nWhile using pprogress, wait will show pprogress on modal show, and it will hide itself when pprogress completes.\n\n##Development\n\n###Requirements\n\n- node and npm\n- bower `npm install -g bower`\n- grunt `npm install -g grunt-cli`\n\n###Setup\n\n- `npm install`\n- `bower install`\n\n###Run\n\n`grunt dev`\n\n###Tests\n\n`grunt mocha`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fwait","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstandthird%2Fwait","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fwait/lists"}