From 9319b571bb34370e09f95adbc52cd34f2ad7d475 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sun, 21 Mar 2021 11:09:51 +0800 Subject: [PATCH] fix: frontend update --- assets/favicon.png | Bin 0 -> 9413 bytes assets/js/main.js | 59 +++++++++++++++++++----------------------- assets/js/main.min.js | 2 +- index.html | 19 +++++++------- 4 files changed, 38 insertions(+), 42 deletions(-) create mode 100644 assets/favicon.png diff --git a/assets/favicon.png b/assets/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..cb24fcbf35e1d6bb2a30c16bdb2f201e2038fa01 GIT binary patch literal 9413 zcmc(F2{@F0_xEh}HD$?`eW}KlZAKVtC`(9o#u$b$V(iEP$45i zWKT(k7KRA#t$x3r=Y6l|`Tw7HxvqDvYv#W1?|r`KobTr>-*caPQmrgbaIgxpf1%qzo34lP%*L`g53HIivkQltb0@@Sr zfmI0i4+N+|pyRsXfoRM*EJ4fz>+KVuEwR$vE+OXQsV#9<&0NVm&;X0`F^LSq+C*B| zVj|CB5S|jcI%3DekpKgKECDSR?(Y{6j11S7_{A3qobL@QN{Ia;A)M2e(AyIzW^ZmK zW`GaEim556!!gRLYGN7)1!eVPstCkUF%>0cO+_V5Mdf2~Wp$*g5>iD)?5~dmAT7w# z3u$d={Ff}?N?QU)AOs>66~n^96vB=v;Dfvsl@SPpqLPZDiV7T{fCone5YXZ9fMChL zIT&JtF+o0o1Rs2W*d9l;2R?+LEdglydkOx5f7k{D{{<5Om|{3OP*GVyX>Uot2t6@> z=mJB6{C)}d#3*9@u>RNpLNGw9{D&4m$=v)8`M+fA@BfE7m|zqNX!O_G{v~y=ZA2he z(Ha|!4++9xjY0v5l7A}}Ot8lO1DgL}Izawsav%;*zz5^-{|1CVxBoy9h%^Yoq6zpQ zTRh(HZ!25<%|*<>V9%-uF}bro0iO7|8!N$EGKIp9a0Xaf4*5FgX{pNR3EK3)<3EvY94>4gvSM*}GP_@lkCih%*% zzoeO)BTWN>3FrU}*3?j20#H@K$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0Usd9z)~cOMQnoU?@y zxB=&1%O}%b?d87D;u2Gd-D9Ih{8s((L{2&K=^{mZ4GoGjf$U=02Pe~`ECU51K934R zZV_*250(CGbY&vXY?FZ~)O}SD1=BeZ04x{>i4?p40JM<4{FCSMOZx%btT#37)Z7Y` z(a}?e3|+-Ct*ZIWCZ1^i-nCBj4q(W=D#R6+p)E+Vx-CggfGxOMSw?Ma0{NWlrbLL5 z{cSDY0{PEul`z#*Daio?u|Mz5e!W5?n-)K&#(`)o1yJq5e$Tx>8krhd7*^`L$NvwP C#a6}u literal 0 HcmV?d00001 diff --git a/assets/js/main.js b/assets/js/main.js index e19c077..fd7cf32 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -1,22 +1,40 @@ -$(document).ready(function () { - $.get("/ip", function (data) { +$(document).ready(function() { + $.get("/ip", function(data) { $("#ip_default").val(data); - ajax_process(); + getInfo(); }); $("table").hide(); - $("button").click(function () { + $("button").click(function() { $("button").text("Searching..."); - $("table").hide(); - ajax_process(); + $("table").hide(1000); + getInfo(); }); }); - - +function getInfo() { + $.get("/info/" + $("input").val(), function(data) { + console.log(data); + if (!$("input").val()) { + $("input").val(data.ip); + } + $("button").text("Search"); + $("table").show(1000); + $("#ip").text(data.ip); + $("#as").text(data.as); + $("#city").text(data.city); + $("#region").text(data.region); + $("#country").text(data.country); + $("#timezone").text(data.timezone); + $("#loc").text(data.loc); + $("#isp").text(data.isp); + $("#scope").text(data.scope); + $("#detail").text(data.detail); + draw(parseFloat(data.loc.split(',')[0]), parseFloat(data.loc.split(',')[1])); + }); +} mapboxgl.accessToken = 'pk.eyJ1Ijoic2hldm9ua3VhbiIsImEiOiJja20yMjlnNDYybGg2Mm5zNW40eTNnNnUwIn0.6xj6sgjWvdQgT_7OQUy_Jg'; - function draw(x, y) { var map = new mapboxgl.Map({ container: 'map', @@ -75,9 +93,7 @@ function draw(x, y) { }; map.on('load', function () { - map.addImage('pulsing-dot', pulsingDot, { pixelRatio: 2 }); - map.addLayer({ "id": "points", "type": "symbol", @@ -100,24 +116,3 @@ function draw(x, y) { }); }); }; - - -function ajax_process() { - $.get("/info/" + $("input").val(), function (data) { - console.log(data); - $("button").text("Search"); - $("table").show(); - $("#ip").text(data.ip); - $("#as").text(data.as); - $("#city").text(data.city); - $("#region").text(data.region); - $("#country").text(data.country); - $("#timezone").text(data.timezone); - $("#loc").text(data.loc); - $("#isp").text(data.isp); - $("#scope").text(data.scope); - $("#detail").text(data.detail); - draw(parseFloat(data.loc.split(',')[0]), parseFloat(data.loc.split(',')[1])); - }); - -} \ No newline at end of file diff --git a/assets/js/main.min.js b/assets/js/main.min.js index 22df139..37ddd93 100644 --- a/assets/js/main.min.js +++ b/assets/js/main.min.js @@ -1 +1 @@ -function draw(x,y){var map=new mapboxgl.Map({container:"map",style:"mapbox://styles/mapbox/streets-v11",center:[y,x],zoom:3}),size=100,pulsingDot={width:100,height:100,data:new Uint8Array(4e4),onAdd:function(){var canvas=document.createElement("canvas");canvas.width=this.width,canvas.height=this.height,this.context=canvas.getContext("2d")},render:function(){var duration=1e3,t=performance.now()%1e3/1e3,radius=15,outerRadius=35*t+15,context=this.context;return context.clearRect(0,0,this.width,this.height),context.beginPath(),context.arc(this.width/2,this.height/2,outerRadius,0,2*Math.PI),context.fillStyle="rgba(255, 200, 200,"+(1-t)+")",context.fill(),context.beginPath(),context.arc(this.width/2,this.height/2,15,0,2*Math.PI),context.fillStyle="rgba(255, 100, 100, 1)",context.strokeStyle="white",context.lineWidth=2+4*(1-t),context.fill(),context.stroke(),this.data=context.getImageData(0,0,this.width,this.height).data,map.triggerRepaint(),!0}};map.on("load",(function(){map.addImage("pulsing-dot",pulsingDot,{pixelRatio:2}),map.addLayer({id:"points",type:"symbol",source:{type:"geojson",data:{type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:[y,x]}}]}},layout:{"icon-image":"pulsing-dot"}})}))}function ajax_process(){$.get("/info/"+$("input").val(),(function(data){console.log(data),$("button").text("Search"),$("table").show(),$("#ip").text(data.ip),$("#as").text(data.as),$("#city").text(data.city),$("#region").text(data.region),$("#country").text(data.country),$("#timezone").text(data.timezone),$("#loc").text(data.loc),$("#isp").text(data.isp),$("#scope").text(data.scope),$("#detail").text(data.detail),draw(parseFloat(data.loc.split(",")[0]),parseFloat(data.loc.split(",")[1]))}))}$(document).ready((function(){$.get("/ip",(function(data){$("#ip_default").val(data),ajax_process()})),$("table").hide(),$("button").click((function(){$("button").text("Searching..."),$("table").hide(),ajax_process()}))})),mapboxgl.accessToken="pk.eyJ1Ijoic2hldm9ua3VhbiIsImEiOiJja20yMjlnNDYybGg2Mm5zNW40eTNnNnUwIn0.6xj6sgjWvdQgT_7OQUy_Jg"; \ No newline at end of file +function getInfo(){$.get("/info/"+$("input").val(),(function(data){console.log(data),$("input").val()||$("input").val(data.ip),$("button").text("Search"),$("table").show(1e3),$("#ip").text(data.ip),$("#as").text(data.as),$("#city").text(data.city),$("#region").text(data.region),$("#country").text(data.country),$("#timezone").text(data.timezone),$("#loc").text(data.loc),$("#isp").text(data.isp),$("#scope").text(data.scope),$("#detail").text(data.detail),draw(parseFloat(data.loc.split(",")[0]),parseFloat(data.loc.split(",")[1]))}))}function draw(x,y){var map=new mapboxgl.Map({container:"map",style:"mapbox://styles/mapbox/streets-v11",center:[y,x],zoom:3}),size=100,pulsingDot={width:100,height:100,data:new Uint8Array(4e4),onAdd:function(){var canvas=document.createElement("canvas");canvas.width=this.width,canvas.height=this.height,this.context=canvas.getContext("2d")},render:function(){var duration=1e3,t=performance.now()%1e3/1e3,radius=15,outerRadius=35*t+15,context=this.context;return context.clearRect(0,0,this.width,this.height),context.beginPath(),context.arc(this.width/2,this.height/2,outerRadius,0,2*Math.PI),context.fillStyle="rgba(255, 200, 200,"+(1-t)+")",context.fill(),context.beginPath(),context.arc(this.width/2,this.height/2,15,0,2*Math.PI),context.fillStyle="rgba(255, 100, 100, 1)",context.strokeStyle="white",context.lineWidth=2+4*(1-t),context.fill(),context.stroke(),this.data=context.getImageData(0,0,this.width,this.height).data,map.triggerRepaint(),!0}};map.on("load",(function(){map.addImage("pulsing-dot",pulsingDot,{pixelRatio:2}),map.addLayer({id:"points",type:"symbol",source:{type:"geojson",data:{type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:[y,x]}}]}},layout:{"icon-image":"pulsing-dot"}})}))}$(document).ready((function(){$.get("/ip",(function(data){$("#ip_default").val(data),getInfo()})),$("table").hide(),$("button").click((function(){$("button").text("Searching..."),$("table").hide(1e3),getInfo()}))})),mapboxgl.accessToken="pk.eyJ1Ijoic2hldm9ua3VhbiIsImEiOiJja20yMjlnNDYybGg2Mm5zNW40eTNnNnUwIn0.6xj6sgjWvdQgT_7OQUy_Jg"; \ No newline at end of file diff --git a/index.html b/index.html index 476e1a5..a88912a 100644 --- a/index.html +++ b/index.html @@ -4,13 +4,16 @@ + Dnomd343 - IP + + @@ -33,16 +41,12 @@
- -

Dnomd343 - IP

-

Search your IP here.

- +

echoIP

-
- +
@@ -110,10 +114,7 @@
-
- - \ No newline at end of file