Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Chimo bfed35b8ca
Fix links and screenshot
vor 2 Jahren
locale Adding translations to Spanish and Esperanto vor 3 Jahren
.jscsrc Formatting vor 4 Jahren
.jshintrc Formatting vor 4 Jahren
LICENSE Add license info vor 6 Jahren
README.md Fix links and screenshot vor 2 Jahren
hovercard.css StatusNet -> GNU social vor 4 Jahren
hovercard.js group: Support example.org/group/$ID/id URLs vor 3 Jahren

README.md

GNU social Querycards

Intro

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.

Demo

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

Usage

Relevant snippet

<div class="hovercard">
  <a href="https://sn.chromic.org/chimo">@chimo</a>
</div>
<script>
  $('.hovercard').gsHovercard();
</script>

Complete example

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

Translations

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

Screenshot of a GNU social Querycard

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