diff src/site.js @ 18:94e26bffd4fb

UI work
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 11 Jul 2022 12:14:05 -0600
parents 0472897e790d
children 3ea49246d6a7
line wrap: on
line diff
--- a/src/site.js	Thu Jul 07 15:30:06 2022 -0600
+++ b/src/site.js	Mon Jul 11 12:14:05 2022 -0600
@@ -31,3 +31,7 @@
 		err += '\nstack = ' + error.stack;
 	ajax( '/error_log.js', 'err='+encodeURIComponent(err) );
 };
+
+function time(time) {
+	document.write(new Date(time).toLocaleString());
+}