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>
<h3>You just got your IP address grabbed!</h3>
<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>
<br>
<p class="aligncenter">

View file

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