Added final touches
This commit is contained in:
parent
214c84417d
commit
60c9d29c10
2 changed files with 19 additions and 14 deletions
14
css.css
14
css.css
|
@ -35,6 +35,8 @@ table.par{
|
||||||
color: black;
|
color: black;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin-left: -5px;
|
||||||
|
margin-top: -7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
table{
|
table{
|
||||||
|
@ -47,11 +49,15 @@ table.impar{
|
||||||
color:black;
|
color:black;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin-left: -5px;
|
||||||
|
margin-top: -5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
td{
|
td.block{
|
||||||
min-width: 15px;
|
min-width: 30px;
|
||||||
height: 15px;
|
font-size: 2em;
|
||||||
border: dashed;
|
font-weight: bolder;
|
||||||
|
height: 30px;
|
||||||
|
border: solid;
|
||||||
border-width: thin;
|
border-width: thin;
|
||||||
}
|
}
|
|
@ -179,7 +179,7 @@ Sudoku.prototype.getHTMLBlock=function(x,y){
|
||||||
li+=9;
|
li+=9;
|
||||||
str+="\n\t</tr>\n\t<tr>";
|
str+="\n\t</tr>\n\t<tr>";
|
||||||
}
|
}
|
||||||
str+="\n\t\t<td>"+this._mat[li+ci+pii]+"</td>";
|
str+="\n\t\t<td class='block'>"+this._mat[li+ci+pii]+"</td>";
|
||||||
ci++;
|
ci++;
|
||||||
}
|
}
|
||||||
str+="\n\t</tr>\n</table>";
|
str+="\n\t</tr>\n</table>";
|
||||||
|
@ -203,7 +203,7 @@ Sudoku.prototype.getSudoku=function(level){
|
||||||
mclone[i]=this._mat[i];
|
mclone[i]=this._mat[i];
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
mclone[i]="_";
|
mclone[i]=" ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ninst._mat=mclone;
|
ninst._mat=mclone;
|
||||||
|
@ -255,4 +255,3 @@ Sudoku.prototype.toString=function(){
|
||||||
}
|
}
|
||||||
return st;
|
return st;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue