mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
global: remove jQuery #452
This commit is contained in:
parent
8e0013647b
commit
d1fcf21461
3 changed files with 2 additions and 3 deletions
|
@ -206,7 +206,6 @@ function searchDetail() {
|
||||||
initLunrJson();
|
initLunrJson();
|
||||||
initLunrJs();
|
initLunrJs();
|
||||||
|
|
||||||
|
|
||||||
function startSearch(){
|
function startSearch(){
|
||||||
var url = new URL( window.location );
|
var url = new URL( window.location );
|
||||||
window.history.replaceState(url.toString(), '', url);
|
window.history.replaceState(url.toString(), '', url);
|
||||||
|
|
|
@ -1029,7 +1029,7 @@ function initSearch() {
|
||||||
window.relearn.runInitialSearch && window.relearn.runInitialSearch();
|
window.relearn.runInitialSearch && window.relearn.runInitialSearch();
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery(function() {
|
ready( function(){
|
||||||
initArrowNav();
|
initArrowNav();
|
||||||
initMermaid();
|
initMermaid();
|
||||||
initSwagger();
|
initSwagger();
|
||||||
|
|
|
@ -25,7 +25,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
||||||
|
|
||||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||||
|
|
||||||
function ready(fn) { if (document.readyState !== 'loading') { fn(); } else { document.addEventListener('DOMContentLoaded',fn); } }
|
function ready(fn) { if (document.readyState == 'complete') { fn(); } else { document.addEventListener('DOMContentLoaded',fn); } }
|
||||||
|
|
||||||
var variants = {
|
var variants = {
|
||||||
variant: '',
|
variant: '',
|
||||||
|
|
Loading…
Reference in a new issue