Comments (7)
Also in yr file pgnvjs.js i think there is an error at line 467 .. It should be:
moveSpan(currentCounter).on('click', function(evt) { makeMove(that.currentMove, currentCounter, move.fen); evt.stopPropagation(); });
from pgn-viewer.
Just to be sure that I understand your problem (clicking on variation) correct. I do the following:
- Go to the example http://mliebelt.github.io/PgnViewerJS/docu/examples2.html#1102
- Click on a move in the variation (have no URL for that). I have done it for
- 1... c5 (first variation)
- 3... cxd4 (first variation, 5th move)
- 6... a6 (first first variation, some move)
I had no problems at all. How can I get your result? I am using a current Chrome browser. Tried some different browsers, no change.
from pgn-viewer.
Hallo,
on chrome Version 51.0.2704.79 Ubuntu 16.04 (64-bit) it is working.
on firefox (47.0 also Ubuntu) its not
On FF, it always shows the var very shortly and then return to the last move of main line (=before the var >> for example clicking on sxe4 showing the correct diagram and instantly returning to e4e5 pos).
Agree with my last posting (JS-error)?
I guess it has to do with my posting cause when i click on such var, i get this error:
ReferenceError: event is not defined
event.stopPropagation();
therefore my fix
Jürgen
from pgn-viewer.
I could reproduce your problem with Firefox as well. The fix I found (sorry, no chance to make a quick fix) is the following:
moveSpan(currentCounter).on('click', function(event) {
makeMove(that.currentMove, currentCounter, move.fen);
event.stopPropagation();
});
So by adding the event parameter explicitly, Firefox now behaves as Chrome. So I hope you can introduce that into the distro yourself, I have no time at the moment to do a release, and a lot of changes in my current version.
Thank's a lot for reporting that error, I will try to fix it in the next weeks to come.
from pgn-viewer.
Well, that what i posted already (see second post).
For me, this (our) fix solved the problem!
I found this project cause i'm looking for an alternative to the current (with flaws) webserver implementation to the project http://github.com/jromang/picochess.
But im still not sure, cause i have something similar as #19 .. Moves are made in backend, and needs to be reflected in frontend (=not a ended pgn-file). We have two use-cases. 1) Show finished pgn-files and 2) Show the ongoing game (for this im not sure as said above) and this is the main use for picochess webserver.
In this light i hope y can include this fix and the many other improvements in yr pipeline quickly :-)
from pgn-viewer.
Thanks for the correction, I didn't see the additional argument in your first hint. I will try to come with a solution for #19 that allows to play games by the interface. See my comment there ...
from pgn-viewer.
Closed with the newest release
from pgn-viewer.
Related Issues (20)
- Wrong notation same-line-rooks related to #436 HOT 1
- Player name and coordinates overlap HOT 4
- PGN crashes viewer HOT 9
- Add badges to all READMEs HOT 3
- getGame(index) and getGames() not returning the real games pgn HOT 5
- Switching between games in a multigame PGN does not work HOT 4
- GoTo specific move number HOT 3
- Display the PGN viewer on a responsive website HOT 3
- Make a PGN move given a FEN string HOT 1
- Split repository into pgn-reader (new one) and pgn-viewer (existing one)
- Unable to `npm install` on Windows OS HOT 7
- Define what has to be done on a release HOT 1
- Ugly display of many games
- Correct HTML warnings/errors on docs html files
- ManyMany games example results in error
- pgnPuzzle not playing the whole line HOT 4
- Have a dark mode for the viewer
- Latest version 1.6.7 does not seem to work in React HOT 4
- Switch to typesafe-i18n library
- Switch from webpack to rollup
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 pgn-viewer.