Hovercards for GNU social

Chimo bfed35b8ca Fix links and screenshot 8 months ago
locale 9e6685fb48 Adding translations to Spanish and Esperanto 2 years ago
.jscsrc 5c1452e5dc Formatting 2 years ago
.jshintrc 5c1452e5dc Formatting 2 years ago
LICENSE 91cfeafe5b Add license info 4 years ago
README.md bfed35b8ca Fix links and screenshot 8 months ago
hovercard.css c3469cc321 StatusNet -> GNU social 2 years ago
hovercard.js d8402fde37 group: Support example.org/group/$ID/id URLs 2 years ago


GNU social Querycards


This tiny jQuery plugin scans your selectors for a link that contains an @-mention.
It adds a popup to those links that contains more information about this user.
The popup appears on when you hover over the @-mention.


Visit: https://chromic.org/gs-querycards/


Relevant snippet

<div class="hovercard">
  <a href="https://sn.chromic.org/chimo">@chimo</a>

Complete example

<!DOCTYPE html>
    <title>GNU social Querycards</title>
    <link rel="stylesheet" href="hovercard.css" />
    <div class="hovercard">
      <a href="https://sn.chromic.org/chimo">@chimo</a>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
    <script src="hovercard.js"></script>


If the widget has been translated in your language, you use it on your page by adding the locale before hovercard.js

To use the French translation, for example:

    <script src="locale/fr.js"></script>
    <script src="hovercard.js"></script>


Screenshot of a GNU social Querycard

You can of course change the look by including your own CSS on your page.