{"id":15025190,"url":"https://github.com/missing-code/jquery-cookiebar","last_synced_at":"2026-02-23T21:33:37.814Z","repository":{"id":57282041,"uuid":"50026842","full_name":"missing-code/jquery-cookiebar","owner":"missing-code","description":"jQuery CookieBar Plugin","archived":false,"fork":false,"pushed_at":"2016-07-21T13:15:07.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T13:12:47.999Z","etag":null,"topics":["cookiebar","css","jquery","jquery-cookiebar"],"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/missing-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-01-20T11:51:12.000Z","updated_at":"2020-01-29T09:58:47.000Z","dependencies_parsed_at":"2022-09-13T09:22:57.200Z","dependency_job_id":null,"html_url":"https://github.com/missing-code/jquery-cookiebar","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/missing-code/jquery-cookiebar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missing-code%2Fjquery-cookiebar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missing-code%2Fjquery-cookiebar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missing-code%2Fjquery-cookiebar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missing-code%2Fjquery-cookiebar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/missing-code","download_url":"https://codeload.github.com/missing-code/jquery-cookiebar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missing-code%2Fjquery-cookiebar/sbom","scorecard":{"id":649809,"data":{"date":"2025-08-11","repo":{"name":"github.com/missing-code/jquery-cookiebar","commit":"e6069f2abca4a34e71f3c9248c7b8e68b861a5d6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"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":1,"reason":"Found 2/13 approved changesets -- score normalized to 1","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":"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":"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":"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T13:13:09.384Z","repository_id":57282041,"created_at":"2025-08-21T13:13:09.384Z","updated_at":"2025-08-21T13:13:09.384Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272793017,"owners_count":24993830,"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-08-30T02:00:09.474Z","response_time":77,"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":["cookiebar","css","jquery","jquery-cookiebar"],"created_at":"2024-09-24T20:01:41.678Z","updated_at":"2026-02-23T21:33:37.757Z","avatar_url":"https://github.com/missing-code.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jQuery CookieBar Plugin\n\nOn the 26th of May 2012, the EU government decided it was necessary for every website available inside the EU to have to give visitors the option to allow or disable cookies. While most people saw this as unnecessary and a disruption to collecting analytical data, etc, the EU law was passed. One of the EU's steps towards ruining the internet.\n\nBut rather than simply refuse to comply and potentially face consequences in the future, a lot of website owners and developers took the step of implementing code on their websites to give users the option to enable or disable cookies.\n\n## Introduction\n\nThe Cookie Bar plugin creates a small bar at the top or bottom of the website with a short message about cookies and accept, decline, and privacy policy buttons.\n\nOnce a user has made the decision to either accept or decline, the Cookie Bar slides up, then disappears.\n\nThe Cookie Bar can be set up to work in a variety of ways. By default, it uses assumed consent. This means that when a user visits the website, cookies can be set as normal with no interruption. The Cookie Bar is still displayed to provide the user with options for cookies.\n\nIt can also be set up to assume refusal. So when a user visits the website, until they press the accept button on the Cookie Bar, no cookies should be set.\n\nYou can specify which buttons show on the Cookie Bar. The default is to show the accept and privacy policy buttons and no decline button. This way, assumed consent is used, and the user cannot opt out of cookies. If the user is unhappy about the use of cookies, they can simply leave the website.\n\nThe Cookie Bar is also very easy to style. There are just 9 lines of CSS code in total. Changing the heights, widths, background colours, etc. is very quick and easy meaning it can fit in with the website design and colour scheme.\n\n## Installing\n\nTo start, download the zip file containing the Cookie Bar plugin, a CSS file and example HTML document. Upload the javascript and CSS files to your website and add them between your head tags. Make sure to download the latest version of jQuery if your website does not already include it.\n\nYou will also need to initialise the Cookie Bar, which can be done with the following code (Make sure if you already use $(document).ready() that you only copy what you need of below so you don't have too many $(document).ready()'s).\n\n\t$(document).ready(function(){\n\t  $.cookieBar();\n\t});\n\nRefresh your website, and the Cookie Bar should appear!\n\nA basic setup may look like the following:\n\n\t\u003cscript type=\"text/javascript\" src=\"/your-js-folder/jquery.js\"\u003e\u003c/script\u003e \n\t\u003cscript type=\"text/javascript\" src=\"/your-js-folder/jquery.cookiebar.js\"\u003e\u003c/script\u003e \n\t\u003cscript type=\"text/javascript\"\u003e \n\t  $(document).ready(function(){\n\t     $.cookieBar();\n\t  });\n\t\u003c/script\u003e\n\n**If the cookiebar does not show, check for any javascript errors.**\n\n**If the cookiebar continues to show after accepting/declining, make sure to remove the option \"forceShow\" from your code, or set it to \"false\".**\n\n## Disabling Google Analytics and other cookies\n\nIf a user chooses to disable cookies (If you give them that option), you need to make sure that scripts such as Google Analytics need to be disabled.\n\nThis can be done by wrapping the code in a simple if statement.\n\n\tif(jQuery.cookieBar('cookies')){\n\t  //Google Analytics or other code here\n\t}\n\t\n## Options\n\nThere are a number of options allowing you to customise how the plugin works:\n\n\tmessage: 'We use cookies to track usage and preferences',\n\tacceptButton: true,\n\tacceptText: 'I Understand',\n\tacceptFunction: null,\n\tdeclineButton: false,\n\tdeclineText: 'Disable Cookies',\n\tdeclineFunction: null,\n\tpolicyButton: true,\n\tpolicyText: 'Privacy Policy',\n\tpolicyURL: '/privacy-policy/',\n\tautoEnable: true,\n\tacceptOnContinue: false,\n\tacceptOnScroll: false,\n\tacceptAnyClick: false,\n\texpireDays: 365,\n\trenewOnVisit: false,\n\tforceShow: false,\n\teffect: 'slide',\n\telement: 'body',\n\tappend: false,\n\tfixed: false,\n\tbottom: false,\n\tzindex: '',\n\tdomain: 'www.example.com',\n\treferrer: 'www.example.com'","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmissing-code%2Fjquery-cookiebar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmissing-code%2Fjquery-cookiebar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmissing-code%2Fjquery-cookiebar/lists"}