Are hyperlinks into EidoGo game records possible?

For discussing go computing, software announcements, etc.
Post Reply
rubin427
Lives in gote
Posts: 338
Joined: Sat Dec 05, 2009 9:24 pm
GD Posts: 0
Location: Las Vegas, NV
Has thanked: 163 times
Been thanked: 62 times

Are hyperlinks into EidoGo game records possible?

Post by rubin427 »

What I would like to be able to do is:
1) Post a game record into EidoGo (with the game record's text inline using the class="eidogo-player-auto" on a div tag).
2) Later in the same web page, make a link, such than when someone clicks the link, the EidoGo player jumps to that move number.

I don't actually think this is possible, but if it is, it would make me happy.

Thanks.
User avatar
fwiffo
Gosei
Posts: 1435
Joined: Tue Apr 20, 2010 6:22 am
Rank: Out of practice
GD Posts: 1104
KGS: fwiffo
Location: California
Has thanked: 49 times
Been thanked: 168 times

Re: Are hyperlinks into EidoGo game records possible?

Post by fwiffo »

It's possible, but you'll need to know some Javascript. You can't use the "automatic" method of embedding. You'll have something like this.

Code: Select all

<div id="player-container"></div>
<script type="text/javascript">
var config = {
    container: "player-container",
    ... other eidogo config options ...
};
var player = new eidogo.Player(config);
</script>

<p><a href="#" onclick="player.goTo(25); return false;">Jump to move 25</a>!</p>

If you're talking about doing it here on the forum, the answer is: "No... well, actually yes... but I don't have time."
Post Reply