minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-11-28 10:04:33 +04:00
parent daf8257d81
commit 412a2e299c

View File

@ -18,6 +18,9 @@ summary {
input[type=range] { input[type=range] {
width: 300px; width: 300px;
} }
input[type=range]:after {
content: attr(value);
}
div > span:first-child { div > span:first-child {
display: inline-block; display: inline-block;
width: 100px; width: 100px;
@ -47,6 +50,7 @@ function resetPrevRange(e){
.change() .change()
} }
// XXX this does not set hue correctly...
function loadSliderState(){ function loadSliderState(){
var state = $('#image') var state = $('#image')
.css('-webkit-filter') .css('-webkit-filter')
@ -60,7 +64,7 @@ function loadSliderState(){
}) })
// set the saved values... // set the saved values...
while(state.length > 0){ while(state.length > 0){
$('#'+state.pop()) var e = $('#'+state.pop())
.val(state.pop()) .val(state.pop())
} }
@ -86,7 +90,7 @@ function clearStates(){
<body> <body>
<img id="image" src="image.jpg"> <img id="image" src="image.jpg">
<details> <details open>
<summary>Controls</summary> <summary>Controls</summary>
<div> <div>
<div> <div>