je n'arrive pas a recharger correctement les bons elements de la page
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user