Add info tooltip to subnet generator on /tools
This commit is contained in:
parent
6efef7b368
commit
1b390fe2db
|
@ -9,22 +9,22 @@
|
|||
}
|
||||
|
||||
body {
|
||||
padding-top: 40px;
|
||||
padding-bottom: 20px;
|
||||
padding-top: 40px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
* {
|
||||
font-family: "Noto Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
|
||||
font-family: "Noto Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
|
||||
}
|
||||
|
||||
.address {
|
||||
color: #f3ff4f;
|
||||
color: #f3ff4f;
|
||||
}
|
||||
|
||||
.tools table {
|
||||
table-layout: fixed;
|
||||
font-size: 1em;
|
||||
margin-bottom: 0;
|
||||
table-layout: fixed;
|
||||
font-size: 1em;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.tools table td {
|
||||
|
@ -33,25 +33,30 @@ body {
|
|||
}
|
||||
|
||||
.tools table .addr {
|
||||
width: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.tools table tr > * {
|
||||
border-top: none !important;
|
||||
border-top: none !important;
|
||||
}
|
||||
|
||||
.tools span.hoverinfo {
|
||||
font-size: 1.15em;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.tools .row > div {
|
||||
padding: 0;
|
||||
}
|
||||
.tools .panel {
|
||||
margin: 0;
|
||||
border: none;
|
||||
}
|
||||
.tools .row > div {
|
||||
padding: 0;
|
||||
}
|
||||
.tools .panel {
|
||||
margin: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
body {
|
||||
padding-top: 25px;
|
||||
}
|
||||
body {
|
||||
padding-top: 25px;
|
||||
}
|
||||
}
|
||||
|
||||
.address_in {
|
||||
|
@ -97,9 +102,20 @@ body {
|
|||
}
|
||||
|
||||
.ptr {
|
||||
font-size: 76%;
|
||||
font-size: 76%;
|
||||
}
|
||||
|
||||
#subnet_out {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
white-space: pre-wrap;
|
||||
|
||||
}
|
||||
|
||||
.tools .glyphicon-question-sign {
|
||||
color: #ffffff;
|
||||
cursor: default;
|
||||
opacity: 0.25;
|
||||
}
|
||||
|
||||
.tools .glyphicon-question-sign:hover {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
|
|
@ -24,6 +24,12 @@ subnetInput.oninput = subnetChanged;
|
|||
|
||||
$(document).ready(function() {
|
||||
randomChanged();
|
||||
$("span.glyphicon-question-sign").each(function(k, el) {
|
||||
$(el).attr("data-title", $(el).closest("tr").find("th").text()).popover({
|
||||
placement: "auto right",
|
||||
container: "body",
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function expandChanged(e){
|
||||
|
|
|
@ -92,6 +92,7 @@
|
|||
<div class="col-md-6">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<span class="glyphicon glyphicon-question-sign pull-right hoverinfo" data-toggle="popover" data-trigger="hover" data-content="Example usage: To generate a random /64 subnet out of fd00::/8, use fd00::/8/64 as input"></span>
|
||||
<h3 class="panel-title">Random Subnet</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
|
Loading…
Reference in a new issue