html: Minor adjustments

This commit is contained in:
Martin Polden 2020-12-17 18:36:01 +01:00
parent ab8f90431b
commit 98f9efbfb8
2 changed files with 14 additions and 16 deletions

View File

@ -71,14 +71,14 @@
<!-- COLUMN 1 --> <!-- COLUMN 1 -->
<div class="pure-u-1 pure-u-md-1-2 col"> <div class="pure-u-1 pure-u-md-1-2 col">
<div class="l-box"> <div class="l-box">
<h2>What do we know about this IP Address?</h2> <h2>What do we know about this IP address?</h2>
<table class="info-table"> <table class="info-table">
<tr> <tr>
<th scope="row">IP Address</th> <th scope="row">IP address</th>
<td>{{ .IP }}</td> <td>{{ .IP }}</td>
</tr> </tr>
<tr> <tr>
<th scope="row">IP Decimal</th> <th scope="row">IP address (decimal)</th>
<td>{{ .IPDecimal }}</td> <td>{{ .IPDecimal }}</td>
</tr> </tr>
{{ if .Country }} {{ if .Country }}
@ -88,32 +88,32 @@
</tr> </tr>
{{ end }} {{ if .CountryISO }} {{ end }} {{ if .CountryISO }}
<tr> <tr>
<th scope="row">CountryISO</th> <th scope="row">Country (ISO code)</th>
<td>{{ .CountryISO }}</td> <td>{{ .CountryISO }}</td>
</tr> </tr>
{{ end }} {{ if .CountryEU }} {{ end }} {{ if .CountryEU }}
<tr> <tr>
<th scope="row">CountryEU</th> <th scope="row">In EU?</th>
<td>{{ .CountryEU }}</td> <td>{{ .CountryEU }}</td>
</tr> </tr>
{{ end }} {{ if .RegionName }} {{ end }} {{ if .RegionName }}
<tr> <tr>
<th scope="row">RegionName</th> <th scope="row">Region</th>
<td>{{ .RegionName }}</td> <td>{{ .RegionName }}</td>
</tr> </tr>
{{ end }} {{ if .RegionCode }} {{ end }} {{ if .RegionCode }}
<tr> <tr>
<th scope="row">RegionCode</th> <th scope="row">Region code</th>
<td>{{ .RegionCode }}</td> <td>{{ .RegionCode }}</td>
</tr> </tr>
{{ end }} {{ if .MetroCode }} {{ end }} {{ if .MetroCode }}
<tr> <tr>
<th scope="row">MetroCode</th> <th scope="row">Metro code</th>
<td>{{ .MetroCode }}</td> <td>{{ .MetroCode }}</td>
</tr> </tr>
{{ end }} {{ if .PostalCode }} {{ end }} {{ if .PostalCode }}
<tr> <tr>
<th scope="row">PostalCode</th> <th scope="row">Postal code</th>
<td>{{ .PostalCode }}</td> <td>{{ .PostalCode }}</td>
</tr> </tr>
{{ end }} {{ if .City }} {{ end }} {{ if .City }}
@ -143,7 +143,7 @@
</tr> </tr>
{{ end }} {{ if .ASNOrg }} {{ end }} {{ if .ASNOrg }}
<tr> <tr>
<th scope="row">ASNOrg</th> <th scope="row">ASN (organization)</th>
<td>{{ .ASNOrg }}</td> <td>{{ .ASNOrg }}</td>
</tr> </tr>
{{ end }} {{ if .Hostname }} {{ end }} {{ if .Hostname }}
@ -153,17 +153,17 @@
</tr> </tr>
{{ end }} {{ if .UserAgent }} {{ if .UserAgent.Comment }} {{ end }} {{ if .UserAgent }} {{ if .UserAgent.Comment }}
<tr> <tr>
<th scope="row">User Agent</th> <th scope="row">User agent</th>
<td>{{ .UserAgent.Product }}/{{ .UserAgent.Version }}</td> <td>{{ .UserAgent.Product }}/{{ .UserAgent.Version }}</td>
</tr> </tr>
{{ end }} {{ if .UserAgent.Comment }} {{ end }} {{ if .UserAgent.Comment }}
<tr> <tr>
<th scope="row">Comment</th> <th scope="row">User agent: Comment</th>
<td>{{ .UserAgent.Comment }}</td> <td>{{ .UserAgent.Comment }}</td>
</tr> </tr>
{{ end }} {{ if .UserAgent.RawValue }} {{ end }} {{ if .UserAgent.RawValue }}
<tr> <tr>
<th scope="row">Raw Value</th> <th scope="row">User agent: Raw</th>
<td>{{ .UserAgent.RawValue }}</td> <td>{{ .UserAgent.RawValue }}</td>
</tr> </tr>
{{ end }} {{ end }} {{ end }} {{ end }}
@ -269,12 +269,11 @@
<form class="pure-form"> <form class="pure-form">
<fieldset> <fieldset>
<label for="ipCheckBox"> <label for="ipCheckBox">
Check another IP
<input <input
id="ipInput" id="ipInput"
class="medium-input pure-input" class="medium-input pure-input"
type="text" type="text"
placeholder="1.1.1.1" placeholder="IP to query"
onkeyup="updateIP(this.value)" onkeyup="updateIP(this.value)"
/> />
</label> </label>

View File

@ -90,7 +90,6 @@
.narrow-input { .narrow-input {
width: 5.5em; width: 5.5em;
height: 1.3em;
margin-top: 0.2em; margin-top: 0.2em;
} }