From 401f50c73cad6fc37817237f3f86ccc426bc3f42 Mon Sep 17 00:00:00 2001 From: rushilwiz Date: Thu, 6 Aug 2020 21:23:31 -0400 Subject: [PATCH] now actually gets ip --- index.html | 2 +- js/main.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index c4fff5c..ab5fa84 100644 --- a/index.html +++ b/index.html @@ -38,7 +38,7 @@
-

82.165.116.211

+

82.165.116.211

Hi,
I'm Rushil

And this
is not my website.

diff --git a/js/main.js b/js/main.js index da79fb3..b36cc6c 100644 --- a/js/main.js +++ b/js/main.js @@ -12,6 +12,11 @@ $(document).ready(function(){ $('.menu').click(function() { $('ul').toggleClass('active'); }) + + $.getJSON("https://api.ipify.org?format=json", + function(data) { + $(".ip").html(data.ip); + }) }); $(window).load(function() {