7 Aug Edited #1

Using hovercards on click

Ultimate subscriber
As I'm fairly not good with javascript, I'll need a bit of help of enabling on click instead of mouseenter or mouseover. '

Would this work?
PS: But it also needs tweaking mouseleave, to be disabled right? I'd add just X button to close it instead
    $(document).on('click', 'a[data-uid]', function() {

            // Disable this URL is inside the same hovercard - might happen
            if ($(this).closest('.drop').length) {
                return false;
            }
Shade 7 Aug
#2
That piece of code is regularly embedded to prevent cards being shown when you click over profile links. Enabling cards on click requires lots of edits unfortunately. I may add it as an option if you want.
ProX likes this post
ProX 7 Aug Edited
#3
That piece of code is regularly embedded to prevent cards being shown when you click over profile links. Enabling cards on click requires lots of edits unfortunately. I may add it as an option if you want.
Shade (7 Aug)
Yeah, that would be a great one.

Edit: It should also have a position of center and opacity background like on modals.
Shade 7 Aug
#4
That is out of scope for Hovercards, which is supposed to be an inline card. I believe something like you are describing exists in the community Mods Site for free.
ProX 7 Aug
#5
That is out of scope for Hovercards, which is supposed to be an inline card. I believe something like you are describing exists in the community Mods Site for free.
Shade (7 Aug)
Well I guess on click function should be enough, I'll style it further for my needs from there.