From fbc489dfdcd4ecca2e06b980fbf37ed6ecfe380e Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 27 Apr 2021 18:37:25 -0600 Subject: [PATCH] Fortunes are now a repeater --- static/fortunes.mjs | 2 +- static/index.html | 13 +++++++++++++ static/morse.mjs | 17 ++++++++++++++--- static/repeaters.mjs | 40 +++++++++++++++++++++++++++++++++++++++- static/vail.mjs | 30 +++++++++++++++++++++--------- 5 files changed, 88 insertions(+), 14 deletions(-) diff --git a/static/fortunes.mjs b/static/fortunes.mjs index a1a18ec..8a72f2e 100644 --- a/static/fortunes.mjs +++ b/static/fortunes.mjs @@ -462,6 +462,6 @@ export const fortunes = [ /** * Return a randomly-chosen fortune. */ -export function getFortune() { +export function GetFortune() { return fortunes[Math.floor(Math.random() * fortunes.length)] } diff --git a/static/index.html b/static/index.html index d621805..d1710e9 100644 --- a/static/index.html +++ b/static/index.html @@ -44,6 +44,15 @@ 21-99 WPM
+ Local Practice + +