Originally posted by RussOk, as an alternative, double clicking the board now brings up contextual menus. Opera have stated themselves they will never support right click (or contextual click events.)
Strange this, because I changed from an alternative way of popping up that menu when it didn't work well in Opera.
And now I can see myself that right clicking in Opera doesn't work.
Grrrr.
-Russ
-Russ
Originally posted by RussThe opera team really wants to avoid letting javascripts override the default contextmenu, so they made this especially hard for you. You should think twice before modifying the inherent behaviour of a browser. In this case, your popupmenu is just too good to miss out on, though. π
Strange this, because I changed from an alternative way of popping up that menu when it didn't work well in Opera.
And now I can see myself that right clicking in Opera doesn't work.
Grrrr.
-Russ
Nordlys should go to tools->settings->display->javascript alternatives and check the box next to the text "allow scripts to capture right mouse button" (or something like that - I'm using the swedish version of Opera).
And your script must use the event handler onmousedown and look at the e.which property. If it's greater than one it's probably a right mouse click. Here's a simple example:
document.getElementById('test'π.onmousedown = function(e) {
if ( e.which > 1 ) {
alert('right click!'π;
return false;
}
}
I'm sure you can incorporate this into your own script using the classical browser detection type (or even better, using a DOM detector).
Hope it helps. π
[Edit: Oh, I see you've solved the problem with double-click. Smart. π Just forget this post then.]
Originally posted by stockenYes, double click is fine because it will help out single button Mac users too. So either option will work at all times on IE or Firefox.
The opera team really wants to avoid letting javascripts override the default contextmenu, so they made this especially hard for you. You should think twice before modifying the inherent behaviour of a browser. In this case, your popupmenu is just too good to miss out on, though. π
Nordlys should go to tools->settings->display->javascript alternatives an ...[text shortened]... you've solved the problem with double-click. Smart. π Just forget this post then.]
Thanks for your input though.
-Russ
Originally posted by stocken"Tillat skript å reagere på høyreklikk". π Anyway, that was already enabled. But the double-click solution works just as well.
Nordlys should go to tools->settings->display->javascript alternatives and check the box next to the text "allow scripts to capture right mouse button" (or something like that - I'm using the swedish version of Opera).
Originally posted by RagnorakI just need to fix the relatively simple problem regarding timebanks and completed games. And this is as good a reason as any to get it sorted out.
Also, you know the way the timeout/timebank info can be a bit screwy in a finished game? Doesn't it make sense to remove the time controls box in the game history page? I don't see of what value it can be in a dead game.
-Russ
Originally posted by RagnorakNow fixed.
If you are at the start of a game in the analyse board screen, and you keep clicking back, then the action count keeps increasing. Same if you're at the end of a game and click forward. If the action count only incremented when an action actually does something, it would be nicer.
-Russ
I don't think I understand the system by which pieces disappear from the "taken pieces" box when you place a new piece on the board.
For example, if I place a new rook on the board, while the taken pieces show bishop, knight and 3 pawns, then one of the pawns disappears from taken pieces.
It seems quite arbitrary whats happening, so I'm not sure if that's working right.
D
Originally posted by RagnorakThe "lost" pawn should be added insteadπ
pieces disappear from the "taken pieces" box when you place a new piece on the board.
For example, if I place a new rook on the board, while the taken pieces show bishop, knight and 3 pawns, then one of the pawns disappears from taken pieces.
D[/b]
Originally posted by RagnorakYes, it's quite weird. Another example, if I have two bishops on the board, then promote one pawn to a bishop, then take one of the other bishops, the taken piece will be shown as a pawn. If I have one bishop on the board and the other one is taken, and I then promote a pawn to a bishop, the taken bishop will be transformed into a pawn.
I don't think I understand the system by which pieces disappear from the "taken pieces" box when you place a new piece on the board.
For example, if I place a new rook on the board, while the taken pieces show bishop, knight and 3 pawns, then one of the pawns disappears from taken pieces.
It seems quite arbitrary whats happening, so I'm not sure if that's working right.
D
Most of the time I can predict now what's going to happen, but even if there is a principle, it doesn't make much sense in terms of usefulness.
Originally posted by NordlysOf course. This way you can see who is really up material compared with the starting position where both sides are equal. If it would show a bishop the taken pieces would not truly represent who is ahead material on the board.
promote one pawn to a bishop, then take one of the other bishops, the taken piece will be shown as a pawn.
I then promote a pawn to a bishop, the taken bishop will be transformed into a pawn.
even if there is a principle,