{"id":44081961,"url":"https://github.com/codefog/restables","last_synced_at":"2026-02-08T09:21:03.059Z","repository":{"id":57354962,"uuid":"72285772","full_name":"codefog/restables","owner":"codefog","description":"jQuery plugin for the responsive tables","archived":false,"fork":false,"pushed_at":"2020-07-10T08:53:32.000Z","size":20,"stargazers_count":50,"open_issues_count":0,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-09-30T11:36:13.694Z","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/codefog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"codefog"}},"created_at":"2016-10-29T13:15:07.000Z","updated_at":"2025-05-13T17:27:38.000Z","dependencies_parsed_at":"2022-09-26T16:31:37.137Z","dependency_job_id":null,"html_url":"https://github.com/codefog/restables","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/codefog/restables","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefog%2Frestables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefog%2Frestables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefog%2Frestables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefog%2Frestables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codefog","download_url":"https://codeload.github.com/codefog/restables/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefog%2Frestables/sbom","scorecard":{"id":296297,"data":{"date":"2025-08-11","repo":{"name":"github.com/codefog/restables","commit":"86974eef9d09368cf089a37cd937901faa5616ee"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T19:35:38.343Z","repository_id":57354962,"created_at":"2025-08-17T19:35:38.343Z","updated_at":"2025-08-17T19:35:38.343Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29226199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T09:15:18.648Z","status":"ssl_error","status_checked_at":"2026-02-08T09:14:33.745Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2026-02-08T09:21:02.367Z","updated_at":"2026-02-08T09:21:03.050Z","avatar_url":"https://github.com/codefog.png","language":"JavaScript","funding_links":["https://github.com/sponsors/codefog"],"categories":[],"sub_categories":[],"readme":"resTables - jQuery plugin for responsive tables\n===============================================\n\nThe resTables jQuery plugin allows you to easily make your table responsive. It has been created based on the\n[stacktable.js](https://johnpolacek.github.io/stacktable.js/) concept by John Polacek.\n\nView demo at http://codefog.github.io/restables/\n\nInstallation\n------------\n\nYou can download the plugin regular way or use the npm to install it:\n \n```\nnpm install restables --save \n```\n\nUsage\n-----\n\nThe initialization of the plugin is simple:\n\n```js\n$(document).ready(function () {\n    $('table').resTables();\n});\n```\n\nMake sure to add the necessary CSS classes to display and hide both tables under certain window sizes:\n\n```css\ntable.restables-clone {\n    display: none;\n}\n\n@media (max-width: 991px) {\n    table.restables-origin {\n        display: none;\n    }\n    \n    table.restables-clone {\n        display: table;\n    }\n}\n```\n\nHow it works\n------------\n\nWhen the script is initialized it will create a sibling table but with 2-column layout only. Consider the following\ntable structure:\n\n```html\n\u003ctable\u003e\n    \u003cthead\u003e\n        \u003ctr\u003e\n            \u003cth\u003eHeader 1\u003c/th\u003e\n            \u003cth\u003eHeader 2\u003c/th\u003e\n            \u003cth\u003eHeader 3\u003c/th\u003e\n        \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eValue A1\u003c/td\u003e\n            \u003ctd\u003eValue A2\u003c/td\u003e\n            \u003ctd\u003eValue A3\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eValue B1\u003c/td\u003e\n            \u003ctd\u003eValue B2\u003c/td\u003e\n            \u003ctd\u003eValue B3\u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n```\n\nBased on the above the plugin will create a new table with this structure: \n \n```html\n\u003ctable\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eHeader 1\u003c/td\u003e\n            \u003ctd\u003eValue A1\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eHeader 2\u003c/td\u003e\n            \u003ctd\u003eValue A2\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eHeader 3\u003c/td\u003e\n            \u003ctd\u003eValue A3\u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eHeader 1\u003c/td\u003e\n            \u003ctd\u003eValue B1\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eHeader 2\u003c/td\u003e\n            \u003ctd\u003eValue B2\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eHeader 3\u003c/td\u003e\n            \u003ctd\u003eValue B3\u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n```\n\nOptions\n-------\n\n### merge\n\nDefault value: ```{}```\n\nAn object containing columns that will be merged with other columns. In the below example columns with indexes\n$2 and $3 will be merged with column $1 and column $6 will be merged with column $5.\n\n```js\n// Example\n$('#my-table').resTables({\n    merge: {\n        1: [2, 3], \n        5: [6]\n    }\n});\n```\n\n### move\n\nDefault value: ```{}```\n\nAn object containing columns that will be moved. In the below example column with index $1 will be placed at the top\nof the new table (index $0) and column $6 as the second row with index $1.\n\n```js\n// Example\n$('#my-table').resTables({\n    move: {\n        1: 0,\n        6: 1\n    }\n});\n```\n\n### skip\n\nDefault value: ```[]```\n\nAn array of columns that should be skipped in the cloned table. In the below example columns with indexes $3 and $5\nwill not be present in the new table. \n\n```js\n// Example\n$('#my-table').resTables({\n    skip: [3, 5]\n});\n```\n\n### span\n\nDefault value: ```[]```\n\nAn array of columns that should be spanned - the ```colspan=\"2\"``` attribute will be added. In the below example\ncolumns with indexes $2 and $4 will have the ```colspan=\"2\"``` attribute added and will appear as one cell.\n\n```js\n// Example\n$('#my-table').resTables({\n    span: [2, 4]\n});\n```\n\n### cssClassOrigin\n\nDefault value: ```restables-origin```\n \nThe CSS class that will be added to origin table.\n\n```js\n// Example\n$('#my-table').resTables({\n    cssClassOrigin: 'my-origin-table'\n});\n```\n\n### cssClassClone\n\nDefault value: ```restables-clone```\n\nThe CSS class that will be added to cloned table. \n\n```js\n// Example\n$('#my-table').resTables({\n    cssClassClone: 'my-cloned-table'\n});\n```\n\n### uniqueAttributes\n\nDefault value: ```['id', 'for']```\n\nThe list of attributes that should remain unique. Each cloned element containing those attributes will have them\nupdated by adding the suffix (see ```attributeSuffix``` below).\n\n```js\n// Example\n$('#my-table').resTables({\n    uniqueAttributes: ['id', 'for', 'data-my-id']\n});\n```\n\n### attributeSuffix\n\nDefault value: ```'-restables-clone'```\n\nThe suffix that will be added to the unique attributes in the cloned elements.\n\n```js\n// Example\n$('#my-table').resTables({\n    attributeSuffix: '-my-suffix'\n});\n```\n\n### cloneCallback\n\nDefault value: ```null```\n\nThe callback that is triggered just before the cloned table is inserted into DOM.\n\n```js\n// Example\n$('#my-table').resTables({\n    cloneCallback: function (clone) {\n        clone.find('.checkbox').addClass('checkbox-mobile');\n    }\n});\n```\n\n### preserveCellClasses\n\nDefault value: ```true```\n\nIf true the CSS classes of cells will be preserved in the cloned table element.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefog%2Frestables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodefog%2Frestables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefog%2Frestables/lists"}