Merge pull request #22283 from thekad/issue-22044
Removing duplicate custom-jekyll js
This commit is contained in:
@@ -153,7 +153,6 @@ css = [
|
||||
"custom-jekyll/tags"
|
||||
]
|
||||
js = [
|
||||
"custom-jekyll/tags",
|
||||
"script"
|
||||
]
|
||||
|
||||
|
||||
@@ -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 }}
|
||||
@@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user