{"id":13671984,"url":"https://github.com/evilstreak/thinjs","last_synced_at":"2025-05-05T23:20:52.235Z","repository":{"id":717466,"uuid":"364537","full_name":"evilstreak/thinjs","owner":"evilstreak","description":"A super-lightweight javascript library for when you just need something simple","archived":false,"fork":false,"pushed_at":"2009-11-18T21:35:28.000Z","size":80,"stargazers_count":19,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-31T00:41:15.419Z","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/evilstreak.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":"2009-11-07T18:01:36.000Z","updated_at":"2019-04-24T07:38:41.000Z","dependencies_parsed_at":"2022-07-15T20:30:30.472Z","dependency_job_id":null,"html_url":"https://github.com/evilstreak/thinjs","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/evilstreak%2Fthinjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilstreak%2Fthinjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilstreak%2Fthinjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilstreak%2Fthinjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evilstreak","download_url":"https://codeload.github.com/evilstreak/thinjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252591019,"owners_count":21773011,"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-08-02T09:01:23.502Z","updated_at":"2025-05-05T23:20:52.219Z","avatar_url":"https://github.com/evilstreak.png","language":"JavaScript","readme":"Thin JS - Super lightweight javascript library\n==============================================\n\n## What does it do?\n\nThin JS is intentionally lightweight (**under 1KB** after minification in\nfact). It lacks features because it's meant for use where you want to add a\nlittle javascript to a site but not enough to include the 56k that [jQuery][]\nweighs after minification. If you're doing enough stuff that the features of\nThin JS don't cut it for you then just man up and use a full library.\n\n## Selectors\n\nUses `document.querySelectorAll` to find elements which means it's\nblistering fast with a tiny footprint, but only supports IE8, FF3.5, Safari\n3.2+, Chrome (all versions) and Opera 10. Thin JS will fail silently in\nother browsers.\n\n## Each\n\nUse `$().each` by passing a function to be executed for each element in the\nresult set with `this` set to be the element in question.\n\n    $( \"p code\" ).each( function() {\n      this.style.backgroundColor = \"#d8fcce\";\n      this.style.color = \"green\";\n    } );\n\n## Event binding\n\nBind events using `$().bind` by passing the event type to bind to and the\nfunction to be bound.\n\n    $( \"h2\" ).bind( \"click\", function() {\n      this.style.color = \"#d11\";\n    } );\n\n## Event delegation\n\nDelegate events using `$().live` by passing the event type to bind to and the\nfunction to be bound.\n\n    $( \"h2\" ).live( \"click\", function() {\n      this.style.color = \"#d11\";\n    } );\n\n## DOM Ready\n\nYou can use `$.ready` to set functions to be executed once the DOM is ready.\n\n[jQuery]: http://jquery.com\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilstreak%2Fthinjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevilstreak%2Fthinjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilstreak%2Fthinjs/lists"}