Jump to content

MediaWiki:Navbox.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 130: Line 130:
         //find price of the ship on the page using the infobox HTML
         //find price of the ship on the page using the infobox HTML
p = Array.from(pg.getElementsByTagName("td")).find(function(obj){
p = Array.from(pg.getElementsByTagName("td")).find(function(obj){
return obj.getAttribute("data-source") !== null && obj.getAttribute("data-source").includes("material_cost");
return obj.getAttribute("data-source") !== null && obj.getAttribute("data-source").includes("total_cost");
});
});
if(p === undefined) p = "N/A--"+name;
if(p === undefined) p = "N/A--"+name;
Hey there! The Galaxypedia uses cookies to enhance your user experience. Press "More information" to learn more. Thank you, we hope you enjoy your stay!