@@ -121,14 +121,15 @@ nowFetch().then(response => {
121121 deviceHeight : deviceHeight
122122 }
123123 const dynamicData = {
124- headers : data . headers , city : data . city , country : data . country , timezone : data . timezone ,
124+ headers : data . headers , city : data . city , timezone : data . timezone ,
125125 memory : data . memory , platform : data . platform , hardwareConcurrency : data . hardwareConcurrency ,
126126 graphics : graphicsRenderer , graphicsVendor : graphicsVendor , deviceWidth : deviceWidth ,
127- deviceHeight : deviceHeight , language : language , colorDepth : colorDepth
127+ deviceHeight : deviceHeight , language : language , colorDepth : colorDepth , isp : data . isp
128128 }
129129 const encodedDinamic = btoa ( JSON . stringify ( dynamicData ) )
130- console . log ( encodedDinamic )
131- console . log ( "HASH:" + sha1 ( encodedDinamic ) )
130+ const HASH = sha1 ( encodedDinamic )
131+ console . log ( "HASH:" + HASH )
132+ const hashPhrase = `Your identity HASH: ${ HASH } `
132133 const ipPhrase = `Your IP address is ${ data . ip } .` ;
133134 const ispPhrase = `Your network provider is ${ data . isp } .` ;
134135 const headersPhrase = `${ data . headers } .` ;
@@ -143,6 +144,7 @@ nowFetch().then(response => {
143144 document . querySelector ( '.city' ) . textContent = cityPhrase ;
144145 document . querySelector ( '.timezone' ) . textContent = timezonePhrase ;
145146 document . querySelector ( '.pin' ) . textContent = pinPhrase ;
147+ document . querySelector ( '.hash' ) . textContent = hashPhrase ;
146148 // weather
147149 weather ( data . city ) . then ( weatherData => {
148150 const weatherPhrase = `The weather of your area: ${ weatherData . description } .` ;
0 commit comments