{"id":20440244,"url":"https://github.com/strainer/levelsliderm","last_synced_at":"2025-08-10T08:14:24.521Z","repository":{"id":143850789,"uuid":"146052524","full_name":"strainer/levelsliderm","owner":"strainer","description":"A neat little mythril component level slider control (like a volume slider)","archived":false,"fork":false,"pushed_at":"2018-08-28T19:55:42.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T07:45:20.989Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/strainer.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-25T00:45:26.000Z","updated_at":"2018-08-28T19:55:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f5a251e-4472-40cc-9105-0b1c0b60c014","html_url":"https://github.com/strainer/levelsliderm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/strainer/levelsliderm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strainer%2Flevelsliderm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strainer%2Flevelsliderm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strainer%2Flevelsliderm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strainer%2Flevelsliderm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strainer","download_url":"https://codeload.github.com/strainer/levelsliderm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strainer%2Flevelsliderm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269693593,"owners_count":24460248,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-15T09:23:10.917Z","updated_at":"2025-08-10T08:14:24.490Z","avatar_url":"https://github.com/strainer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Levelsliderm\n============\nHere is a level slider component for mithril.js : [Example page](http://strainer.github.io/levelsliderm/)\n\n### Features\n\n* Simple configuration.   \n* Horizontal or vertical option.\n\nUsage\n-----\n```javascript \n// run or import levelsliderm.js, then suppose:\nlet foo = 1, hoo = x, volume = 23 \n// ...\n// mithril mount this wherever:\nm( levelsliderm, { \n    stateobj:this \n   ,statekey:\"volume\"\n   ,min:0 ,max:100 \n} )\n\n//more properties are arranged:\n\nm( levelsliderm, { \n\t /* required parameters */\n    stateobj: ... //scope of the slaved variable\n   ,statekey: ... //name of the slaved variable\n   ,min:0 ,max:100 //range of slaved variable\n   /* optional parameters */\n   ,steps:100       //snap steps\n   ,reverse:false   //reverse the direction of control\n   ,vertical:true   //this makes vertical\n   ,horizontal:true //this is default\n   ,elstring:\"#id.class\" //add a string to tag for id or classes\n   ,elstyle:{            //css on element for size, bgcolor etc\n\t   margin:\"1px\" ,width:\"2em\" ,height:\"10em\" \n\t }\n   ,railcolora:\"red\"      //color of rail before knob\n   ,railcolorb:\"#101010\"  //color of rail after knob\n   ,thick:14          //thickness of rail (a percentage of svgs size)\n   ,horizontal:false\n   ,strokewidth:\"0.8%\"\n   ,strokecolor:\"dimgrey\"\n   ,knobstrokewidth:\"0.8%\"\n   ,knobstrokecolor:\"#171757\"\n   ,knobsize:\"4.9%\"\n   ,knobcolor:\"#02b\"   \n   ,knobholdcolor:\"#aaa\"\n   ,onclickextra:fnc  //custom function to call on clicking knob\n} )\n```\n\nVersion 1.0.0-beta","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrainer%2Flevelsliderm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrainer%2Flevelsliderm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrainer%2Flevelsliderm/lists"}