Skip to content
Open
Show file tree
Hide file tree
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
13 changes: 12 additions & 1 deletion assets/js/script.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@

// declaring the links
let fbLink = "https://www.facebook.com/" ;
let instLink = "https://www.instagram.com/";
let twLink = "https://x.com/home?lang=en-in";
let ytLink = "https://www.youtube.com/" ;
let map = "https://www.google.co.in/maps";

document.getElementsByClassName('fb')[0].setAttribute('href', fbLink);
document.getElementsByClassName('insta')[0].setAttribute('href', instLink);
document.getElementsByClassName('twt')[0].setAttribute('href', twLink);
document.getElementsByClassName('yt')[0].setAttribute('href', ytLink);
document.getElementsByClassName('gm')[0].setAttribute('href', map);
/**
* PRELOAD
*
Expand Down
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1150,23 +1150,23 @@ <h3 class="card-title title-2 text-center">
<ul class="footer-list">

<li>
<a class="label-2 footer-link hover-underline">Facebook</a>
<a class="label-2 footer-link hover-underline fb">Facebook</a>
</li>

<li>
<a class="label-2 footer-link hover-underline">Instagram</a>
<a class="label-2 footer-link hover-underline insta">Instagram</a>
</li>

<li>
<a class="label-2 footer-link hover-underline">Twitter</a>
<a class="label-2 footer-link hover-underline twt">Twitter</a>
</li>

<li>
<a class="label-2 footer-link hover-underline">Youtube</a>
<a class="label-2 footer-link hover-underline yt">Youtube</a>
</li>

<li>
<a class="label-2 footer-link hover-underline">Google Map</a>
<a class="label-2 footer-link hover-underline gm">Google Map</a>
</li>

</ul>
Expand Down