@@ -5,9 +5,13 @@ const language = navigator.language;
55const deviceWidth = screen . availWidth ;
66const deviceHeight = screen . availHeight ;
77const colorDepth = screen . colorDepth ;
8-
8+ let touchPoints = navigator . maxTouchPoints ;
9+ let touchSupport ;
910// Phrases
1011const memeoryPhrase = `Your device memory [RAM] is around ${ memory } GB.` ;
12+ if ( touchPoints > 1 ) { touchSupport = true }
13+ else { touchSupport = false }
14+ const touchPhrase = `Touch screen support: ${ touchSupport } `
1115const platformPhrase = `You are possibly running: ${ platform } .` ;
1216const hardwareConcurrencyPhrase = `You have ${ hardwareConcurrency } logical processor cores running.` ;
1317const languagePhrase = `Your device language is ${ language } .` ;
@@ -23,6 +27,7 @@ document.querySelector('.con').textContent = hardwareConcurrencyPhrase;
2327document . querySelector ( '.lang' ) . textContent = languagePhrase ;
2428document . querySelector ( '.depth' ) . textContent = colorDepthPhrase ;
2529document . querySelector ( '.dimentions' ) . textContent = dimentionPhrase ;
30+ document . querySelector ( '.touch' ) . textContent = touchPhrase
2631
2732// Try to get the graphichal processing unit info
2833const canv = document . getElementById ( "canv" ) ;
@@ -142,8 +147,8 @@ nowFetch().then(response => {
142147 deviceHeight : deviceHeight , language : language , colorDepth : colorDepth , isp : data . isp
143148 }
144149
145- const encodedDinamic = btoa ( JSON . stringify ( dynamicData ) )
146- const HASH = sha1 ( encodedDinamic )
150+ const encodedDynamic = btoa ( JSON . stringify ( dynamicData ) )
151+ const HASH = sha1 ( encodedDynamic )
147152 console . log ( "HASH:" + HASH )
148153 const hashPhrase = `Your identity HASH: ${ HASH } `
149154 const ipPhrase = `Your IP address is ${ data . ip } .` ;
0 commit comments