Ask coding questions

← Back to all posts
Why does the chessboard setup fine on the Chromebook but not the MacBook?
3465728974563 (51)

So whenever I run this game on my Chromebook the chessboard sets up fine and the game runs like it's supposed to, but whenever I run it on the MacBook the game pieces can be seen below the chessboard. Does anyone know why this happens?

Answered by Zavexeon (1163) [earned 5 cycles]
View Answer
Comments
hotnewtop
Zavexeon (1163)

What browser is the MacBook using?

(I'm assuming the Chromebook is using Chromium)

Zavexeon (1163)

@3465728974563 That's why. Safari has some weird support for certain webpage things. I'd suggest trying to optimize for Safari or just drop Safari support (since not many people use it).

3465728974563 (51)

@Zavexeon Ok thanks for the help! I'll try using chrome or firefox from now on.

3465728974563 (51)

@Zavexeon Also another problem I was having is how whenever I'm on google chrome the game keeps crashing because it says that it can not read property amount of undefined, but on safari it didn't give me any problems relating to that subject. Do you know why?

Zavexeon (1163)

@3465728974563 Can you open the console in Chrome and see the errors?

3465728974563 (51)

@Zavexeon Yes, but when I run the game it spams it so much that I have to completely close the tab out because I can't even reload it

AdCharity (1322)

May I suggest JavaScript to remove the 50 elements that you copy and pasted? btw you don't need a cookie libary, just json stringify/parse + local storage. In addition, I'm going to suggest either opacity: 0 to achieve a similar effect, or display: none if you want the element to take up no space.

3465728974563 (51)

@AdCharity What do you mean by the 50 elements that were copy and pasted? There were a lot of things that I had to just copy and paste because I didn't want to use too much time.

AdCharity (1322)

@3465728974563 like the chess board... you don't need to copy and paste like 60 different squares to make a chess board when you could use a loop instead of make it

RohilPatel (1583)

It may be simply, as @Zavexeon said, a browser issue, and I highly recommend using their default browser, Safari, but in order to make a real test, use the same browser on both to see if it's the computer that is goofing up. Like if this helps!

3465728974563 (51)

@RohilPatel Ok thanks. I was using safari on the MacBook and google chrome on the Chromebook so that might work.

RohilPatel (1583)

Yea. Safari is really weird now a days... a few weeks ago I couldn't make a fixed background to my project and that sucked... @3465728974563