Widget:AllusionsCharts: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
mNo edit summary |
||
Line 100: | Line 100: | ||
}; | }; | ||
var getDecade = t.getDecade; | var getDecade = t.getDecade; | ||
t.getCentury = function(decade) { | |||
var century = parseInt(decade / 100) + 1; | |||
return century; | |||
}; | |||
var getCentury = t.getCentury; | |||
Revision as of 17:03, 29 May 2019
This widget renders the charts on the section and century landing pages in the Allusions section and Records sub-section of IRHB. It takes no parameters.