Widget:AllusionsCharts: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 345: Line 345:
function prepareItemCard(event) {
function prepareItemCard(event) {
var t = event.target;
var t = event.target;
console.log("t: " + t);
if (t.tagName != "A") {
if (t.tagName != "A") {
var tc = event.currentTarget;
var tc = event.currentTarget;
console.log("tc:" + tc);
var item = tc.firstChild.innerHTML;
var item = tc.firstChild.innerHTML;
console.log("item:" + item);
var card = tc.firstChild.nextSibling;
var card = tc.firstChild.nextSibling;
if (card.innerHTML == "") {
if (card.innerHTML == "") {

Revision as of 17:21, 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.