Brush Size:
Opacity:
Then saving the values into localStorage onChange:
$("#brush_size").change(function(){
localStorage['brush_size']=this.value;
});
$("#opacity").change(function(){
localStorage['opacity']=this.value;
});
After changes, on the next page load I would like to see the current localStorage values, instead of the html hardcoded values. What's the best way of doing this?
I suppose I could set the slider's value to the localStorage values during page load using jQuery... is this the best-practices way of doing it?