{"id":13760419,"url":"https://github.com/gristmill/jquery-popbox","last_synced_at":"2025-05-10T10:32:45.241Z","repository":{"id":3103915,"uuid":"4129703","full_name":"gristmill/jquery-popbox","owner":"gristmill","description":"jQuery PopBox UI Element","archived":false,"fork":false,"pushed_at":"2018-10-01T18:26:07.000Z","size":284,"stargazers_count":420,"open_issues_count":15,"forks_count":78,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-08-03T13:04:51.389Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://gristmill.github.com/jquery-popbox/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gristmill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-24T21:01:23.000Z","updated_at":"2024-04-19T05:20:33.000Z","dependencies_parsed_at":"2022-09-09T02:22:17.476Z","dependency_job_id":null,"html_url":"https://github.com/gristmill/jquery-popbox","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/gristmill%2Fjquery-popbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gristmill%2Fjquery-popbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gristmill%2Fjquery-popbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gristmill%2Fjquery-popbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gristmill","download_url":"https://codeload.github.com/gristmill/jquery-popbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224949814,"owners_count":17397239,"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-03T13:01:09.877Z","updated_at":"2024-11-16T17:31:07.182Z","avatar_url":"https://github.com/gristmill.png","language":"JavaScript","funding_links":[],"categories":["Modals and Popups","Modals and Popups [🔝](#readme)","UI","模态框和弹出框"],"sub_categories":["Other","其它"],"readme":"# jQuery PopBox\n\njQuery PopBox is a simple balloon UI element inspired by 37Signals Highrise CRM.\n\nSee it in action here: http://gristmill.github.com/jquery-popbox/example.html\n\n# Usage\njQuery PopBox requires a specific HTML structure in order to work. There is also a small stylesheet that can be used. jQuery is a dependency.\n\n```html\n\u003chead\u003e\n  \u003cscript type='text/javascript' charset='utf-8' src='jquery.js'\u003e\u003c/script\u003e\n  \u003cscript type='text/javascript' charset='utf-8' src='popbox.js'\u003e\u003c/script\u003e\n  \u003clink rel='stylesheet' href='popbox.css' type='text/css'\u003e\n\u003c/head\u003e\n```\n\nThe HTML structure looks like this.\n```html\n\u003cdiv class='popbox'\u003e\n  \u003ca class='open' href='#'\u003eClick Here!\u003c/a\u003e\n\n  \u003cdiv class='collapse'\u003e\n    \u003cdiv class='box'\u003e\n      \u003cdiv class='arrow'\u003e\u003c/div\u003e\n      \u003cdiv class='arrow-border'\u003e\u003c/div\u003e\n\n      Content in PopBox goes here :)\n\n      \u003ca href=\"#\" class=\"close\"\u003eclose\u003c/a\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\nInvoke the plugin by calling it on a selector like normal.\n\n```html\n\u003cscript type='text/javascript'\u003e\n   $(document).ready(function(){\n     $('.popbox').popbox();\n   });\n\u003c/script\u003e\n```\n\nIf there are any CSS class name conflicts, they can be overridden.\n\n```html\n\u003cscript type='text/javascript'\u003e\n   $(document).ready(function(){\n     $('.popbox').popbox({\n       'open'          : '.open',\n       'box'           : '.box',\n       'arrow'         : '.arrow',\n       'arrow_border'  : '.arrow_border',\n       'close'         : '.close'\n      });\n   });\n\u003c/script\u003e\n```\n\n## Screenshot\n![jQuery PopBox Screenshot](https://github.com/gristmill/jquery-popbox/raw/master/screenshot.png)\n\n## Credits\n\njQuery PopBox developed by [Sean Behan](http://twitter.com/_sbehan) at [Gristmill.io](http://gristmill.io)\n\nIt is inspired by the balloon UI element found in 37Signals Highrise CRM.\n\n## License\n\nMIT license:\n\nhttp://www.opensource.org/licenses/MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgristmill%2Fjquery-popbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgristmill%2Fjquery-popbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgristmill%2Fjquery-popbox/lists"}