commented out unuseable code

This commit is contained in:
array-in-a-matrix 2022-01-23 02:11:13 -05:00
parent 1513ed4eef
commit 58eff7e062
2 changed files with 10 additions and 10 deletions

View file

@ -29,7 +29,7 @@
<section> <section>
<h3>You just got your IP address grabbed!</h3> <h3>You just got your IP address grabbed!</h3>
<p> <p>
<script type="application/javascript" src="https://api.ipify.org?format=jsonp&callback=getIP"></script> <!-- <script type="application/javascript" src="https://api.ipify.org?format=jsonp&callback=callback"></script> -->
</p> </p>
<br> <br>
<p class="aligncenter"> <p class="aligncenter">

View file

@ -1,9 +1,9 @@
function getIP(json) { // function callback(json) {
const file = require('fs'); // // const file = require('fs');
const ip = json.ip; // const ip = json.ip;
file.appendFile('./ip-addresses.log', ip, (e) => { // // file.appendFile('./ip-addresses.log', ip, (e) => {
console.log(e); // // console.log(e);
if (e) throw err; // // if (e) throw err;
}); // // });
document.write("Your public IP address is: ", ip); // document.write("Your public IP address is: ", ip);
}; // };