Browse Source

Cosmetics

Piotr Czajkowski 4 years ago
parent
commit
18c71e1c15
1 changed files with 4 additions and 4 deletions
  1. 4 4
      html/results.html

+ 4 - 4
html/results.html

@@ -42,10 +42,10 @@
 
 		// do the work...
 		document.querySelectorAll('th').forEach(th => th.addEventListener('click', (() => {
-		const table = th.closest('table');
-		    Array.from(table.querySelectorAll('tr:nth-child(n+2)'))
-		        .sort(comparer(Array.from(th.parentNode.children).indexOf(th), this.asc = !this.asc))
-		        .forEach(tr => table.appendChild(tr) );
+			const table = th.closest('table');
+		    	Array.from(table.querySelectorAll('tr:nth-child(n+2)'))
+		        	.sort(comparer(Array.from(th.parentNode.children).indexOf(th), this.asc = !this.asc))
+		        	.forEach(tr => table.appendChild(tr) );
 		})));
 	</script>
     </body>