mirror of https://github.com/dnomd343/echoIP
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
1.8 KiB
84 lines
1.8 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Dnomd343 - IP</title>
|
|
</head>
|
|
<script src="https://cdn.staticfile.org/jquery/1.11.0/jquery.min.js"></script>
|
|
<script>
|
|
$(document).ready(function(){
|
|
$.get("/ip",function(data){
|
|
$("input").val(data);
|
|
});
|
|
$("table").hide();
|
|
$("button").click(function(){
|
|
$("p").text("Please Wait...");
|
|
$("table").hide();
|
|
$.get("/info/"+$("input").val(),function(data){
|
|
console.log(data);
|
|
$("p").text("");
|
|
$("table").show();
|
|
$("#ip").text(data.ip);
|
|
$("#as").text(data.as);
|
|
$("#city").text(data.city);
|
|
$("#region").text(data.region);
|
|
$("#country").text(data.country);
|
|
$("#timezone").text(data.timezone);
|
|
$("#loc").text(data.loc);
|
|
$("#isp").text(data.isp);
|
|
$("#scope").text(data.scope);
|
|
$("#detail").text(data.detail);
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
<body>
|
|
|
|
<h2>IP info</h2>
|
|
<input type="text">
|
|
<button>Submit</button>
|
|
<p></p>
|
|
<table border="1">
|
|
<tr>
|
|
<td>IP</th>
|
|
<td id="ip"></th>
|
|
</tr>
|
|
<tr>
|
|
<td>AS</th>
|
|
<td id="as"></th>
|
|
</tr>
|
|
<tr>
|
|
<td>City</th>
|
|
<td id="city"></th>
|
|
</tr>
|
|
<tr>
|
|
<td>Region</th>
|
|
<td id="region"></th>
|
|
</tr>
|
|
<tr>
|
|
<td>Country</th>
|
|
<td id="country"></th>
|
|
</tr>
|
|
<tr>
|
|
<td>Timezone</th>
|
|
<td id="timezone"></th>
|
|
</tr>
|
|
<tr>
|
|
<td>Location</th>
|
|
<td id="loc"></th>
|
|
</tr>
|
|
<tr>
|
|
<td>ISP</td>
|
|
<td id="isp"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Scope</td>
|
|
<td id="scope"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Detail</td>
|
|
<td id="detail"></td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>
|
|
|