mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-24 04:54:51 -04:00
Small visual improvements on the home page
This commit is contained in:
parent
058533ae94
commit
4c1decb334
@ -51,7 +51,7 @@
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand">Evopedia 1.1.0-SNAPSHOT</a>
|
||||
<a class="navbar-brand">Evopedia 1.1-SNAPSHOT</a>
|
||||
</div>
|
||||
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
@ -73,10 +73,11 @@
|
||||
<a class="btn btn-default" id="searchTitles" href="#"><span class="glyphicon glyphicon-search"></span></a>
|
||||
</span>
|
||||
</div>
|
||||
or <a href="#" id="btnArticlesNearby">Find articles around me (work in progress)</a><br/>
|
||||
<div id="articlesNearbyExpertOptions" style="display: none;">
|
||||
Latitude/Longitude/MaxDistance:
|
||||
<input type="text" id="latitude" size="8" /> <input type="text" id="longitude" size="8" /> <input type="text" id="maxDistance" size="8" /><br/>
|
||||
or <a href="#" id="btnRandomArticle">Go to a random article</a><br/>
|
||||
</div>
|
||||
or <a href="#" id="btnArticlesNearby">Find articles around me</a> (<a href="#" id="btnToggleArticlesNearbyExpertMode">toggle</a> expert mode) or <a href="#" id="btnRandomArticle">Go to a random article</a><br/>
|
||||
<div id="searchingForTitles" style="position: relative; z-index: 10; top: 20px; height: 0px; display: none;">
|
||||
<img src="img/spinner.gif" alt="Please wait..." />
|
||||
</div>
|
||||
|
@ -73,6 +73,14 @@ define(function(require) {
|
||||
$('#navbarToggle').click();
|
||||
}
|
||||
});
|
||||
$("#btnToggleArticlesNearbyExpertMode").on("click", function(e) {
|
||||
if ($('#articlesNearbyExpertOptions').is(":visible")) {
|
||||
$("#articlesNearbyExpertOptions").hide();
|
||||
}
|
||||
else {
|
||||
$("#articlesNearbyExpertOptions").show();
|
||||
}
|
||||
});
|
||||
$("#btnRandomArticle").on("click", function(e) {
|
||||
goToRandomArticle();
|
||||
$("#welcomeText").hide();
|
||||
@ -333,7 +341,7 @@ define(function(require) {
|
||||
}
|
||||
var titleListDivHtml;
|
||||
if (maxTitles >= 0 && nbTitles >= maxTitles) {
|
||||
titleListDivHtml = "More than " + maxTitles + " titles found (only " + maxTitles + " displayed) :<br/>";
|
||||
titleListDivHtml = maxTitles + " first titles below (refine your search) :<br/>";
|
||||
}
|
||||
else {
|
||||
titleListDivHtml = nbTitles + " titles found :<br/>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user