Prettified the slide
[cipher-training.git] / slides / caesar-encipher.html
index 4f99cc2e34f4f7f3e364ee1bb457cbe6a2ba24a3..1cdf8ddf0ad3cc22da75e10f27385c2f569ce118 100644 (file)
@@ -5,15 +5,36 @@
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
     <style type="text/css">
       /* Slideshow styles */
+      body {
+        font-size: 20px;
+      }
+      h1, h2, h3 {
+        font-weight: 400;
+        margin-bottom: 0;
+      }
+      h1 { font-size: 4em; }
+      h2 { font-size: 2em; }
+      h3 { font-size: 1.6em; }
+      a, a > code {
+        /* color: rgb(249, 38, 114); */
+        text-decoration: none;
+      }
+      code {
+        -moz-border-radius: 5px;
+        -web-border-radius: 5px;
+        background: #e7e8e2;
+        border-radius: 5px;
+        font-size: 16px;
+      }
     </style>
   </head>
   <body>
     <textarea id="source">
 
-class: center, middle
-
 # Caesar ciphers
 
+![centre-aligned Caesar wheel](caesarwheel1.gif)
+
 * Letter-by-letter enciphering
 
 ---
@@ -77,7 +98,8 @@ for p in plaintext:
 ## Good (but unPythonic)
 
 ```python
-ciphertext = map(lambda p: caesar_encipher_letter(p, key), plaintext)
+ciphertext = map(lambda p: caesar_encipher_letter(p, key), 
+                plaintext)
 ```
 
 ---
@@ -87,7 +109,8 @@ ciphertext = map(lambda p: caesar_encipher_letter(p, key), plaintext)
 ## Best
 
 ```python
-ciphertext = [caesar_encipher_letter(p, key) for p in plaintext]
+ciphertext = [caesar_encipher_letter(p, key) 
+                for p in plaintext]
 ```