npm i or yarn (inside root folder)
npm start or yarn start
- run the project
- open the browser http://localhost:8080/
- go to browser console (F11)
execute:
container = document.getElementById('container') q = new QuickSettings(container) q.addSlider('how_many_cats',1,200,50,1,(x)=>console.log(x)) .addSlider('how_many_dogs',1,400,50,1,(x)=>console.log(x)) .addSlider('how_many_horses',1,600,50,1,(x)=>console.log(x)) //can check the remove method q.remove(title_here) //can also add and remove item in chain-style q.addSlider('how_many_cats',1,200,50,1,(x)=>console.log(x)) .addSlider('how_many_dogs',1,400,50,1,(x)=>console.log(x)) .addSlider('how_many_horses',1,600,50,1,(x)=>console.log(x)) .remove('how_many_dogs')