{"id":20512486,"url":"https://github.com/schne324/electric-slide","last_synced_at":"2026-04-22T10:02:18.917Z","repository":{"id":58220633,"uuid":"55657103","full_name":"schne324/electric-slide","owner":"schne324","description":"Accessible slider ","archived":false,"fork":false,"pushed_at":"2016-11-13T18:31:41.000Z","size":17,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-06T12:10:18.211Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.harris-schneiderman.com/demos/electric-slide/index.html","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/schne324.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":"2016-04-07T02:30:03.000Z","updated_at":"2018-03-18T14:50:07.000Z","dependencies_parsed_at":"2022-08-31T02:51:06.308Z","dependency_job_id":null,"html_url":"https://github.com/schne324/electric-slide","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/schne324/electric-slide","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schne324%2Felectric-slide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schne324%2Felectric-slide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schne324%2Felectric-slide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schne324%2Felectric-slide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schne324","download_url":"https://codeload.github.com/schne324/electric-slide/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schne324%2Felectric-slide/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32130776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T08:34:57.708Z","status":"ssl_error","status_checked_at":"2026-04-22T08:34:55.583Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-15T20:41:40.047Z","updated_at":"2026-04-22T10:02:18.900Z","avatar_url":"https://github.com/schne324.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Electric slide\n## It's electric!\nAccessible slider plugin\n\n## Usage\nCalled on the element which contains the handle.\n\n### jQuery\n\n```javascript\njQuery(container).electricSlide(options);\n```\n\n### Contructor\n\n```javascript\nnew ElectricSlide(container, options);\n```\n\n## Options\n- `handle`: The selector for the handle element (qualified within the container). Defaults to: `'.handle'`.\n\n- `label` (optional): The selector for the label element.  An `aria-labelledby` association between the handle and the label element(s) will be made.\n\n- `help` (optional): The selector for the help text.  An `aria-describedby` association between the handle and the help text element(s) will be made.\n\n- `values`: Either an array of values or an object containing the following properties:\n  - `min`: the minimum value\n  - `max`: the maximum value\n  - defaults to:\n\n  ```javascript\n    {\n      min: 0,\n      max: 100\n    }\n  ```\n- `increment` (optional): The amount to increment/decrement within the values of the slider (should really only be used with the object form of the `values` option).\n\n- `initialValue` (optional): The initial value to be set on the slider.\n\n- `highlight` (optional): Fill in the slider area up to the handle.\n\n- `disable` (optional): Disable the slider.\n\n## Events\n- `electricSlide:init`: Fired when the slider is initialized.\n  - Params:\n    - `e` the jQuery event object\n    - `container` the slider container\n    - `handle` the slider handle\n  - Example:\n\n    ```javascript\n      $('.electric-slide')\n        .electricSlide()\n        .on('electricSlide:init', function (e, container, handle) {\n          $('body').addClass('slider-initialized');\n        });\n    ```\n- `electricSlide:change`: Fired when the slider's value is changed.\n  - Params:\n    - `e` the jQuery event object\n    - `container` the slider container\n    - `handle` the slider handle\n  - Example:\n\n    ```javascript\n      $('.electric-slide')\n        .electricSlide({\n          values: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']\n        })\n        .on('electricSlide:change', function (e, container, handle) {\n          $(container).find('.tooltip').text($(handle).attr('aria-valuetext'))\n        });\n    ```\n\n## Public Methods\n- `ElectricSlide#disable`: disable the slider\n- `ElectricSlide#enable`: enable the slider\n- Example:\n\n  ```javascript\n    var container = document.querySelector('.electric-slide');\n    var slider = new ElectricSlide(container);\n    slider.disable();\n  ```\n\n## DEV\n- `npm i \u0026\u0026 bower i`\n- Run server: `gulp server` (this builds -\u003e sets up watcher -\u003e runs server (which restarts when js file updated))\n- Build demo: `gulp` or `gulp build`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschne324%2Felectric-slide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschne324%2Felectric-slide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschne324%2Felectric-slide/lists"}