{"id":15393215,"url":"https://github.com/foxted/proximity","last_synced_at":"2025-09-16T16:22:10.222Z","repository":{"id":5570805,"uuid":"6776373","full_name":"foxted/Proximity","owner":"foxted","description":"Proximity | Boxes fooling around","archived":false,"fork":false,"pushed_at":"2014-02-21T08:08:11.000Z","size":240,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-06T15:52:01.753Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://foxted.github.io/Proximity/","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/foxted.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-11-20T10:52:19.000Z","updated_at":"2014-09-24T08:47:59.000Z","dependencies_parsed_at":"2022-07-07T03:31:24.116Z","dependency_job_id":null,"html_url":"https://github.com/foxted/Proximity","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/foxted/Proximity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxted%2FProximity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxted%2FProximity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxted%2FProximity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxted%2FProximity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foxted","download_url":"https://codeload.github.com/foxted/Proximity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxted%2FProximity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275448194,"owners_count":25466566,"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","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"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-10-01T15:18:16.894Z","updated_at":"2025-09-16T16:22:10.202Z","avatar_url":"https://github.com/foxted.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Proximity icon](http://foxted.github.io/Proximity/images/logo.jpg)\n\n## What is Proximity.js ?\n\n**Proximity.js** is a new *jQuery Plugin* that allows you to create a nice *grid* effect.\n\n## How to\n\n### Create a HTML list \n\nCreate your web page, with a `\u003cul\u003e` list in it, like this : \n\n\t\u003cul id=\"proximity\"\u003e\n\t\t\u003cli\u003e\n\t\t\t\u003cp\u003e1\u003c/p\u003e\n\t\t\u003c/li\u003e\n\t\t\u003cli\u003e\n\t\t\t\u003cp\u003e2\u003c/p\u003e\n\t\t\u003c/li\u003e\n\t\t\u003cli\u003e\n\t\t\t\u003cp\u003e...\u003c/p\u003e\n\t\t\u003c/li\u003e\n\t\u003c/ul\u003e\n\nMake sure you CSS transform it as a grid.\n\n### Create CSS Stylesheet\n\nYour CSS __must__ transform your list into a grid. Here is an example : \n\n\thtml, body{\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\t#proximity{\n\t\tlist-style: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\t#proximity li{\n\t\twidth: 9.85%;\n\t\theight: 25%;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\tdisplay: inline-block;\n\t\tfloat: left;\n\t\tbackground-color: #999999;\n\t\tborder: 1px solid #333;\n\t\tposition: relative;\n\t}\n\t#proximity li p{\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tmargin: 0;\n\t\tvertical-align: middle;\n\t\ttext-align: center;\n\t\tfont-size: 3em;\n\t\tdisplay:block;\n\t\tposition:absolute;\n\t\ttop: 50%;\n\t\theight: 9px;\n\t\tmargin-top: -0.6em;\n\t}\n\n### Add some behavior\n\nYou must create different states for your boxes. Here is the list of states available : \n\nState          | Description\n:------        |:----\n_current_      | Current is the state for the _current_ box.\n_topLeft_      | The box directly on the top left corner of the _current_ box\n_topCenter_    | The box directly above the _current_ box\n_topRight_     | The box directly on the top right corner of the _current_ box\n_bottomLeft_   | The box directly on the bottom left corner of the _current_ box\n_bottomCenter_ | The box directly below the _current_ box\n_bottomRight_  | The box directly on the bottom right corner of the _current_ box\n_left_         | Left box beside the _current_ box\n_right_        | Right box beside the _current_ box\n\n### Initialization\n\nInclude __jQuery__ \u0026 __Proximity.js__ into your webpage,\n\n\t\u003cscript type=\"text/javascript\" src=\"js/jquery.min.js\"\u003e\u003c/script\u003e\n\t\u003cscript type=\"text/javascript\" src=\"js/jquery.proximity.js\"\u003e\u003c/script\u003e\n\t\nAnd initialize the grid,\n\n\t\u003cscript type=\"text/javascript\"\u003e\n\t\t$(document).ready(function(){\n\t\t\t$('#proximity li').proximity(10);\n\t\t});\n\t\u003c/script\u003e\n\nYou're done ;)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxted%2Fproximity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxted%2Fproximity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxted%2Fproximity/lists"}