[ir] Web-based Remote Control

I can't see an obvious mechanism for producing a hover with a touch screen. I remember looking when I first got a touch device and couldn't find one.
 
The hover effect can be triggered from CSS or with JS by setting up a listener for mouseover. In this case the tooltip for a macro <button> is results from its title attribute, and not a styled or scripted hover. In the corresponding mobile WebIf page there is only a link and no button or title of either, so there's no tooltip regardless of browser capability/deficiency.

The linked Apple doc, albeit from iOS 7, suggests that iOS Safari generates mouseover based on the platform's native touch events. However Apple decided to ditch the convention of presenting the title as a tooltip, or in fact having tooltips at all AFAICS, in the mobile Safari browsers. Maybe it was felt to be too hard to handle the simultaneous tooltips that might arise from up to 10 (or more in W Virginia or Norfolk) separate mouseovers.

The tooltip could be replicated with a CSS hover style, but the long press action is probably mapped to cut/copy by default in iOS Safari which would prevent it being used for hover in the styled case without more work..

The WebIf mobile page, with a full width link instead of a <button>, could be tweaked to provide the missing tooltip, eg putting the code sequence in a L-R scrollable textarea in the macro button after the macro name, so long as macro names are not too long.
 
The tooltip could be replicated with a CSS hover style, but the long press action is probably mapped to cut/copy by default in iOS Safari which would prevent it being used for hover in the styled case without more work..
Or just have a button (like the delete) which displays the macro text? Seems simple enough...

It seems that I hit a nerve with the 🔹. :):):) Too many dysfunctional grumpy old men here I guess. "Not relevant to the thread" I shall remember that one for future use.
'Scuse me, but this is a technical discussion, and while the odd (preferably erudite) quip might be welcome, reference to sexual function seems inappropriate anywhere on this forum (let alone interrupting a technical thread). Kindly keep your smutty mind to yourself. Whatever you might think, at least some of us are not in your gutter, and having to tell you that is pollution. You also need to keep in mind that this forum is not closed to minors.
 
Or just have a button (like the delete) which displays the macro text?
I went for radio buttons and a textarea. Hopefully it suffices.
Seems simple enough...
Nobody else has volunteered any code...
It would be nice to get the box to auto-size but it's more effort than I can be bothered with researching.
 
Works for me (DDG for iPadOS), you just can't get rid of it again even if the macro gets deleted (but only have to refresh the page).

1773850793435.png
 
I'm seeing checkboxes but no textarea (Firefox on win11)
I've tried it on FF on Linux Mint, Win10 and Win7 (don't have Win11) and on Chrome on LM and even Edge (ugh) on W10. All work OK, although it's amazing how the rendering is slightly different.
you just can't get rid of it again even if the macro gets deleted
Yes, I found that after I'd released it. Will look at fixing.
 
It worked on another laptop so probably related to a browser caching issue.
Does it need to be text input area rather than an output area. Making it an input are makes it look as if you could edit the macro by typing into the box which you cant.
I hadn't realised until just now that any keystrokes entered on the webpage are sent directly to IR, pressing space Paused the programme my wife was watching!
 
Back
Top