{"id":45777971,"url":"https://github.com/towardstudio/bluegg-toggle","last_synced_at":"2026-02-26T10:45:48.244Z","repository":{"id":57159720,"uuid":"66657447","full_name":"towardstudio/bluegg-toggle","owner":"towardstudio","description":null,"archived":false,"fork":false,"pushed_at":"2016-08-30T08:44:38.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-09T02:37:21.908Z","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/towardstudio.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":"2016-08-26T15:13:36.000Z","updated_at":"2016-08-26T15:17:38.000Z","dependencies_parsed_at":"2022-09-08T13:32:08.898Z","dependency_job_id":null,"html_url":"https://github.com/towardstudio/bluegg-toggle","commit_stats":null,"previous_names":["bluegg/bluegg-toggle"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/towardstudio/bluegg-toggle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/towardstudio%2Fbluegg-toggle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/towardstudio%2Fbluegg-toggle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/towardstudio%2Fbluegg-toggle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/towardstudio%2Fbluegg-toggle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/towardstudio","download_url":"https://codeload.github.com/towardstudio/bluegg-toggle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/towardstudio%2Fbluegg-toggle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29856746,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T08:51:08.701Z","status":"ssl_error","status_checked_at":"2026-02-26T08:50:19.607Z","response_time":89,"last_error":"SSL_read: 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-26T10:45:43.953Z","updated_at":"2026-02-26T10:45:48.235Z","avatar_url":"https://github.com/towardstudio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bluegg Toggle\nDeclarative toggle using data attributes\n\n## Wut?\nThe JS simply adds a class of ```is-toggled``` to a specific target(s).\n\nYour target is specified in a data attribute (```data-toggle-target=\"my-thing\"```). The target then needs to have a ```data-toggle-name=\"my-thing\"``` attribute. The target can be a single target or comma separated list (e.g. ```data-toggle-target=\"my-thing,my-other-thing\"```). You can optionally specify a ```data-target-action=\"on\"``` (on or off) that can be used to only allow the control to add/remove the ```is-toggled``` class.  \n\n## Huh?\nUsage in JS:\n```js\nvar toggle = require('bluegg-toggle');\n\ntoggle();\n```\n\n[See here for style and markup example](http://codepen.io/matthewbeta/pen/qNzZRO?editors=1010)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftowardstudio%2Fbluegg-toggle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftowardstudio%2Fbluegg-toggle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftowardstudio%2Fbluegg-toggle/lists"}