mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 11:50:07 +00:00
tweaking the editor...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
477afa8e2c
commit
cfa6566647
@ -50,12 +50,28 @@ input[type='range']::-webkit-slider-thumb {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.value {
|
.value {
|
||||||
|
-webkit-appearance: none !important;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 40px;
|
width: 40px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
|
background: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
|
input::-webkit-outer-spin-button,
|
||||||
|
input::-webkit-inner-spin-button {
|
||||||
|
-webkit-appearance: none !important;
|
||||||
|
/*
|
||||||
|
display: inline-block;
|
||||||
|
background: white;
|
||||||
|
border-radius: 2px;
|
||||||
|
border: solid 1px gray;
|
||||||
|
width: 10px;
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -161,12 +177,20 @@ function makeAbsRange(text, filter, target, min, max, dfl, step, tran, normalize
|
|||||||
.val(dfl)
|
.val(dfl)
|
||||||
.change(function(){
|
.change(function(){
|
||||||
var val = this.valueAsNumber
|
var val = this.valueAsNumber
|
||||||
value.text(val)
|
value.val(val)
|
||||||
updateFilter(target, this.id, tran(val))
|
updateFilter(target, this.id, tran(val))
|
||||||
})
|
})
|
||||||
.appendTo(elem)
|
.appendTo(elem)
|
||||||
var value = $('<span class="value"/>')
|
var value = $('<input type="number" class="value"/>')
|
||||||
.html(dfl)
|
.attr({
|
||||||
|
min: min,
|
||||||
|
max: max,
|
||||||
|
step: step,
|
||||||
|
})
|
||||||
|
.val(dfl)
|
||||||
|
.change(function(){
|
||||||
|
range.val($(this).val())
|
||||||
|
})
|
||||||
.appendTo(elem)
|
.appendTo(elem)
|
||||||
$('<button class="reset">x</button>')
|
$('<button class="reset">x</button>')
|
||||||
.click(function(){
|
.click(function(){
|
||||||
@ -209,6 +233,8 @@ $(function(){
|
|||||||
.append($('<div>NOTE: at this point order of operations is '+
|
.append($('<div>NOTE: at this point order of operations is '+
|
||||||
'sometimes segnificant -- might be good to treat the filters '+
|
'sometimes segnificant -- might be good to treat the filters '+
|
||||||
'as layers -- se Adobe CSS filter factory </div>'))
|
'as layers -- se Adobe CSS filter factory </div>'))
|
||||||
|
|
||||||
|
saveState()
|
||||||
})
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user