help tooltips on search box and share input box

pull/53/head
Zlatin Balevsky 2020-03-28 16:14:03 +00:00
parent 09db68182c
commit 355535e660
3 changed files with 34 additions and 0 deletions

View File

@ -592,3 +592,26 @@ textarea.copypaste {
z-index: -9999;
pointer-events: none;
}
.tooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted black;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 240px;
text-align: center;
border-radius: 6px;
padding: 5px 0;
background : #d8f0ff;
/* Position the tooltip */
position: absolute;
z-index: 1;
}
.tooltip:hover .tooltiptext {
visibility: visible;
}

View File

@ -39,6 +39,13 @@ if (viewAs == null)
<div class="menuitem shared">
<div class="menu-icon"></div>
<input type="submit" value="<%=Util._t("Share")%>">
<div class="tooltip"><%=Util._t("Help")%>
<span class="tooltiptext"><%=Util._t("Enter path to file or folder you wish to share.")%>
<br/>
<%=Util._t("When sharing files on network drives (like a NAS) please visit")%>
<a href="/MuWire/AdvancedSharing"><%=Util._t("Advanced Sharing")%></a>
</span>
</div>
</div>
</form>
<% if (viewAs.equals("tree")) { %>

View File

@ -8,6 +8,10 @@
<div class="menuitem search">
<div class="menu-icon"></div>
<input type="submit" value="<%=Util._t("Search")%>" />
<div class="tooltip">
<%=Util._t("Help")%>
<span class="tooltiptext"><%=Util._t("Enter keywords or file hash")%></span>
</div>
</div>
</form>
</div>