mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-22 20:13:35 -04:00
Remove the "expert mode" for geolocation, and enhance the visual appearance of home page
This commit is contained in:
parent
0674f36d05
commit
edec092256
@ -52,4 +52,16 @@
|
||||
max-width: 80%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.nopadding {
|
||||
padding-right: 1px !important;
|
||||
padding-left: 1px !important;
|
||||
}
|
||||
|
||||
#searchingForTitles .floating {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
top: 20px;
|
||||
height: 0px;
|
||||
}
|
@ -66,19 +66,24 @@
|
||||
|
||||
|
||||
<div class="container">
|
||||
<form id="formTitleSearch" class="form-inline">
|
||||
<div class="input-group">
|
||||
<input type="text" id="prefix" placeholder="Search Wikipedia..." class="form-control" />
|
||||
<span class="input-group-btn">
|
||||
<a class="btn btn-default" id="searchTitles" href="#"><span class="glyphicon glyphicon-search"></span></a>
|
||||
</span>
|
||||
<form id="formTitleSearch">
|
||||
<div class="row">
|
||||
<span class="nopadding col-md-offset-1 col-sm-offset-1 col-md-8 col-sm-8 col-xs-7">
|
||||
<span class="input-group">
|
||||
<input type="text" id="prefix" placeholder="Search Wikipedia..." class="form-control" />
|
||||
<span class="input-group-btn">
|
||||
<a class="btn btn-default" id="searchTitles" href="#"><span class="glyphicon glyphicon-search"></span></a>
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
<span class="nopadding col-md-2 col-sm-2 col-xs-5">
|
||||
<span class="btn-group btn-group-xs">
|
||||
<a class="btn btn-default btn-xs" id="btnArticlesNearby" href="#"><span class="glyphicon glyphicon-screenshot"></span><small><br/>Nearby</small></a>
|
||||
<a class="btn btn-default btn-xs" id="btnRandomArticle" href="#"><span class="glyphicon glyphicon-random"></span><small><br/>Random</small></a>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<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/>
|
||||
</div>
|
||||
or <a href="#" id="btnArticlesNearby">Find articles around me</a> (toggle <a href="#" id="btnToggleArticlesNearbyExpertMode">expert mode</a>) 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;">
|
||||
<div id="searchingForTitles" class="floating" style="display: none;">
|
||||
<img src="img/spinner.gif" alt="Please wait..." />
|
||||
</div>
|
||||
</form>
|
||||
|
@ -75,14 +75,6 @@ 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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user