make responsive
All checks were successful
Build docker container / Build image (push) Successful in 30s
All checks were successful
Build docker container / Build image (push) Successful in 30s
This commit is contained in:
parent
ef915583aa
commit
d8776bb51b
@ -1,13 +1,13 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>My IP</title>
|
<title>My IP</title>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, sans-serif;
|
||||||
font-size: 5rem;
|
font-size: 2rem;
|
||||||
color: #333;
|
color: #333;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@ -19,13 +19,13 @@
|
|||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
background: #fff;
|
max-width: 90%;
|
||||||
border-radius: 8px;
|
width: 100%;
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
li {
|
li {
|
||||||
padding: 15px 20px;
|
padding: 15px 0px;
|
||||||
border-bottom: 1px solid #ddd;
|
border-bottom: 1px solid #ddd;
|
||||||
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
li:last-child {
|
li:last-child {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
@ -40,15 +40,25 @@
|
|||||||
b {
|
b {
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
@media (min-width: 600px) {
|
||||||
|
body {
|
||||||
|
font-size: 3rem;
|
||||||
|
padding: 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 900px) {
|
||||||
|
body {
|
||||||
|
font-size: 4rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<ul id="ips">
|
<ul id="ips">
|
||||||
<li>
|
<li>
|
||||||
<span class="noselect">{{ .Type }}: </span><b>{{ .Address }}</b>
|
<span class="noselect">{{ .Type }}: </span><b>{{ .Address }}</b>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</body>
|
|
||||||
<script>
|
<script>
|
||||||
async function getIp() {
|
async function getIp() {
|
||||||
const isIpv4 = "{{ .Type }}" == "IPv4";
|
const isIpv4 = "{{ .Type }}" == "IPv4";
|
||||||
@ -70,4 +80,5 @@
|
|||||||
}
|
}
|
||||||
getIp();
|
getIp();
|
||||||
</script>
|
</script>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user