Jump to content

MediaWiki:Navbox.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 122: Line 122:
         returnPage(shipArr[i].name,fillPriceType,i);
         returnPage(shipArr[i].name,fillPriceType,i);
     }
     }
     console.log("ALL SHIP PAGE XMLHTTPREQUESTS SENT");
     console.log("ALL SHIP PAGE FETCH REQUESTS SENT");
}
}
//fill values in shipArr
//fill values in shipArr
Line 250: Line 250:
         return 0;
         return 0;
});
});
if(shipArr.length > 200) localStorage.setItem("storedArr",JSON.stringify(shipArr)); //make sure shipArr is sanitized before storing?  //update localStorage with newly-sorted array
if(shipArr.length > 200){
fillNavbox();
localStorage.setItem("storedArr",JSON.stringify(shipArr)); //make sure shipArr is sanitized before storing?  //update localStorage with newly-sorted array
fillNavbox();
}
else throw new Error('Error; ship array length lower than expected. Check for invalid items in cleanup')
}
}
//Outputs the ship array by replacing the inner content of the given html element.
//Outputs the ship array by replacing the inner content of the given html element.
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!