{"id":13746945,"url":"https://github.com/benhowdle89/touche","last_synced_at":"2025-04-05T00:08:55.458Z","repository":{"id":11101604,"uuid":"13454805","full_name":"benhowdle89/touche","owner":"benhowdle89","description":"Effortlessly re-map click events to touch events on touchscreen UIs","archived":false,"fork":false,"pushed_at":"2017-01-24T22:57:43.000Z","size":30,"stargazers_count":605,"open_issues_count":11,"forks_count":54,"subscribers_count":23,"default_branch":"master","last_synced_at":"2024-05-22T21:32:13.095Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://benhowdle.im/touche","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/benhowdle89.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":"2013-10-09T21:21:23.000Z","updated_at":"2024-05-08T12:17:22.000Z","dependencies_parsed_at":"2022-08-31T03:00:48.828Z","dependency_job_id":null,"html_url":"https://github.com/benhowdle89/touche","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/benhowdle89%2Ftouche","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benhowdle89%2Ftouche/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benhowdle89%2Ftouche/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benhowdle89%2Ftouche/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benhowdle89","download_url":"https://codeload.github.com/benhowdle89/touche/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266564,"owners_count":20910836,"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-03T06:01:06.697Z","updated_at":"2025-04-05T00:08:55.440Z","avatar_url":"https://github.com/benhowdle89.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","📦 Legacy \u0026 Inactive Projects"],"sub_categories":[],"readme":"Touche.js\n======\n\n## Effortlessly re-map click events to touch events on touchscreen UIs\n\n[Full docs \u0026rarr;](http://benhowdle.im/touche)\n\n\u003cul\u003e\n\t\t\u003cli\u003eRemoves the 300ms delay (after the user lifts their finger), applied by all touchscreens devices and immediately invokes your click handlers.\u003c/li\u003e\n\t\t\u003cli\u003eTakes your click events applied with jQuery and silently re-maps them to the \"touchend\" event for devices that support touch.\u003c/li\u003e\n\t\t\u003cli\u003eIf you're not using jQuery, then Touche exposes a method \"on\" for your use like so:\u003c/li\u003e\n\u003c/ul\u003e\n\tTouche(NodeList/Node).on('click', function(){ // handler })\n\n### Usage\n\n\t\u003c!-- somewhere before the rest of your JavaScript code --\u003e\n\t\u003cscript type=\"text/javascript\" src=\"/path/to/touche.js\"\u003e\u003c/script\u003e\n\n\n### Examples\n\n\t// applying a click event to one element\n\n\tTouche(document.querySelector('#myButton')).on('click', handleClick);\n\n\t// or to multiple at once\n\n\tTouche(document.querySelectorAll('.myButtons')).on('click', handleClicks);\n\n\t// or with jQuery\n\n\t$('.myButtons').on('click', handleClicks);\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenhowdle89%2Ftouche","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenhowdle89%2Ftouche","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenhowdle89%2Ftouche/lists"}