Board Thread:General Coding Help/@comment-24530269-20190104122521

This code I'd like to try and create is extremely complicated and might not be possible, but it's worth a shot.

Basically, I use  tags on my wiki, but I just realized that those likely wouldn't function on mobile. I might just replace them with other options, but I want to try alternatives (that involve keeping the abbrs) first. So I'm trying to get a JS code that detects touch-screen devices and if so, would replace the abbr tags with the displayed text first, and then the title in between braces.

For example, this:

I Am Error

should become:

I Am Error {No you aren't}

So far I've got the following base, but am further stuck because of poor JS skills. I'd appreciate help in making this, but if there's really no realistic script that can accomplish that (or if I am mistaken about abbr tags only working on computers), then so be it, I'll just try something else then.

Thanks in advance. 