From 1d20cb3142e03cea36cd9edbf8a2373527c6151f Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 28 Jan 2017 11:29:57 -0500 Subject: [PATCH] more --- contrib/lua/memeposting.lua | 6 +++--- contrib/static/site.css | 11 +++++++++++ contrib/templates/default/board.mustache | 1 + contrib/templates/default/thread.mustache | 1 + contrib/templates/default/ukko.mustache | 1 + 5 files changed, 17 insertions(+), 3 deletions(-) diff --git a/contrib/lua/memeposting.lua b/contrib/lua/memeposting.lua index 7e0d63d..36813bd 100644 --- a/contrib/lua/memeposting.lua +++ b/contrib/lua/memeposting.lua @@ -1,8 +1,8 @@ -- simple replacements demo -function span_text(str, class) - return string.format("%s", class, str) +function span_text(class, str) + return string.format("
%s
", class, str) end function wobble_text(str) @@ -11,6 +11,6 @@ end -- generate extra markup function memeposting(body, prefix) - body = string.gsub(body, "\[\[(%w+)\]\]", wobble_text) + body = string.gsub(body, "|(.*)|", wobble_text) return body end diff --git a/contrib/static/site.css b/contrib/static/site.css index 4e29d9a..1e2763b 100644 --- a/contrib/static/site.css +++ b/contrib/static/site.css @@ -626,3 +626,14 @@ th > label { #censor-toggle, a { color: #34345C; } + +@keyframes ebin { + 0% {transform: rotate(-10deg);} + 50% {transform: rotate(10deg);} + 100% {transform: rotate(-10deg);} +} + +.wobble { + animation: ebin 0.25s infinite; + animation-timing-function: linear; +} \ No newline at end of file diff --git a/contrib/templates/default/board.mustache b/contrib/templates/default/board.mustache index ef537d4..cce0e28 100644 --- a/contrib/templates/default/board.mustache +++ b/contrib/templates/default/board.mustache @@ -17,6 +17,7 @@ + {{board.Board}} diff --git a/contrib/templates/default/thread.mustache b/contrib/templates/default/thread.mustache index 54812d1..5b8c8b6 100644 --- a/contrib/templates/default/thread.mustache +++ b/contrib/templates/default/thread.mustache @@ -16,6 +16,7 @@ + {{thread.OP.Subject}} diff --git a/contrib/templates/default/ukko.mustache b/contrib/templates/default/ukko.mustache index 840e3e3..9991732 100644 --- a/contrib/templates/default/ukko.mustache +++ b/contrib/templates/default/ukko.mustache @@ -10,6 +10,7 @@ {{#i18n.Translations}}{{overboard_title}}{{/i18n.Translations}} +