@reis/seki
Version:
Seki – A modern javascript based Go board renderer and player, that is simple to use, extensible, compact and intuitive.
62 lines (61 loc) • 2.08 kB
HTML
<html>
<head>
<title>Seki – An Embeddable Go Player</title>
<meta charset="utf-8">
<meta name="author" content="Adam Reis">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" media="screen" href="css/demo.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/seki.css">
<link rel="icon" type="image/png" sizes="32x32" href="favicon.png">
</head>
<body lang="en">
<div class="header">
<div class="logo">
<img src="/images/logo.png" />
</div>
<div class="center">
<h1>Seki – An Embeddable Go Player</h1>
<small class="subheader">
<span><a href="https://github.com/adamreisnz">Created by Adam Reis</a></span>
<span>•</span>
<span class="github">
<img src="/images/github-mark.svg" />
<a href="https://github.com/adamreisnz/seki">View on GitHub</a>
</span>
<span>•</span>
<span><a href="https://github.com/adamreisnz/seki/issues">Report an issue</a></span>
</small>
</div>
<div class="promo">
<a href="https://letsplaygo.com/editor" class="pill banner">
See it in action on Let’s Play Go
</a>
</div>
</div>
<div class="nav">
<a href="index.html" class="pill">Usage instructions</a>
<a href="example-static-positions.html" class="pill">Static positions</a>
<a href="example-game-boards.html" class="pill">Game boards</a>
<a href="example-full-player.html" class="pill active">Full player</a>
</div>
<div class="main">
<div
id="seki-player"
class="seki-player"
data-game-url="https://online-go.com/game/57818013"
data-config="{
'showCoordinates': true,
'showLastMoveNumber': true,
'autoPlayDelay': 2000
}"
></div>
<br><br>
</div>
<script type="module">
import {sekiPlayer} from './seki-embed.js'
const element = document.getElementById('seki-player')
const {player} = await sekiPlayer(element)
</script>
</body>
</html>