-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
24 lines (23 loc) · 867 Bytes
/
index.html
File metadata and controls
24 lines (23 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>What's is my IP</title>
<link rel="icon" href="assets\images\icon.png">
<link rel="stylesheet" href="assets\css\main.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>
<body>
<script>
$.getJSON("https://api.my-ip.io/ip.json", function( data ) {
txt = $("#text").text();
out = txt + data.ip
$("#text").html(out);
});
</script>
<div class="logo">
<img src="assets\images\logo.png" alt="Puri Logo">
</div>
<div class="ip">
<h1 id=text>Your's public IP address is: </h1>
</div>