]> git.scottworley.com Git - voter/commitdiff
Column headers
authorScott Worley <scottworley@scottworley.com>
Sat, 19 Nov 2022 11:01:15 +0000 (03:01 -0800)
committerScott Worley <scottworley@scottworley.com>
Sat, 19 Nov 2022 11:01:15 +0000 (03:01 -0800)
src/main.rs

index 61875d6de16d412d40ef12c2129524ab438c5a58..9f536ed6859b405112e088cce464b30a6be68987 100644 (file)
@@ -107,6 +107,7 @@ const HTML_HEADER: &str = "<!DOCTYPE html>
     <meta charset=\"utf-8\">
     <title>Vote!</title>
     <style>
     <meta charset=\"utf-8\">
     <title>Vote!</title>
     <style>
+      th { font-size: 70%; text-align: left }
       input { transform: scale(1.5) }
       div { animation: 2s infinite linear spin }
       @keyframes spin {
       input { transform: scale(1.5) }
       div { animation: 2s infinite linear spin }
       @keyframes spin {
@@ -143,7 +144,11 @@ const HTML_HEADER: &str = "<!DOCTYPE html>
     </script>
   </head>
   <body>
     </script>
   </head>
   <body>
-    <table>";
+    <table>
+      <tr>
+        <th>Vote</th>
+        <th>Candidate</th>
+      </tr>";
 const HTML_FOOTER: &str = "
     </table>
   </body>
 const HTML_FOOTER: &str = "
     </table>
   </body>