Module:Sandbox/Arccosecant/BouncyTest

This is an old revision of this page, as edited by Chrs (talk | contribs) at 20:04, 17 February 2021 (testing a thing). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local cfg = require('Module:Sandbox/Arccosecant/BouncyTest/cfg')
local p = {}

function p.call(frame)
	ret = ""
	for i=1,frame.args[1] do
		ret = ret .. "<div style=\"position: fixed; left: 240px; top: 240px; z-index: 500; animation: x-ubox " .. math.random(5,7) .. "." .. math.random(0,9) .. "s linear infinite alternate, y-ubox " .. math.random(4,6) .. "." .. math.random(0,9) .. "s linear infinite alternate\">" .. cfg[math.random(#cfg)] .. "</div>"
	end
	return frame:preprocess(ret)
end

return p