Compare commits

..

No commits in common. "8903763446c32af8bc90659268eadd5a152d3bff" and "ca2cb19da7b1040e6d28c433423853e761f03020" have entirely different histories.

1 changed files with 0 additions and 23 deletions

View File

@ -74,9 +74,6 @@
.undone {
text-decoration: line-through;
}
.numentry {
white-space: pre-wrap;
}
</style>
</head>
<body>
@ -280,26 +277,6 @@
// List the move
let listElement = document.createElement('li');
if(moveHistory.length % 2 === 1) {
let padding = Math.floor(Math.log10((moveHistory.length / 2) + 1));
let moveList = document.getElementsByClassName('numentry');
for(let next = 0; next < moveList.length; next += 1) {
let digits = Math.floor(Math.log10(next + 1));
if(digits < padding) {
moveList[next].innerText = `${next + 1}. `.padStart(padding + digits + 3, " ");
}
}
let numEntry = document.createElement('span');
numEntry.classList.add('numentry');
numEntry.innerText = `${parseInt(moveHistory.length / 2) + 1}. `;
listElement.appendChild(numEntry);
}
listElement.appendChild(document.createTextNode(move));
movelist.appendChild(listElement);