Module:HeroData: Difference between revisions

LVL (talk | contribs)
Change hero comparison table to allow for users to input boons and spirit power so it'll update live.
LVL (talk | contribs)
Fixed header
Line 518: Line 518:
-- First header is Hero (sticky)
-- First header is Hero (sticky)
local headers_str = '<th style="position: sticky; left: 0; top: 0; z-index: 12; background-color: #27292d; isolation: isolate;">Hero</th>'
local headers_str = '<th style="position: sticky; left: 0; top: -1px; z-index: 12; background-color: #27292d; isolation: isolate;">Hero</th>'
local header_style = ""
local header_style = ""
local category_data = attribute_module.get_category_data()
local category_data = attribute_module.get_category_data()
Line 571: Line 571:
end
end
header_style = ' style="position: sticky; top: 0; z-index: 3; background-color: rgb(' .. category_rgb .. ');"'
header_style = ' style="position: sticky; top: -1px; z-index: 3; background-color: rgb(' .. category_rgb .. ');"'
headers_str = headers_str .. "<th" .. header_style .. ">" .. attr_localized .. postfix .. "</th>"
headers_str = headers_str .. "<th" .. header_style .. ">" .. attr_localized .. postfix .. "</th>"