Complete overhaul of how engine options are handled

Removed worker_limit and thread_limit
Relocated some settings in the engine configs
Renamed the test_modes and tune_modes to x_presets
Added a default preset grouping, which others can extend
Complete rewrite of create_test.js, with the hope to generalize with create_tune.js
Cleanups of the create_test.html for warnings due to missing html attributes
This commit is contained in:
andrew authored and Andrew Grant committed 2023-11-16 20:25:11 -05:00
1 parent 37cc4a5b96
commit 9123444d22
13 files changed
+185 -249

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
function enforce_default_text(id, text) {
window.addEventListener('DOMContentLoaded', function() {
var field = document.getElementById(id);
field.addEventListener('input', function() {
if (field.value.startsWith(text) || field.value === text)
return;
if (field.value.endsWith('/'))
field.value = text + field.value.substr(text.length).replace(/\/+$/, '');
else
field.value = text + field.value.substr(text.length);
});
});
}