{"id":19514882,"url":"https://github.com/ndp/color_spy","last_synced_at":"2025-04-26T06:30:40.827Z","repository":{"id":855794,"uuid":"588046","full_name":"ndp/color_spy","owner":"ndp","description":"jQuery plugin to calculate actual color values of DOM nodes","archived":false,"fork":false,"pushed_at":"2010-04-01T07:23:45.000Z","size":745,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-25T12:03:17.866Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/ndp.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":"2010-03-31T06:12:09.000Z","updated_at":"2024-08-05T07:08:24.000Z","dependencies_parsed_at":"2022-07-05T18:31:00.456Z","dependency_job_id":null,"html_url":"https://github.com/ndp/color_spy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fcolor_spy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fcolor_spy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fcolor_spy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fcolor_spy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ndp","download_url":"https://codeload.github.com/ndp/color_spy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250943900,"owners_count":21511649,"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-10T23:37:55.176Z","updated_at":"2025-04-26T06:30:40.462Z","avatar_url":"https://github.com/ndp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Purpose\n\nBuilt so that could determine the color of an element on the page. This\nwas critical to being able to write a SIFR plugin that would work\nin across a heterogenous set of elements. Could be useful in other\ngeneral purpose code.\n\nTested on Firefox, Chrome, Safari, IE7.\n\n\n## Usage\n    \u003cscript src=\"./lib/jquery-1.4.2.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"./jquery.color_spy-0.1.0.js\"\u003e\u003c/script\u003e\n    \u003cscript type=\"text/javascript\"\u003e\n    alert($('.selector').backgroundColor());\n    \u003c/script\u003e\n\n### $(...).backgroundColor()\n\nReturns the background color of the first element as a hex string. For example, #ff0000.\nTraverses up the DOM until it finds an explicit color. Converts rgb, rgba and named colors\nto their hex equivalents.\n\n### $(...).color()\n\nReturns the color of the first element. Traverses up the DOM until it finds an explicit color.\nConverts rgb, rgba and named colors\nto their hex equivalents.\n\n### $.toHexColor(color)\n\nConverts varioius formats to the standard size-color hex string.\n\n## Demo \u0026 Development\n\nOpen **jquery.color_spy_spec.js**\n\nTests are written in ScrewUnit and included here.\n\n\n## License\n\nCopyright (c) Andrew J. Peterson / NDPSoftware  All Rights Reserved. Use with permission only.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndp%2Fcolor_spy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndp%2Fcolor_spy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndp%2Fcolor_spy/lists"}