From 58eff7e062091f7e4d684ddfcbbcc9138db1f781 Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Sun, 23 Jan 2022 02:11:13 -0500 Subject: [PATCH] commented out unuseable code --- index/projects/surprise/index.html | 2 +- index/projects/surprise/script/ip-grabber.js | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/index/projects/surprise/index.html b/index/projects/surprise/index.html index 8293f2d..4731d40 100644 --- a/index/projects/surprise/index.html +++ b/index/projects/surprise/index.html @@ -29,7 +29,7 @@

You just got your IP address grabbed!

- +


diff --git a/index/projects/surprise/script/ip-grabber.js b/index/projects/surprise/script/ip-grabber.js index 72f9512..bc5d1a6 100644 --- a/index/projects/surprise/script/ip-grabber.js +++ b/index/projects/surprise/script/ip-grabber.js @@ -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); -}; \ No newline at end of file +// 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); +// }; \ No newline at end of file