ip grabber
This commit is contained in:
parent
11466ae902
commit
fe5fd55523
5 changed files with 73 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
*hidden*
|
||||
*secret*
|
||||
*private*
|
||||
*private*
|
||||
*.log
|
|
@ -60,6 +60,24 @@
|
|||
<a href="/res/downloads/DarkNewRoman.ttf">Download font (truetype 28.9 KiB)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>IP address gabber</td>
|
||||
<td>
|
||||
Grabs your IPv4 (Internet Protocol) Address.
|
||||
</td>
|
||||
<td>
|
||||
<a href="./ip-grabber/">https://arrayinamatrix.xyz/index/projects/ip-grabber/</a>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- <tr>
|
||||
<td>Other Projects</td>
|
||||
<td>
|
||||
Description
|
||||
</td>
|
||||
<td>
|
||||
<a href="#">Link</a>
|
||||
</td>
|
||||
</tr> -->
|
||||
</tbody>
|
||||
</table>
|
||||
<footer class="site-footer">
|
||||
|
|
44
index/projects/ip-grabber/index.html
Normal file
44
index/projects/ip-grabber/index.html
Normal file
|
@ -0,0 +1,44 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Surprise!!!</title>
|
||||
<link rel="stylesheet" href="/style/style.css" />
|
||||
<link rel="icon" type="image/x-icon" href="/res/site/icons/favicon.ico">
|
||||
<script type="application/javascript" src="./script/ip-grabber.js"></script>
|
||||
<style>
|
||||
.aligncenter {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="page-header" role="banner">
|
||||
<h1 class="project-name">IP Grabber</h1>
|
||||
<h2 class="project-tagline">Using ipify.org API</h2>
|
||||
|
||||
<a href="/" class="btn">Home</a>
|
||||
<a href="../" class="btn">Projects</a>
|
||||
</header>
|
||||
|
||||
<main id="content" class="main-content" role="main">
|
||||
<section>
|
||||
<h3>You just got your IP address grabbed!</h3>
|
||||
<p>
|
||||
<script type="application/javascript" src="https://api.ipify.org?format=jsonp&callback=getIP"></script>
|
||||
</p>
|
||||
<br>
|
||||
<p class="aligncenter">
|
||||
<img src="/res/site/images/trollface.gif" alt="You mad bro?, Problem" /></p>
|
||||
</section>
|
||||
<footer class="site-footer">
|
||||
You have reached the end of the page. (ノ◕ヮ◕)ノ*:・゚✧
|
||||
</footer>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
</html>
|
9
index/projects/ip-grabber/script/ip-grabber.js
Normal file
9
index/projects/ip-grabber/script/ip-grabber.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
fs = require('fs');
|
||||
|
||||
function getIP(json) {
|
||||
document.write("Your public IP address is: ", json.ip);
|
||||
|
||||
fs.writeFile('ip-addresses.log', json.ip, function (err) {
|
||||
if (err) return console.log(err);
|
||||
});
|
||||
}
|
BIN
res/site/images/trollface.gif
Normal file
BIN
res/site/images/trollface.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 97 KiB |
Loading…
Add table
Reference in a new issue