Merge pull request #10344 from SvenDowideit/pr_out_change_to_load_the_json_gz_file
Change to load the json.gz file Upstream-commit: a79d363d2dca151d4e0056e3ebd0481b6046e26f Component: engine
This commit is contained in:
20
components/engine/docs/theme/mkdocs/js/base.js
vendored
20
components/engine/docs/theme/mkdocs/js/base.js
vendored
@ -1,12 +1,6 @@
|
||||
$(document).ready(function ()
|
||||
{
|
||||
|
||||
// Tipue Search activation
|
||||
$('#tipue_search_input').tipuesearch({
|
||||
'mode': 'json',
|
||||
'contentLocation': '/search_content.json'
|
||||
});
|
||||
|
||||
prettyPrint();
|
||||
|
||||
// Resizing
|
||||
@ -51,6 +45,18 @@ $(document).ready(function ()
|
||||
},
|
||||
});
|
||||
|
||||
function getURLP(name)
|
||||
{
|
||||
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20')) || null;
|
||||
}
|
||||
if (getURLP("q")) {
|
||||
// Tipue Search activation
|
||||
$('#tipue_search_input').tipuesearch({
|
||||
'mode': 'json',
|
||||
'contentLocation': '/search_content.json.gz'
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
function resizeMenuDropdown ()
|
||||
@ -92,4 +98,4 @@ function getCookie(cname) {
|
||||
if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user