Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Board without pieces #235

Open
florianingerl opened this issue Dec 24, 2022 · 2 comments
Open

Board without pieces #235

florianingerl opened this issue Dec 24, 2022 · 2 comments

Comments

@florianingerl
Copy link

florianingerl commented Dec 24, 2022

Hello Chris,
I tried to use the library and wrote this code

`

<title>Test chessboard.js</title>
<div id="myBoard" style="width: 400px"></div>

<script src="jquery-3.6.3/jquery-3.6.3.js"></script>
<script src="chessboardjs-1.0.0/js/chessboard-1.0.0.js"></script>
<script>
    var ruyLopez = 'r1bqkbnr/pppp1ppp/2n5/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R'
    var board = Chessboard('myBoard', ruyLopez)
</script>
`

But if I do it, the board is empty.
I'm not that familiar with JavaScript. Can you add some documentation somewhere of how to correctly use the library.

@juangocc
Copy link

juangocc commented Feb 2, 2023

You need to add css style : <link rel="stylesheet" href="css/chessboard-1.0.0.css">

@stfngnsch
Copy link

I have the same problem, the images of the pieces can't load.

Firefox writes this error: TypeError: a.default.detectStore(...) is undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants