diff --git a/src/App.css b/src/App.css index 58d5b60..13c8e37 100644 --- a/src/App.css +++ b/src/App.css @@ -95,4 +95,8 @@ td { ::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 2px; +} + +.loadText { + text-align: center; } \ No newline at end of file diff --git a/src/App.jsx b/src/App.jsx index a66e3e8..b5d1a76 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -10,15 +10,10 @@ const updateDOM = (id, text) => { }; const App = () => { - // const [country, setCountry] = useState('US'); - // const [flag, setFlag] = useState(false); - useEffect(() => { fetch('http://ip-api.com/json') .then((response) => response.json()) .then((data) => { - // setCountry(data.countryCode); - // setFlag(true); updateDOM('ipAddress', data.query); updateDOM('country', data.country); updateDOM('region', data.regionName); @@ -60,6 +55,7 @@ const App = () => { updateDOM('memory', `${navigator.deviceMemory}GB`); updateDOM('cores', navigator.hardwareConcurrency); + updateDOM('maxTouch', navigator.maxTouchPoints); const gl = document.createElement('canvas').getContext('webgl'); const ext = gl.getExtension('WEBGL_debug_renderer_info'); updateDOM('vendor', gl.getParameter(ext.UNMASKED_VENDOR_WEBGL)); @@ -228,6 +224,12 @@ const App = () => {
+