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) {
|
function insert(e) {
|
||||||
//get the name of the page after the # in the url
|
//get the name of the page after the # in the url
|
||||||
// var nameCompare = location.hash.slice(1);
|
|
||||||
var pageName = e.target.hash.slice(1);
|
var pageName = e.target.hash.slice(1);
|
||||||
|
|
||||||
if (!document.getElementById("pageScript").src.includes(pageName)) {
|
titleColor(e);
|
||||||
titleColor(e);
|
loadContent(pageName);
|
||||||
loadContent(pageName);
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clickAction();
|
clickAction();
|
||||||
|
|||||||
Reference in New Issue
Block a user