Merge pull request #22283 from thekad/issue-22044

Removing duplicate custom-jekyll js
This commit is contained in:
Kubernetes Prow Robot
2020-07-14 09:55:21 -07:00
committed by GitHub
3 changed files with 0 additions and 17 deletions
-1
View File
@@ -153,7 +153,6 @@ css = [
"custom-jekyll/tags"
]
js = [
"custom-jekyll/tags",
"script"
]
-1
View File
@@ -84,6 +84,5 @@
{{ end }}
<script src="{{ "js/script.js" | relURL }}"></script>
<script src="{{ "js/custom-jekyll/tags.js" | relURL }}"></script>
{{ with .Params.js }}{{ range (split . ",") }}<script src="{{ (trim . " ") | relURL }}"></script><!-- custom js added -->
{{ end }}{{ else }}<!-- no custom js detected -->{{ end }}
-15
View File
@@ -1,15 +0,0 @@
$( 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);
});
});
});