{"id":15307990,"url":"https://github.com/n1crack/mouse-select","last_synced_at":"2025-04-30T10:31:22.485Z","repository":{"id":57303215,"uuid":"125666197","full_name":"n1crack/mouse-select","owner":"n1crack","description":"Simple javascript class for mouse selection.","archived":false,"fork":false,"pushed_at":"2018-08-09T19:38:54.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-16T23:06:11.631Z","etag":null,"topics":["es2015","mouse-events","mouse-selection","selection"],"latest_commit_sha":null,"homepage":"","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/n1crack.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":"2018-03-17T20:23:45.000Z","updated_at":"2018-12-31T06:31:25.000Z","dependencies_parsed_at":"2022-08-29T07:12:42.327Z","dependency_job_id":null,"html_url":"https://github.com/n1crack/mouse-select","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/n1crack%2Fmouse-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n1crack%2Fmouse-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n1crack%2Fmouse-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n1crack%2Fmouse-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n1crack","download_url":"https://codeload.github.com/n1crack/mouse-select/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224208255,"owners_count":17273674,"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":["es2015","mouse-events","mouse-selection","selection"],"created_at":"2024-10-01T08:13:14.915Z","updated_at":"2024-11-12T02:43:12.303Z","avatar_url":"https://github.com/n1crack.png","language":"JavaScript","readme":"# mouse-select\nAn elegant javascript class for mouse selection.\n\n## Demo\nTry it: [Live demo](https://codepen.io/anon/pen/vrWXxX)\n\n## installation\n````\nnpm install mouse-select\n````\n\n## basic usage\n````javascript\nimport mselect from 'mouse-select';\n\nwindow.select = new mselect({\n    el: 'ul'\n});\n\nselect.onSelect(function (item, index) {\n    // add active class to selected items.\n    item.classList.add('active');\n\n}).onClear(function () {\n    // when starting new selection, remove existing selection\n    document.querySelectorAll('li.active')\n        .forEach(function (el) {\n            el.classList.remove(\"active\")\n        });\n});\n\n````\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn1crack%2Fmouse-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn1crack%2Fmouse-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn1crack%2Fmouse-select/lists"}