$("input.knob_snd_aec").knob({
change : function (value) {
if (current_id === 'snd_latency') {
$('#snd_latency').val(value);
}
if (current_id === 'snd_suppression') {
$('#snd_suppression').val(value);
}
},
draw : function () {
if(this.$.data('skin') == 'tron') {
var a = this.angle(this.cv) // Angle
, sa = this.startAngle // Previous start angle
, sat = this.startAngle // Start angle
, ea // Previous end angle
, eat = sat + a // End angle
, r = 1;
function myDrawFunction() {
if(this.$.data('skin') == 'tron') {
var a = this.angle(this.cv) // Angle
, sa = this.startAngle // Previous start angle
, sat = this.startAngle // Start angle
, ea // Previous end angle
, eat = sat + a // End angle
, r = 1;
$(".knob").knob({
draw : function () {
if(this.$.data('skin') == 'tron') {
var a = this.angle(this.cv) // Angle
, sa = this.startAngle // Previous start angle
, sat = this.startAngle // Start angle
, ea // Previous end angle
, eat = sat + a // End angle
, r = 1;
The images, logos, trademarks used on this site and all forwarded content are the property of their respective owners.
We are not responsible for comments posted by our visitors, as they are the property of the poster.
All other content of this website is copyrighted by 加西網
function myDrawFunction() {
if(this.$.data('skin') == 'tron') {
var a = this.angle(this.cv) // Angle
, sa = this.startAngle // Previous start angle
, sat = this.startAngle // Start angle
, ea // Previous end angle
, eat = sat + a // End angle
, r = 1;
this.g.lineWidth = this.lineWidth;
this.o.cursor
&& (sat = eat - 0.3)
&& (eat = eat + 0.3);
if (this.o.displayPrevious) {
ea = this.startAngle + this.angle(this.v);
this.o.cursor
&& (sa = ea - 0.3)
&& (ea = ea + 0.3);
this.g.beginPath();
this.g.strokeStyle = this.pColor;
this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sa, ea, false);
this.g.stroke();
}
this.g.beginPath();
this.g.strokeStyle = r ? this.o.fgColor : this.fgColor ;
this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sat, eat, false);
this.g.stroke();
this.g.lineWidth = 2;
this.g.beginPath();
this.g.strokeStyle = this.o.fgColor;
this.g.arc( this.xy, this.xy, this.radius - this.lineWidth + 1 + this.lineWidth * 2 / 3, 0, 2 * Math.PI, false);
this.g.stroke();
return false;
}
//======================華麗的分割線==========================
$("input.knob_snd_aec").knob({
change : function (value) {
if (current_id === 'snd_latency') {
$('#snd_latency').val(value);
}
if (current_id === 'snd_suppression') {
$('#snd_suppression').val(value);
}
},
draw : myDrawFunction;
}
});
$("input.knob_snd_nr").knob({
change : function (value) {
if (current_id === 'snd_enr') {
$('#snd_enr').val(value);
}
if (current_id === 'snd_isr') {
$('#snd_isr').val(value);
}
},
draw : myDrawfunction ;
}
});
$("input.knob_snd_wndb").knob({
change : function (value) {
if (current_id === 'snd_wndb_agr_val') {
$('#snd_wndb_agr_val').val(value);
}
},
draw : myDrawfunction ;
});
$("input.knob_snd_mixer").knob({
change : function (value) {
if (current_id === 'snd_mixer_postfilt_attn') {
$('#snd_mixer_postfilt_attn').val(value);
}
if (current_id === 'snd_mixer_oar_maxrej') {
$('#snd_mixer_oar_maxrej').val(value);
}
if (current_id === 'snd_mixer_oar_focus') {
$('#snd_mixer_oar_focus').val(value);
}
},
draw : function () {
...//identical code here
}
});
is that what you want?