Fix for unresponsive html elements
values are now being changed by a function rather than the setting the values directly, e.g. /* : { /key : "function", /val : { /id : "func", /args : "v", /body : "document.getElementById('slider').value = v" } } /* : { /key : "function", /val : { /id : "func", /call : "40" } }
This commit is contained in:
parent
9a709c82a2
commit
89908f2353
@ -496,7 +496,7 @@ function addCheckbox(index, parent, name, id, position, checked, type)
|
|||||||
var left = (type == "left") ? 10 : 252;
|
var left = (type == "left") ? 10 : 252;
|
||||||
var leftoffset = (type == "left") ? 126 : 85;
|
var leftoffset = (type == "left") ? 126 : 85;
|
||||||
checkboxes[index + 1][id].name = name;
|
checkboxes[index + 1][id].name = name;
|
||||||
checkboxes[index + 1][id].pos = [left + leftoffset, position - 2];
|
checkboxes[index + 1][id].pos = [left + leftoffset - 4, position - 1];
|
||||||
checkboxes[index + 1][id].parent = parent;
|
checkboxes[index + 1][id].parent = parent;
|
||||||
var obj = [{
|
var obj = [{
|
||||||
"parent" : parent,
|
"parent" : parent,
|
||||||
@ -748,6 +748,7 @@ function param()
|
|||||||
val = ['C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B'][val % 12] + (parseInt((val) / 12) - 2);
|
val = ['C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B'][val % 12] + (parseInt((val) / 12) - 2);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
obj["*"] = {
|
obj["*"] = {
|
||||||
"key" : "html",
|
"key" : "html",
|
||||||
"val" : [{
|
"val" : [{
|
||||||
@ -759,6 +760,14 @@ function param()
|
|||||||
"value" : val
|
"value" : val
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
|
obj["*"] = {
|
||||||
|
"key" : "function",
|
||||||
|
"val" : {
|
||||||
|
"id" : msg + "_value_" + (index1 - 1),
|
||||||
|
"call" : val
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
out.parse(JSON.stringify(obj));
|
out.parse(JSON.stringify(obj));
|
||||||
outlet(0, "dictionary", out.name);
|
outlet(0, "dictionary", out.name);
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
}
|
}
|
||||||
,
|
,
|
||||||
"classnamespace" : "box",
|
"classnamespace" : "box",
|
||||||
"rect" : [ 433.0, 288.0, 1023.0, 412.0 ],
|
"rect" : [ 277.0, 120.0, 1023.0, 411.0 ],
|
||||||
"bglocked" : 0,
|
"bglocked" : 0,
|
||||||
"openinpresentation" : 1,
|
"openinpresentation" : 1,
|
||||||
"default_fontsize" : 12.0,
|
"default_fontsize" : 12.0,
|
||||||
@ -61,7 +61,7 @@
|
|||||||
"parameter_enable" : 0,
|
"parameter_enable" : 0,
|
||||||
"patching_rect" : [ 43.0, 178.0, 100.0, 20.0 ],
|
"patching_rect" : [ 43.0, 178.0, 100.0, 20.0 ],
|
||||||
"presentation" : 1,
|
"presentation" : 1,
|
||||||
"presentation_rect" : [ 427.0, 15.5, 96.0, 27.0 ],
|
"presentation_rect" : [ 458.0, 15.5, 96.0, 27.0 ],
|
||||||
"text" : "Load Client",
|
"text" : "Load Client",
|
||||||
"textoncolor" : [ 1.0, 1.0, 1.0, 1.0 ]
|
"textoncolor" : [ 1.0, 1.0, 1.0, 1.0 ]
|
||||||
}
|
}
|
||||||
@ -135,7 +135,7 @@
|
|||||||
}
|
}
|
||||||
,
|
,
|
||||||
"classnamespace" : "box",
|
"classnamespace" : "box",
|
||||||
"rect" : [ 297.0, 100.0, 1301.0, 761.0 ],
|
"rect" : [ 177.0, 100.0, 1301.0, 761.0 ],
|
||||||
"bglocked" : 0,
|
"bglocked" : 0,
|
||||||
"openinpresentation" : 0,
|
"openinpresentation" : 0,
|
||||||
"default_fontsize" : 12.0,
|
"default_fontsize" : 12.0,
|
||||||
@ -3176,7 +3176,7 @@
|
|||||||
"numoutlets" : 0,
|
"numoutlets" : 0,
|
||||||
"patching_rect" : [ 376.0, 198.0, 62.0, 20.0 ],
|
"patching_rect" : [ 376.0, 198.0, 62.0, 20.0 ],
|
||||||
"presentation" : 1,
|
"presentation" : 1,
|
||||||
"presentation_rect" : [ 544.0, 19.0, 62.0, 20.0 ],
|
"presentation_rect" : [ 570.0, 19.0, 62.0, 20.0 ],
|
||||||
"saved_attribute_attributes" : {
|
"saved_attribute_attributes" : {
|
||||||
"textcolor" : {
|
"textcolor" : {
|
||||||
"expression" : "themecolor.theme_textcolor"
|
"expression" : "themecolor.theme_textcolor"
|
||||||
@ -3197,7 +3197,7 @@
|
|||||||
"outlettype" : [ "" ],
|
"outlettype" : [ "" ],
|
||||||
"patching_rect" : [ 440.0, 197.0, 33.0, 22.0 ],
|
"patching_rect" : [ 440.0, 197.0, 33.0, 22.0 ],
|
||||||
"presentation" : 1,
|
"presentation" : 1,
|
||||||
"presentation_rect" : [ 608.0, 18.0, 33.0, 22.0 ],
|
"presentation_rect" : [ 634.0, 18.0, 33.0, 22.0 ],
|
||||||
"text" : "read"
|
"text" : "read"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3471,7 +3471,7 @@
|
|||||||
"parameter_enable" : 0,
|
"parameter_enable" : 0,
|
||||||
"patching_rect" : [ 48.0, 86.0, 100.0, 20.0 ],
|
"patching_rect" : [ 48.0, 86.0, 100.0, 20.0 ],
|
||||||
"presentation" : 1,
|
"presentation" : 1,
|
||||||
"presentation_rect" : [ 315.0, 15.5, 96.0, 27.0 ],
|
"presentation_rect" : [ 333.0, 15.5, 96.0, 27.0 ],
|
||||||
"text" : "Open Interface",
|
"text" : "Open Interface",
|
||||||
"textoncolor" : [ 1.0, 1.0, 1.0, 1.0 ]
|
"textoncolor" : [ 1.0, 1.0, 1.0, 1.0 ]
|
||||||
}
|
}
|
||||||
@ -3654,7 +3654,7 @@
|
|||||||
}
|
}
|
||||||
,
|
,
|
||||||
"classnamespace" : "box",
|
"classnamespace" : "box",
|
||||||
"rect" : [ 29.0, 98.0, 403.0, 673.0 ],
|
"rect" : [ 38.0, 64.0, 403.0, 673.0 ],
|
||||||
"bglocked" : 0,
|
"bglocked" : 0,
|
||||||
"openinpresentation" : 1,
|
"openinpresentation" : 1,
|
||||||
"default_fontsize" : 12.0,
|
"default_fontsize" : 12.0,
|
||||||
@ -3682,7 +3682,6 @@
|
|||||||
"style" : "",
|
"style" : "",
|
||||||
"subpatcher_template" : "",
|
"subpatcher_template" : "",
|
||||||
"assistshowspatchername" : 0,
|
"assistshowspatchername" : 0,
|
||||||
"visible" : 1,
|
|
||||||
"boxes" : [ {
|
"boxes" : [ {
|
||||||
"box" : {
|
"box" : {
|
||||||
"fontname" : "Lato",
|
"fontname" : "Lato",
|
||||||
@ -7136,7 +7135,7 @@
|
|||||||
, {
|
, {
|
||||||
"box" : {
|
"box" : {
|
||||||
"id" : "obj-34",
|
"id" : "obj-34",
|
||||||
"int" : 4,
|
"int" : 1,
|
||||||
"maxclass" : "gswitch2",
|
"maxclass" : "gswitch2",
|
||||||
"numinlets" : 2,
|
"numinlets" : 2,
|
||||||
"numoutlets" : 5,
|
"numoutlets" : 5,
|
||||||
@ -7627,12 +7626,11 @@
|
|||||||
"patching_rect" : [ 1092.0, 425.0, 262.0, 22.0 ],
|
"patching_rect" : [ 1092.0, 425.0, 262.0, 22.0 ],
|
||||||
"priority" : {
|
"priority" : {
|
||||||
"hub" : -1,
|
"hub" : -1,
|
||||||
"hub::instrument" : -1,
|
"hub::instrument" : -1
|
||||||
"hub::instrument::bank" : -1
|
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
"saved_object_attributes" : {
|
"saved_object_attributes" : {
|
||||||
"client_rect" : [ 624, 204, 1233, 520 ],
|
"client_rect" : [ 903, 252, 1512, 568 ],
|
||||||
"parameter_enable" : 0,
|
"parameter_enable" : 0,
|
||||||
"parameter_mappable" : 0,
|
"parameter_mappable" : 0,
|
||||||
"storage_rect" : [ 780, 524, 1380, 824 ]
|
"storage_rect" : [ 780, 524, 1380, 824 ]
|
||||||
@ -7810,7 +7808,7 @@
|
|||||||
"outlettype" : [ "", "" ],
|
"outlettype" : [ "", "" ],
|
||||||
"patching_rect" : [ 169.0, 116.0, 118.0, 22.0 ],
|
"patching_rect" : [ 169.0, 116.0, 118.0, 22.0 ],
|
||||||
"saved_object_attributes" : {
|
"saved_object_attributes" : {
|
||||||
"filename" : "djster_webcontrol",
|
"filename" : "djster_webcontrol.js",
|
||||||
"parameter_enable" : 0
|
"parameter_enable" : 0
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
@ -8666,7 +8664,7 @@
|
|||||||
,
|
,
|
||||||
"obj-26::obj-1" : {
|
"obj-26::obj-1" : {
|
||||||
"parameter_longname" : "Outset Pulses",
|
"parameter_longname" : "Outset Pulses",
|
||||||
"parameter_range" : [ 1, 32 ]
|
"parameter_range" : [ 1, 7 ]
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
"obj-26::obj-104" : {
|
"obj-26::obj-104" : {
|
||||||
|
Loading…
Reference in New Issue
Block a user