kopia lustrzana https://github.com/miguelvaca/vk3cpu
Update inductor_imp.html
rodzic
010fef18e1
commit
88717be89c
|
@ -180,6 +180,7 @@
|
||||||
// Specify fonts for changing parameters controlled by the sliders:
|
// Specify fonts for changing parameters controlled by the sliders:
|
||||||
var normal_font = "12px arial";
|
var normal_font = "12px arial";
|
||||||
var emphasis_font = "bold 14px arial";
|
var emphasis_font = "bold 14px arial";
|
||||||
|
const emphasis_delay = 1200;
|
||||||
|
|
||||||
var loop_dia_timer_handler = 0;
|
var loop_dia_timer_handler = 0;
|
||||||
var loop_dia_font = normal_font;
|
var loop_dia_font = normal_font;
|
||||||
|
@ -192,14 +193,14 @@
|
||||||
loop_dia_font = normal_font;
|
loop_dia_font = normal_font;
|
||||||
drawDesign();
|
drawDesign();
|
||||||
loop_dia_timer_handler = 0;
|
loop_dia_timer_handler = 0;
|
||||||
}, 1500);
|
}, emphasis_delay);
|
||||||
} else {
|
} else {
|
||||||
clearTimeout(loop_dia_timer_handler);
|
clearTimeout(loop_dia_timer_handler);
|
||||||
loop_dia_timer_handler = setTimeout(function(){
|
loop_dia_timer_handler = setTimeout(function(){
|
||||||
loop_dia_font = normal_font;
|
loop_dia_font = normal_font;
|
||||||
drawDesign();
|
drawDesign();
|
||||||
loop_dia_timer_handler = 0;
|
loop_dia_timer_handler = 0;
|
||||||
}, 1500);
|
}, emphasis_delay);
|
||||||
}
|
}
|
||||||
drawDesign();
|
drawDesign();
|
||||||
}
|
}
|
||||||
|
@ -215,14 +216,14 @@
|
||||||
cond_dia_font = normal_font;
|
cond_dia_font = normal_font;
|
||||||
drawDesign();
|
drawDesign();
|
||||||
cond_dia_timer_handler = 0;
|
cond_dia_timer_handler = 0;
|
||||||
}, 1500);
|
}, emphasis_delay);
|
||||||
} else {
|
} else {
|
||||||
clearTimeout(cond_dia_timer_handler);
|
clearTimeout(cond_dia_timer_handler);
|
||||||
cond_dia_timer_handler = setTimeout(function(){
|
cond_dia_timer_handler = setTimeout(function(){
|
||||||
cond_dia_font = normal_font;
|
cond_dia_font = normal_font;
|
||||||
drawDesign();
|
drawDesign();
|
||||||
cond_dia_timer_handler = 0;
|
cond_dia_timer_handler = 0;
|
||||||
}, 1500);
|
}, emphasis_delay);
|
||||||
}
|
}
|
||||||
drawDesign();
|
drawDesign();
|
||||||
}
|
}
|
||||||
|
@ -238,14 +239,14 @@
|
||||||
turns_font = normal_font;
|
turns_font = normal_font;
|
||||||
drawDesign();
|
drawDesign();
|
||||||
turns_timer_handler = 0;
|
turns_timer_handler = 0;
|
||||||
}, 1500);
|
}, emphasis_delay);
|
||||||
} else {
|
} else {
|
||||||
clearTimeout(turns_timer_handler);
|
clearTimeout(turns_timer_handler);
|
||||||
turns_timer_handler = setTimeout(function(){
|
turns_timer_handler = setTimeout(function(){
|
||||||
turns_font = normal_font;
|
turns_font = normal_font;
|
||||||
drawDesign();
|
drawDesign();
|
||||||
turns_timer_handler = 0;
|
turns_timer_handler = 0;
|
||||||
}, 1500);
|
}, emphasis_delay);
|
||||||
}
|
}
|
||||||
drawDesign();
|
drawDesign();
|
||||||
}
|
}
|
||||||
|
@ -261,14 +262,14 @@
|
||||||
spacing_font = normal_font;
|
spacing_font = normal_font;
|
||||||
drawDesign();
|
drawDesign();
|
||||||
spacing_timer_handler = 0;
|
spacing_timer_handler = 0;
|
||||||
}, 1500);
|
}, emphasis_delay);
|
||||||
} else {
|
} else {
|
||||||
clearTimeout(spacing_timer_handler);
|
clearTimeout(spacing_timer_handler);
|
||||||
spacing_timer_handler = setTimeout(function(){
|
spacing_timer_handler = setTimeout(function(){
|
||||||
spacing_font = normal_font;
|
spacing_font = normal_font;
|
||||||
drawDesign();
|
drawDesign();
|
||||||
spacing_timer_handler = 0;
|
spacing_timer_handler = 0;
|
||||||
}, 1500);
|
}, emphasis_delay);
|
||||||
}
|
}
|
||||||
drawDesign();
|
drawDesign();
|
||||||
}
|
}
|
||||||
|
@ -284,14 +285,14 @@
|
||||||
frequency_font = normal_font;
|
frequency_font = normal_font;
|
||||||
drawDesign();
|
drawDesign();
|
||||||
frequency_timer_handler = 0;
|
frequency_timer_handler = 0;
|
||||||
}, 1500);
|
}, emphasis_delay);
|
||||||
} else {
|
} else {
|
||||||
clearTimeout(frequency_timer_handler);
|
clearTimeout(frequency_timer_handler);
|
||||||
frequency_timer_handler = setTimeout(function(){
|
frequency_timer_handler = setTimeout(function(){
|
||||||
frequency_font = normal_font;
|
frequency_font = normal_font;
|
||||||
drawDesign();
|
drawDesign();
|
||||||
frequency_timer_handler = 0;
|
frequency_timer_handler = 0;
|
||||||
}, 1500);
|
}, emphasis_delay);
|
||||||
}
|
}
|
||||||
drawDesign();
|
drawDesign();
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue