StatusNet Querycards
Inspired by the Hovercards feature part of the StatusNet JavaScript API plugin, I wrote a small jQuery plugin that does a very similar thing.
There are two main reasons I wanted to write this:
-
It's standalone (as long as you include jQuery on your page, of course).
You don't need to install a StatusNet plugin on your instance, fiddle with OAuth, etc. -
It works with Remote Users
Currently, the hovercards part of the JavaScript API only appear for users on the instance the plugin is installed on.
To use it, you need a link that has an @-mention as text. Then, target it or its container with jQuery:
1 2 3 4 5 6 | <div class="hovercard"> <a href="http://identi.ca/x11r5">@x11r5</a> </div> <script> $('.hovercard').SnHoverCard(); </script> |
Will result in (hover your mouse over the link):
Now the next step is to tweak the code generated by EmbedNotice so that it works with Querycards.
In the meantime, you can always manually modify the HTML so that the mentions are in the proper format: <a href="http://example.com/username">@username</a>.
@cwebber Do they run on a dishwasher
As always, code's on Github.





