Skip to content
This repository was archived by the owner on Oct 26, 2020. It is now read-only.

Added Commnets for beginner coder's #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions assets/js/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function scrollAdjust() {
const padding = 50;
function scrollAdjust() { //scrolling
const padding = 50; //page padding
const offset = -1 * padding;
const shiftWindow = function() { scrollBy(0, offset); }
window.addEventListener("hashchange", shiftWindow);
Expand All @@ -14,10 +14,10 @@ function navbarBurger() {
});
}

$(function() {
scrollAdjust();
$(function() { //function start
scrollAdjust(); //Scroll Page Option
navbarBurger();
});

function externalLinks() {
for(var c = document.getElementsByTagName("a"), a = 0;a < c.length;a++) { var b = c[a]; b.getAttribute("href") && b.hostname !== location.hostname && (b.target = "_blank") } } ; externalLinks();
function externalLinks() { //External Links
for(var c = document.getElementsByTagName("a"), a = 0;a < c.length;a++) { var b = c[a]; b.getAttribute("href") && b.hostname !== location.hostname && (b.target = "_blank") } } ; externalLinks();