mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
add hint class to link/div
This commit is contained in:
parent
162ccdcc03
commit
f661eef702
1 changed files with 2 additions and 2 deletions
|
@ -11,9 +11,9 @@ def hint(txt, extra, context, tag, fullname):
|
||||||
# random id
|
# random id
|
||||||
domid = "hint%d" % id(txt)
|
domid = "hint%d" % id(txt)
|
||||||
return """
|
return """
|
||||||
<a href="#"
|
<a class=hint href="#"
|
||||||
onclick="this.style.display='none';document.getElementById('%s').style.display='block';return false;">
|
onclick="this.style.display='none';document.getElementById('%s').style.display='block';return false;">
|
||||||
%s</a><div id="%s" style="display: none">%s</div>
|
%s</a><div id="%s" class=hint style="display: none">%s</div>
|
||||||
""" % (domid, _("Show %s") % tag, domid, txt)
|
""" % (domid, _("Show %s") % tag, domid, txt)
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
|
|
Loading…
Reference in a new issue