Add a link to play blocks game

This commit is contained in:
Hajime Hoshi 2015-01-06 00:57:58 +09:00
parent 324e8653fb
commit 82d4dfeab0
3 changed files with 4 additions and 4 deletions

View File

@ -55,10 +55,10 @@ table.examples iframe {
<td class="code"><pre><code>// <b>{{.Name}}</b>
{{.Source}}</code></pre></td>
{{if ne .Name "blocks"}}
<td><iframe src="example/{{.Name}}.html" width="{{.Width}}" height="{{.Height}}"></iframe></td>
{{if eq .Name "blocks"}}
<td>Click to play!<br><a href="example/blocks.html"><img src="blocks.png" width="{{.Width}}" height="{{.Height}}"></a></td>
{{else}}
<td>(TODO: Implement link)</td>
<td><iframe src="example/{{.Name}}.html" width="{{.Width}}" height="{{.Height}}"></iframe></td>
{{end}}
</tr>
{{end}}

BIN
_docs/public/blocks.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -71,7 +71,7 @@ table.examples iframe {
// Please read example/blocks/main.go and example/blocks/blocks/*.go</code></pre></td>
<td>(TODO: Implement link)</td>
<td>Click to play!<br><a href="example/blocks.html"><img src="blocks.png" width="256" height="240"></a></td>
</tr>