Add check if homepage to fix missing text
This commit is contained in:
parent
422dee416b
commit
db261d59b3
|
@ -28,7 +28,7 @@
|
|||
|
||||
<div class="row">
|
||||
<div class="col-1">
|
||||
<h1 id="welcometitle"></h1>
|
||||
<h1 id="welcometitle">Hello Internet!</h1>
|
||||
<h2 id="welcome1"></h2>
|
||||
<p></p>
|
||||
<h2 id="welcome2"></h2>
|
||||
|
|
|
@ -130,7 +130,7 @@ if(isGerman===true) {
|
|||
projectsnav.textContent = language.ger.projectsnav;
|
||||
contactnav.textContent = language.ger.contactnav;
|
||||
//index.html
|
||||
if (window.location.href.indexOf("index") > -1) {
|
||||
if (window.location.pathname == '/' || window.location.href.indexOf("index") > -1) {
|
||||
welcometitle.textContent = language.ger.welcometitle;
|
||||
welcome1.textContent = language.ger.welcome1;
|
||||
welcome2.textContent = language.ger.welcome2;
|
||||
|
@ -204,7 +204,7 @@ else{
|
|||
projectsnav.textContent = language.eng.projectsnav;
|
||||
contactnav.textContent = language.eng.contactnav;
|
||||
//index.html
|
||||
if (window.location.href.indexOf("index") > -1) {
|
||||
if (window.location.pathname == '/' || window.location.href.indexOf("index") > -1) {
|
||||
welcometitle.textContent = language.eng.welcometitle;
|
||||
welcome1.textContent = language.eng.welcome1;
|
||||
welcome2.textContent = language.eng.welcome2;
|
||||
|
|
Loading…
Reference in a new issue