Fix/re-introduce custom Jekyll tags for better glossary integration (#6163)

This commit is contained in:
Jessica Yao
2017-11-06 13:36:24 -08:00
committed by Zach Corleissen
parent 0abbfdc12e
commit 53cf7defd5
52 changed files with 546 additions and 225 deletions
+15
View File
@@ -0,0 +1,15 @@
$( document ).ready(function() {
// Shows permalink when term name is hovered over
$(".glossary-injector").each(function() {
var placeholder = $("#" + $(this).data("placeholder-id"));
var originalContent = placeholder.html();
var glossaryDef = $($(this).find(".injector-def")[0]).html();
$(this).mouseenter(function() {
placeholder.html(glossaryDef);
}).mouseleave(function(){
placeholder.html(originalContent);
});
});
});