mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
fix tooltips
This commit is contained in:
parent
09b245ec27
commit
580082f408
@ -20,7 +20,7 @@
|
|||||||
<script src="/assets/vendor/qtip2/jquery.qtip.min.js"></script>
|
<script src="/assets/vendor/qtip2/jquery.qtip.min.js"></script>
|
||||||
<script src="/assets/vendor/zeroclipboard/ZeroClipboard.min.js"></script>
|
<script src="/assets/vendor/zeroclipboard/ZeroClipboard.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var window.annotations = {{ site.data.rules | jsonify }};
|
window.annotations = {{ site.data.rules | jsonify }};
|
||||||
</script>
|
</script>
|
||||||
<script src="/assets/js/app.js"></script>
|
<script src="/assets/js/app.js"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -46,8 +46,8 @@ class Choosealicense
|
|||||||
|
|
||||||
# Dynamically add annotations as title attribute to rule list items
|
# Dynamically add annotations as title attribute to rule list items
|
||||||
for category, rules of window.annotations
|
for category, rules of window.annotations
|
||||||
for label, text of rules
|
for rule in rules
|
||||||
$(".license-rules ul.license-#{category} li.#{label}").attr "title", text
|
$(".license-rules ul.license-#{category} li.#{rule["tag"]}").attr "title", rule["description"]
|
||||||
|
|
||||||
# Init tooltips on all rule list items
|
# Init tooltips on all rule list items
|
||||||
for category, label of @categories
|
for category, label of @categories
|
||||||
|
Loading…
x
Reference in New Issue
Block a user