{"id":18096668,"url":"https://github.com/bredele/jquery-filter","last_synced_at":"2025-04-06T03:26:50.655Z","repository":{"id":149574385,"uuid":"13624915","full_name":"bredele/jquery-filter","owner":"bredele","description":"Filter your document and create client-side search engine","archived":false,"fork":false,"pushed_at":"2013-12-31T01:46:46.000Z","size":112,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-12T09:49:57.175Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bredele.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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":"2013-10-16T16:44:36.000Z","updated_at":"2020-05-19T02:35:50.000Z","dependencies_parsed_at":"2023-04-01T03:44:05.650Z","dependency_job_id":null,"html_url":"https://github.com/bredele/jquery-filter","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/bredele%2Fjquery-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredele%2Fjquery-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredele%2Fjquery-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredele%2Fjquery-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bredele","download_url":"https://codeload.github.com/bredele/jquery-filter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430070,"owners_count":20937798,"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-31T19:15:01.400Z","updated_at":"2025-04-06T03:26:50.629Z","avatar_url":"https://github.com/bredele.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jquery-filter\n\n  CSS engine to filter your dom inspired by this [article](http://redotheweb.com/2013/05/15/client-side-full-text-search-in-css.html)\n\n## Usage\n\nFirst, include the jQuery and the filter plugin:\n\n```html\n\u003cscript src=\"http://code.jquery.com/jquery-1.10.1.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"jquery.filter.js\"\u003e\u003c/script\u003e\n```\n\nThen create your filter as following:\n\n\n```html\n\u003cdiv class=\"filter\"\u003e\n\t\u003cdiv class=\"filter-item\" data-filter=\"oliviercalgary\"\u003eOlivier is in Calgary\u003c/div\u003e\n\t\u003cdiv class=\"filter-item\" data-filter=\"brunoparis\"\u003eBruno is in Paris\u003c/div\u003e\n\t\u003cdiv class=\"filter-item\" data-filter=\"amylethbridge\"\u003eAmy is in Lethbridge\u003c/div\u003e\n\u003c/div\u003e \n``` \n \u003e don't forget to add the class filter-item on any searchable element and to add the tags into a the data-filter attribute\n\nand intialize your plugin:\n\n```js\nvar filter = $('.filter').filter();\n```\n\n## API\n\n\n### run(value [,className])\n\n  Perform filtering. `className` is optional\n\n```js\nstack.run('olivier');\n```\n\n## Events\n\n### filter\n\n```js\n$('.filter').trigger('filter', 'olivier');\n```\n\n## Options\n\n### Namespace\n\nChange the data attribute name (default is filter).\n\n```js\nvar filter = $('.filter').filter({\n\tnamespace:'obama'\n});\n```\n\n\n## Todo\n\n  - create tags\n  - make it work on ie8\n\n## Component\n\nYou can install a component version with [component(1)](http://component.io):\n\n    $ component install bredele/search\n\n## License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbredele%2Fjquery-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbredele%2Fjquery-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbredele%2Fjquery-filter/lists"}