fixed suggestion system

This commit is contained in:
Manan Jethwani 2021-04-09 12:11:29 +05:30 committed by Matthieu Gautier
parent 32cc6b0dcb
commit 5fdc51b23e
2 changed files with 83 additions and 80 deletions

View File

@ -3,6 +3,8 @@ function htmlDecode(input) {
return doc.documentElement.textContent; return doc.documentElement.textContent;
} }
const jq = jQuery.noConflict(true);
jq(document).ready(() => {
(function ($) { (function ($) {
const root = $( `link[type='root']` ).attr("href"); const root = $( `link[type='root']` ).attr("href");
const bookName = window.location.pathname.split(`${root}/`)[1].split('/')[0]; const bookName = window.location.pathname.split(`${root}/`)[1].split('/')[0];
@ -82,4 +84,5 @@ function htmlDecode(input) {
$('label[for="kiwix_button_show_toggle"], .kiwix_button_cont').removeClass('searching'); $('label[for="kiwix_button_show_toggle"], .kiwix_button_cont').removeClass('searching');
} }
}); });
})(jQuery); })(jq);
})

View File

@ -1,6 +1,6 @@
<link type="text/css" href="{{root}}/skin/jquery-ui/jquery-ui.min.css" rel="Stylesheet" /> <link type="text/css" href="{{root}}/skin/jquery-ui/jquery-ui.min.css" rel="Stylesheet" />
<link type="text/css" href="{{root}}/skin/jquery-ui/jquery-ui.theme.min.css" rel="Stylesheet" /> <link type="text/css" href="{{root}}/skin/jquery-ui/jquery-ui.theme.min.css" rel="Stylesheet" />
<link type="text/css" href="{{root}}/skin/taskbar.css" rel="Stylesheet" /> <link type="text/css" href="{{root}}/skin/taskbar.css" rel="Stylesheet" />
<script type="text/javascript" src="{{root}}/skin/jquery-ui/external/jquery/jquery.js"></script> <script type="text/javascript" src="{{root}}/skin/jquery-ui/external/jquery/jquery.js" defer></script>
<script type="text/javascript" src="{{root}}/skin/jquery-ui/jquery-ui.min.js"></script> <script type="text/javascript" src="{{root}}/skin/jquery-ui/jquery-ui.min.js" defer></script>
<script type="text/javascript" src="{{root}}/skin/taskbar.js" async></script> <script type="text/javascript" src="{{root}}/skin/taskbar.js" defer></script>