add NewFile.html

main
tal 3 months ago
parent 41d3a2a4a0
commit fd3be0d304

@ -0,0 +1,21 @@
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
<title>Chess Board</title>
</head>
<body>
<script type="text/javascript">
document.writeln("<table width=400 height=400 border=1>");
for (let i = 0; i < 8; i++) {
document.writeln("<tr>");
for (let j = 0; j < 8; j++) {
let color = (i + j) % 2 === 0 ? "white" : "black";
document.writeln(`<td style="background-color: ${color}"></td>`);
}
document.writeln("</tr>");
}
document.writeln("</table>");
</script>
</body>
</html>
Loading…
Cancel
Save