-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
22 lines (22 loc) · 13 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
<title>微笙无上数独求解器</title>
<link rel="stylesheet" href="index.css">
<script src="./js/index.js"></script>
<link rel="shortcut icon" href="favicon.png" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
</head>
<body>
<h1>微笙无上数独求解器</h1>
<table>
<!--js生成--><!--生成个屁啊ts的语法检查怕了怕了-->
<!-- <tr><th><input id="r0c0" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r0c1" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r0c2" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r0c3" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r0c4" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r0c5" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r0c6" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r0c7" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r0c8" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th></tr><tr><th><input id="r1c0" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r1c1" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r1c2" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r1c3" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r1c4" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r1c5" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r1c6" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r1c7" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r1c8" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th></tr><tr><th><input id="r2c0" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r2c1" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r2c2" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r2c3" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r2c4" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r2c5" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r2c6" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r2c7" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r2c8" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th></tr><tr><th><input id="r3c0" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r3c1" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r3c2" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r3c3" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r3c4" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r3c5" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r3c6" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r3c7" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r3c8" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th></tr><tr><th><input id="r4c0" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r4c1" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r4c2" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r4c3" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r4c4" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r4c5" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r4c6" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r4c7" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r4c8" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th></tr><tr><th><input id="r5c0" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r5c1" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r5c2" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r5c3" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r5c4" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r5c5" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r5c6" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r5c7" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r5c8" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th></tr><tr><th><input id="r6c0" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r6c1" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r6c2" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r6c3" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r6c4" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r6c5" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r6c6" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r6c7" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r6c8" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th></tr><tr><th><input id="r7c0" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r7c1" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r7c2" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r7c3" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r7c4" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r7c5" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r7c6" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r7c7" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r7c8" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th></tr><tr><th><input id="r8c0" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r8c1" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r8c2" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r8c3" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r8c4" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r8c5" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r8c6" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r8c7" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th><th><input id="r8c8" type="text" maxlength="1" onfocus="this.select()" onkeyup="value = value.replace(/[^1-9]/g,'');if(value != ''){this.blur();}"></th></tr> -->
</table>
<div id="buttons">
<input id="example" type="button" value="清除" onclick="Clear()">
<input id="example" type="button" value="示例" onclick="InputExample()">
<input id="solve" type="button" value="解!" onclick="confirm('确定要看答案吗?')?Solve():null">
</div>
</body>
</html>