Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
harrymkt committed May 2, 2024
1 parent 66e0994 commit 07b0956
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div class="container">
<h1 id="mainc">Welcome</h1>
<p id="welcome"></p>
<script>document.getElementById("welcome").textContent="Hello "+get_storage("visitname","visiter")+", thanks for stopping bye! I am <b id=\"ownername\"></b>, and I hope my website will give you useful contents and creativities. Have a look around!";</script>
<script>document.getElementById("welcome").innerHTML="<p>Hello "+get_storage("visitname","visiter")+", thanks for stopping bye! I am <b id=\"ownername\"></b>, and I hope my website will give you useful contents and creativities. Have a look around!</p>";</script>
<p>The navigation menu is located at the top. The footer section is located below. In the footer you'll found some links, including to my social profiles and other useful links.</p>

</div>
Expand Down
6 changes: 2 additions & 4 deletions scripts/footer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//footer.
function addfooter()
{
// Assuming "fdd" is a reference to an existing DOM object
var fdd = document.createElement("div");
fdd.className = "beforefooter";
fdd.id="footersection";
Expand All @@ -22,7 +21,7 @@ messageLinksList.appendChild(telegramLinkItem);
ctmdiv.appendChild(comeToMeHeading);
ctmdiv.appendChild(messageParagraph);
ctmdiv.appendChild(messageLinksList);

fdd.appendChild(ctmdiv);
// "keep in touch with Me" section
var keepInTouchHeading = document.createElement("h1");
keepInTouchHeading.textContent = "Keep in touch with Me";
Expand All @@ -43,7 +42,6 @@ var usefulLinksHeading = document.createElement("h1");
usefulLinksHeading.textContent = "Useful links";

// Appending all elements to "fdd"
fdd.appendChild(ctmdiv);
fdd.appendChild(keepInTouchHeading);
fdd.appendChild(dontMissParagraph);
fdd.appendChild(keepInTouchLinksList);
Expand Down Expand Up @@ -122,4 +120,4 @@ footerElement.appendChild(copyrightParagraph);

// Append the footer to the body or any other target element
document.body.appendChild(footerElement);
}//end
}//End
4 changes: 1 addition & 3 deletions scripts/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ if((m == 11 && dy == 31) || (m == 0 && dy == 1))
dt += "Happy new year! ";
else if(m == 1 && dy == 14)
dt += "Happy valentine's day! ";
else if(m == 3 && (dy >= 12 && dy <= 16))
dt += "Happy thingyan to myanmar people!";
if(d >= 20 || (d >= 0 && d < 6))
if(d >= 22 || (d >= 0 && d < 6))
dt += "Wow, thank you "+get_storage("visitname","visiter")+" for visiting over sleep time!";
else if(d >= 6 && d < 11)
dt += "Good morning "+get_storage("visitname","visiter")+", thanks for visiting to my website!";
Expand Down

0 comments on commit 07b0956

Please sign in to comment.