From c848dba8600944f6b1c3cbf1290ad49508433102 Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Wed, 17 Mar 2021 13:52:49 +0100 Subject: [PATCH] Add election background pattern --- .../img/background_patterns/checker_vote.png | Bin 0 -> 385 bytes webcontroller/templates.go | 11 ++++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 res/include/img/background_patterns/checker_vote.png diff --git a/res/include/img/background_patterns/checker_vote.png b/res/include/img/background_patterns/checker_vote.png new file mode 100644 index 0000000000000000000000000000000000000000..4da4d44c160250517f7e2b3a9075994541feb661 GIT binary patch literal 385 zcmV-{0e=38P)_V}4Ht;FXT$FV7a+$jzKK~)iBq{UVB+zzgYAH`5BhFaGpY89`wq8j0$ zR>T+)>_?BsVCYTv*1k3>TKMEW^K^rk=5> electionStart && epoch < electionEnd { + file = "checker_vote.png" + } else if now.Weekday() == time.Wednesday && now.UnixNano()%10 == 0 { file = "checker_wednesday.png" } else { file = fmt.Sprintf("checker%d.png", now.UnixNano()%17)