File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -63,18 +63,20 @@ if (deviceWidth < 990) {
6363}
6464function guessIfTheDeviceIsOnTable ( x , y , z ) {
6565 if ( x === 0 && y === 0 && z === 0 ) {
66- return document . querySelector ( '.rotation-rate' ) . textContent = `Your device is on something like a table` ;
67- }
68- return document . querySelector ( '.rotation-rate' ) . textContent = `Your device is in your hands` ;
66+ document . querySelector ( '.rotation-rate' ) . textContent = `Your device is on something like a table` ;
67+ } else {
68+ document . querySelector ( '.rotation-rate' ) . textContent = `Your device is in your hands` ;
69+ }
6970}
7071function getIfDeviceInAcceleration ( x , y , z ) {
7172 let a = x * x ;
7273 let b = y * y ;
7374 let c = z * z ;
7475 if ( a + b + c > 0 ) {
75- return document . querySelector ( '.acceleration' ) . textContent = `Your device is in accelerated motion` ;
76- }
77- document . querySelector ( '.acceleration' ) . textContent = `Your device isnt accelerating` ;
76+ document . querySelector ( '.acceleration' ) . textContent = `Your device is in accelerated motion` ;
77+ } else {
78+ document . querySelector ( '.acceleration' ) . textContent = `Your device isnt accelerating` ;
79+ }
7880}
7981// cookie string send
8082async function bakeCookie ( data ) {
You can’t perform that action at this time.
0 commit comments