{"id":18177360,"url":"https://github.com/chesleybrown/randomclass-directive","last_synced_at":"2025-06-26T01:36:41.482Z","repository":{"id":14099529,"uuid":"16803892","full_name":"chesleybrown/randomclass-directive","owner":"chesleybrown","description":"Very simple directive for randomizing a class on an element.","archived":false,"fork":false,"pushed_at":"2014-02-13T13:56:25.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-07T12:46:45.877Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chesleybrown.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":"2014-02-13T13:38:31.000Z","updated_at":"2014-07-19T14:28:12.000Z","dependencies_parsed_at":"2022-09-21T05:31:27.859Z","dependency_job_id":null,"html_url":"https://github.com/chesleybrown/randomclass-directive","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/chesleybrown/randomclass-directive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesleybrown%2Frandomclass-directive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesleybrown%2Frandomclass-directive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesleybrown%2Frandomclass-directive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesleybrown%2Frandomclass-directive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chesleybrown","download_url":"https://codeload.github.com/chesleybrown/randomclass-directive/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesleybrown%2Frandomclass-directive/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261983519,"owners_count":23240217,"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":[],"created_at":"2024-11-02T17:12:59.263Z","updated_at":"2025-06-26T01:36:41.465Z","avatar_url":"https://github.com/chesleybrown.png","language":"JavaScript","readme":"randomclass-directive\n=====================\n\nVery simple directive for randomizing a class on an element.\n\n#### Install with Bower:\n\n```\nbower install randomclass-directive\n```\n\n#### Include the directive in your Angular module:\n\n```\nvar myApp = angular.module('myApp', ['randomclass-directive']);\n```\n\n## Usage\n\nUse the `random-class` directive on the element you want to apply a random class to. Also set the `classPrefix` as the prefix of your class. A random number will be appended to the class based on a range from the `min` and `max` you set.\n\n```html\n\u003cdiv random-class class-prefix=\"example\" min=\"1\" max=\"10\"\u003e\u003c/div\u003e\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchesleybrown%2Frandomclass-directive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchesleybrown%2Frandomclass-directive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchesleybrown%2Frandomclass-directive/lists"}