{"id":21278050,"url":"https://github.com/b13/js-cookiebanner","last_synced_at":"2025-09-11T13:43:21.816Z","repository":{"id":150237745,"uuid":"98420889","full_name":"b13/js-cookiebanner","owner":"b13","description":null,"archived":false,"fork":false,"pushed_at":"2017-07-26T12:36:39.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-08-28T22:58:14.712Z","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/b13.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-07-26T12:35:19.000Z","updated_at":"2017-07-26T12:36:14.000Z","dependencies_parsed_at":"2023-04-18T04:42:58.500Z","dependency_job_id":null,"html_url":"https://github.com/b13/js-cookiebanner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/b13/js-cookiebanner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fjs-cookiebanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fjs-cookiebanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fjs-cookiebanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fjs-cookiebanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b13","download_url":"https://codeload.github.com/b13/js-cookiebanner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fjs-cookiebanner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274648073,"owners_count":25324294,"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-11T02:00:13.660Z","response_time":74,"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-11-21T10:09:13.568Z","updated_at":"2025-09-11T13:43:21.802Z","avatar_url":"https://github.com/b13.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"js-cookieBanner\n===================\n\nLightweight javascript cookie banner plugin\n\n### Default use\n\n\twindow.cookieBanner(options);\n\t\n### Use as AMD module\n\trequire(['js-cookieBanner'], function(cookieBanner) {\n\t\tnew cookieBanner(options);\n\t});\n\t\n### Default options\n\t\n\toptions = {\n\t\t\t// html cookie banner container\n\t\thtmlContainer: '\u003cdiv id=\"bJS_cookieBanner\" class=\"b_cookieBanner\"\u003e' +\n\t\t\t\t\t   '\u003cdiv class=\"c_contentContainer\"\u003e' +\n\t\t\t\t\t   '\u003cdiv id=\"bJS_cookieBannerContent\" class=\"c_content\"\u003e' +\n\t\t\t\t\t   '\u003c/div\u003e' +\n\t\t\t\t\t   '\u003c/div\u003e' +\n\t\t\t\t\t   '\u003c/div\u003e'\n\n\t\t\t// html cookie banner content\n\t\t\t// will append to #bJS_cookieBannerContent\n\t\t, htmlContent: '\u003cp\u003eWe use cookies on this site to enhance your user experience\u003c/p\u003e' +\n\t\t\t\t\t   '\u003ca href=\"#\"\u003emore infos\u003c/a\u003e\u003cbutton class=\"bJS_acceptCookieBanner\"\u003eaccept\u003c/button\u003e'\n\n\t\t\t// cookie name\n\t\t, cookieName: \"cookieBanner\"\n\n\t\t\t// cookie timeout: 13 months in milliseconds\n\t\t, cookieTimeout: 33696000000\n\n\t\t\t// banner position\n\t\t\t// can be \"bottom\" || \"top\"\t\n\t\t, position: \"bottom\"\n\n\t\t\t// deploy to show cookie banner\n\t\t, delay: 600\n\n\t\t\t// selectors\n\t\t, selectors: {\n\t\t\tcookieBanner         : '#bJS_cookieBanner'\n\t\t\t, acceptCookieBanner : '.bJS_acceptCookieBanner'\n\t\t}\n\t\t\t// class names\n\t\t, classNames: {\n\t\t\tpositionTop      : \"b_cookieBannerPosition-top\"\n\t\t\t, positionBottom : \"b_cookieBannerPosition-bottom\"\n\t\t}\n\t\t\t// states\n\t\t, states: {\n\t\t\tactive : \"b_cookieBannerActive\"\n\t\t}\n\t}","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb13%2Fjs-cookiebanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb13%2Fjs-cookiebanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb13%2Fjs-cookiebanner/lists"}