Archived
1
0

add flashy text

This commit is contained in:
Jeff Becker 2017-01-29 10:25:41 -05:00
parent 836d1212cc
commit b29446bd9d
2 changed files with 19 additions and 0 deletions

View File

@ -13,6 +13,10 @@ function explode_text(str)
return span_text("explode", str)
end
function flashy_text(str)
return span_text("flashy", str)
end
function psy_text(str)
return string.format("<span class='psy'>%s</span>", str)
end
@ -39,6 +43,7 @@ function memeposting(body, prefix)
body = string.gsub(body, "`(.-)`", pre_text)
body = string.gsub(body, "%(%(%((.-)%)%)%)", function(str) return string.format("<div class='nazi' style='background-image: url(%sstatic/nazi.png);'>%s</div>", prefix, str) end)
body = string.gsub(body, "|(.-)|", wobble_text)
body = string.gsub(body, "%[%[%[(.-)%]%]%]", flashy_text)
body = string.gsub(body, "==(.-)==", red_text)
body = string.gsub(body, "@@(.-)@@", psy_text)
body = string.gsub(body, "//(.-)\\\\", explode_text)

View File

@ -662,4 +662,18 @@ th > label {
.nazi {
padding: 10px;
}
@keyframes flash {
0% { opacity: 1;}
49% { opacity: 1; }
50% { opacity: 0; }
100% { opacity: 0; }
}
.flashy {
animation: flash 0.5s infinite;
animation-timing-function: linear;
text-align: center;
}