-
Notifications
You must be signed in to change notification settings - Fork 0
/
board.html
31 lines (30 loc) · 1.22 KB
/
board.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<div id="board">
<div id="table_container">
<table id="mytable" cellspacing="0" summary="Here We be Picture Crosswording YO!">
<caption>Picture Crossword!</caption>
</table>
</div>
<script type="text/javascript" src="./picross.js">
</script>
<input id="undo" name="Undo" type="submit" value="Undo Move" onClick="UndoMove()">
</div>
<br />
<br />
<form id="dform" onSubmit="return false">
<input name="Board_Rows" type="text" maxlength=2 size=1>rows<br />
<input name="Board_Cols" type="text" maxlength=2 size=1>cols<br />
<input name="Board_Chance" type="text" maxlength=2 size=1>chance<br />
<input name="Submit" type="submit" value="New Board" onClick="NewBoard(document.forms['dform'].Board_Rows.value, document.forms['dform'].Board_Cols.value, document.forms['dform'].Board_Chance.value)">
<br />
<!-- <textarea id="debug_win" name="debug" rows=10 cols=80></textarea> -->
</form>
<script>
window.onload = function() {
var element = document.getElementById('table_container');
element.onselectstart = function () { return false; } // ie
//element.onmousedown = function () { return false;}
}
document.onmouseup = GlobalMouseUp;
document.oncontextmenu = GlobalMouseUp;
NewBoard(5, 5, 50);
</script>