hi, is there any way to change the zoom level from an iframe window using a variable? So I could change it in the dashboard by a button
[
{
"id": "bd76668e.c11518",
"type": "function",
"z": "239682fe.680d0e",
"name": "",
"func": "msg.payload = \"https://website.com\" + msg.payload;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 1520,
"y": 240,
"wires": [
[
"cdf7ea5b.21de78"
]
]
},
{
"id": "cdf7ea5b.21de78",
"type": "ui_template",
"z": "239682fe.680d0e",
"group": "e664d20c.1424b",
"name": "Website iframe",
"order": 1,
"width": "32",
"height": "20",
"format": "<iframe id=\"myFrame\" width=\"100%\" height=\"100%\" src = \"\"></iframe>\n<script>\n(function(scope) {\n // watch msg object from Node-RED\n scope.$watch('msg', function(msg) {\n // new message received\n var x = document.getElementById('myFrame');\n x.setAttribute('src', msg.payload); \n });\n})(scope);\n</script>",
"storeOutMessages": true,
"fwdInMessages": true,
"resendOnRefresh": false,
"templateScope": "local",
"x": 1770,
"y": 240,
"wires": [
[]
]
},
{
"id": "e664d20c.1424b",
"type": "ui_group",
"name": "Uebungsprogramm",
"tab": "f01ad79b.4c5be8",
"order": 3,
"disp": false,
"width": "32",
"collapse": false
},
{
"id": "f01ad79b.4c5be8",
"type": "ui_tab",
"name": "Ereignismonitor",
"icon": "dashboard",
"order": 1,
"disabled": false,
"hidden": false
}
]