{"id":19494866,"url":"https://github.com/trykickoff/kickoff-code-toggle","last_synced_at":"2026-06-23T08:32:09.557Z","repository":{"id":145886422,"uuid":"53945995","full_name":"TryKickoff/kickoff-code-toggle","owner":"TryKickoff","description":null,"archived":false,"fork":false,"pushed_at":"2016-03-15T13:18:40.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-19T05:42:22.042Z","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/TryKickoff.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}},"created_at":"2016-03-15T13:17:39.000Z","updated_at":"2016-03-15T13:18:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"bfa979fe-6013-463a-86c6-91985c220a02","html_url":"https://github.com/TryKickoff/kickoff-code-toggle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TryKickoff/kickoff-code-toggle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TryKickoff%2Fkickoff-code-toggle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TryKickoff%2Fkickoff-code-toggle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TryKickoff%2Fkickoff-code-toggle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TryKickoff%2Fkickoff-code-toggle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TryKickoff","download_url":"https://codeload.github.com/TryKickoff/kickoff-code-toggle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TryKickoff%2Fkickoff-code-toggle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34682625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"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-10T21:34:18.185Z","updated_at":"2026-06-23T08:32:09.535Z","avatar_url":"https://github.com/TryKickoff.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kickoff-code-toggle\nA very basic way to toggle code examples. Used on the [trykickoff.com](http://trykickoff.com) site\n\nAll classnames are configurable in the options when kickoff-code-toggle is initialised.\n\n## Installation\n\n```\nnpm install --save kickoff-code-toggle\n```\n\n## Usage:\n\n### Javascript\n```js\nvar toggleCode = require('kickoff-code-toggle');\n\ntoggleCode({\n\theadings: '.sg-demoHeading',\n\tshowCodeEl: 'sg-demoHeading-showCodeBtn',\n\tshowCodeBtnText: '❮/❯',\n\tcodeContainerEl: 'show-code',\n\tactiveClass: 'is-active',\n});\n```\n\n### HTML markup\n```html\n\u003ch2 class=\"sg-sectionHeading sg-demoHeading\"\u003eDemo 1\u003c/h2\u003e\n\u003cdiv class=\"sg-demo\"\u003e\n\t\n\t\u003ch1\u003eThis is a piece of demo code\u003c/h1\u003e\n\n\t\u003cdiv class=\"sg-demo-code\"\u003e\n\n\u003cpre\u003e\u003ch1\u003eThis is a piece of demo code\u003c/h1\u003e\u003c/pre\u003e\n\n\t\u003c/div\u003e\n\u003c/div\u003e\n```\n\n### CSS\n```css\n.sg-demo-code {\n\tdisplay: none;\n}\n\n.sg-demo.show-code .sg-demo-code {\n\tdisplay: block;\n}\n```\n\n## Build the code\nBuild relies on [Browserify](http://browserify.org)\n```sh\nnpm run build\n```\n\n## Test the code\n```sh\nnpm test\n```\nThen open your browser at http://localhost:8000\n\n---\n\nMade by [Z\u0026er :zap:](https://github.com/mrmartineau/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrykickoff%2Fkickoff-code-toggle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrykickoff%2Fkickoff-code-toggle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrykickoff%2Fkickoff-code-toggle/lists"}