{"id":16410252,"url":"https://github.com/danasilver/twochainzify","last_synced_at":"2025-10-05T13:38:30.291Z","repository":{"id":13503433,"uuid":"16194277","full_name":"danasilver/twochainzify","owner":"danasilver","description":"Add 2 Chainz to anything, anywhere. Tru.","archived":false,"fork":false,"pushed_at":"2016-05-14T23:46:19.000Z","size":1943,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T01:07:29.319Z","etag":null,"topics":["twochainz"],"latest_commit_sha":null,"homepage":"danasilver.github.io/twochainzify","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/danasilver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-24T03:47:51.000Z","updated_at":"2024-12-17T02:05:40.000Z","dependencies_parsed_at":"2022-08-30T20:00:53.754Z","dependency_job_id":null,"html_url":"https://github.com/danasilver/twochainzify","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danasilver%2Ftwochainzify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danasilver%2Ftwochainzify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danasilver%2Ftwochainzify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danasilver%2Ftwochainzify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danasilver","download_url":"https://codeload.github.com/danasilver/twochainzify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240405384,"owners_count":19796181,"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","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":["twochainz"],"created_at":"2024-10-11T06:23:38.038Z","updated_at":"2025-10-05T13:38:25.257Z","avatar_url":"https://github.com/danasilver.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## twochainzify\n\n2 Chainz raps some crazy lyrics. So clearly you want them everywhere.\n\n### What it does\n\ntwochainzify can add 2 Chainz himself rapping on any element of your webpage.  You can configure him to rap on any DOM event including scrolling, clicks, mouseovers, etc.  You can bind him to specific elements and set how often you want him to rap.  Using base64 encoded audio, twochainzify is 100% contained in a single file.\n\n### Usage\n\nCall twochainzify with an optional selector and optional options:\n\n```\ntwochainzify([selector] [, options]);\n```\n\n\n### Options\n\n - `'on'` (string): Defaults to `'scroll'` if selector is `window` or `null`, else `'click'`\n - `'interval'` (int) Defaults to `400`(px) for scroll, `10`(triggers) for others\n\n__Interval__: For scrolling this is the number of scrolled pixels necessary to trigger 2 Chainz. For all other events this is the number of times the event is triggered.  Set to `1` to call 2 Chainz every time.\n\n### Examples\n\nMake 2 Chainz rap every 400 pixels scrolled:\n```\ntwochainzify();\n```\n\nEvery 500 pixels scrolled:\n```\ntwochainzify({'interval': 500});\n```\n\nEvery time an `\u003ca\u003e` tag is moused over:\n```\ntwochainzify('a', {'on': 'mouseover', 'interval': 1});\n```\n\nEvery 5 times a `\u003cdiv class=\"2chainz\"\u003e` is clicked:\n```\ntwochainzify('.2chainz', {'on': 'click', 'interval': 5});\n```\n\n### Development\n\nClone the repo and `npm install` to get the dev dependencies.\n\n`grunt` builds the completed dist/twochainzify.js.\n\n`grunt sounds` executes script/base64encode.js, which converts all the MP3 and OGG files in assets to base64 and writes them into src/sounds.js.\n\n`grunt dist` builds all the files in dist.\n\nIssues and pull requests are welcome.  Follow the existing syntax and run `grunt dist` when you're done.\n\n### License\n\ntwochainzify is released under the MIT License. Copyright (c) 2014 Dana Silver.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanasilver%2Ftwochainzify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanasilver%2Ftwochainzify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanasilver%2Ftwochainzify/lists"}