je n'arrive pas a recharger correctement les bons elements de la page

This commit is contained in:
hugodu69
2018-12-28 00:40:09 +01:00
parent 68a7e760cd
commit 1763380b13

View File

@@ -29,13 +29,10 @@ function loadContent(pageName) {
function insert(e) {
//get the name of the page after the # in the url
// var nameCompare = location.hash.slice(1);
var pageName = e.target.hash.slice(1);
if (!document.getElementById("pageScript").src.includes(pageName)) {
titleColor(e);
loadContent(pageName);
};
titleColor(e);
loadContent(pageName);
}
clickAction();