Hi there. I was trying to embed a windy widget on my dashboard. I can embed without any issues in a iframe, but I’d like to have my weather map shown as “view only”, preventing any interaction with it, such as:
clicking/tapping on a button inside it;
dragging the map.
I tried with CSS, card-mod and ChatGPT. He suggested me to use this code with the “pointer events” attribute, but it doesn’t appear to work (the map is shown correctly but I can still interact with it):
Is there a way to stop such interactions? My HA dashboard will be used a lot by my parents, but I already know they would get lost pretty easy if they start scrolling inside the iframe… Thanks in advance!
Hard to believe - but some people still using own brains for searching & learning instead of chatgpt. Why not trying by yourself to check the proposed code?
Note: mod-card not needed for iframe card.
In future - ask all card-mod related questions in the main card-mod thread.
There are lot of working examples in that thread - working, not invented by chatgpt.
Tbh I felt this as a kinda rude and pointless comment. I’ve already looked for this topic on the forums. I’ve already learned about CSS using the cheat sheet provided here on the forums. I’m just a month old in coding and I think there’s nothing wrong with having ChatGPT helping me.
There’s no point in using iframe alone as it’s not what I’m trying to achieve. There’s no need to ask for help in the card-mod thread since it’s not an issue related with it.
Please next time refrain from being so hard on inexperienced people asking for help.
Seems that you got my point in a wrong way. Nobody wished to insult you - yet you managed to get offended.
So, between being grateful for a ready solution & being insulted - you chose the 2nd, good luck).
Yet you chose as a solution a “card-mod” variant ))).
Which is - with my all due respect to the person who proposed it - will not work “as is”.