Respecting the --nosearchbar option of kiwix-serve

If `kiwix-serve` is run with the `--nosearchbar` option the toolbar is
disabled (hidden) in its viewer.

Note however that certain actions performed by the viewer merely with
the purpose of keeping the toolbar up-to-date are still carried out.
This commit is contained in:
Veloman Yunkan
2022-09-04 17:16:45 +04:00
parent 4e06bb6a08
commit cac2d212c6
4 changed files with 11 additions and 3 deletions

View File

@ -25,7 +25,7 @@
</head>
<body style="margin:0" onload="setupViewer()">
<div class="kiwix">
<div class="kiwix" style="display:none" id="kiwixtoolbarwrapper">
<div id="kiwixtoolbar" class="ui-widget-header">
<div class="kiwix_centered">
<div class="kiwix_searchform">