New version of hello-friend-ng-clone
This commit is contained in:
parent
2af22c2c10
commit
3a80032b84
609 changed files with 26159 additions and 104 deletions
|
@ -20,3 +20,13 @@ menuTrigger &&
|
|||
);
|
||||
|
||||
window.addEventListener("resize", isMobileMenu);
|
||||
|
||||
const language = document.getElementsByTagName('html')[0].lang;
|
||||
const logo = document.querySelector(".logo__pathname");
|
||||
if(logo){
|
||||
window.onload = () => {
|
||||
let path = window.location.pathname.substring(1);
|
||||
path = path.replace(language+'/','')
|
||||
logo.textContent += path.substring(0,path.indexOf('/'));
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue