Comments (4)
I now switched to chessground, an alternative that works much better imo (better API, a lot more useful functionality, is responsive on mobile while #74 etc. have not been resolved for a decade (!), and much more). You can use chessground via npm or another package manager, it is very easy in combination with Vue.
If you still want to use chessboard.js for whatever reason, you can look here and copy the snippets from "Content Delivery Network" into your index.html
. You can then use window.Chessboard
as you would in a normal, framework-free context. But I would still recommend switching to chessground for every app that's not just for throwaway use.
from chessboardjs.
Take a look at chessboardjs-vue.
Nevermind, this doesn't seem to be working. I just chose to use it via a CDN in the index.html
file.
from chessboardjs.
leo848: Can you show me the way to use it via CDN? Thank a lot
from chessboardjs.
See also #157
It's a shame - I was drawn to this library because it is really well documented, but not being able to import is a hard blocker. I will try one of the chessground wrappers instead.
from chessboardjs.
Related Issues (20)
- Export board to an image (png or jpeg) HOT 2
- about onDragStart HOT 1
- about addArrowAnnotation HOT 4
- Pawn Promotions not Updating Board HOT 1
- 1px gap between the border and the squares
- Guide to implement / use it in React HOT 1
- Publish chess piece images to CDN HOT 1
- Temporarily duplicated pieces due to racing updates to currentPosition. HOT 2
- Board without pieces HOT 2
- Move chess piece off the board HOT 2
- dependencies issue
- Castling does not move the Rook, just the King.
- Chessboard doesn't fit container completely HOT 1
- minor bug in documentation
- onMoveEnd/onChange and onDrop different output
- lacuna in documentation
- recommended css to prevent "save image" dialog from popping up
- Chessboard does not resize with css "media" rule HOT 1
- Chess
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chessboardjs.