Content deleted Content added
BrandonXLF (talk | contribs) spelling |
BrandonXLF (talk | contribs) Use note for services |
||
Line 11:
-- Generate the HTML to display a service
local function displayService(service, dest,
if not service then return '' end
return '<div class="service">' ..
'<div class="' .. (dir ~= 'left' and 'hidden' or '') .. '">←</div>' ..
'<div>' .. service .. (dest and ' toward ' .. dest or '') .. (
(dir == 'right' and '<div>→</div>' or '') ..
'</div>'
Line 23:
-- Generate the HTML to display a track (one or more services)
local function displayTrack(floorPart)
local out = displayService(floorPart.service, floorPart.dest, floorPart.
-- Add extra (numbered) services
Line 31:
for i = 1, floorPart.extraservice.max do
out = out .. displayService(floorPart.extraservice[i], floorPart.extradest[i], floorPart.
end
end
|