File "script.js"

Full path: /home/fsibplc/public_html/fsib/assets/js/script.js
File size: 1.2 B
MIME-type: text/plain
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

// document.querySelector('.dropdown-item').addEventListener('click',function(){
//     alert('hello');
// });

const nodeList = document.querySelectorAll(".aboutus .dropdown-item");
for (let i = 0; i < nodeList.length; i++) {
  nodeList[i].innerHTML = '<i class="fa-solid fa-angles-right"></i>'+nodeList[i].innerHTML;
}

const nodeList1 = document.querySelectorAll(".depositScheme .dropdown-item");
for (let i = 0; i < nodeList1.length; i++) {
  nodeList1[i].innerHTML = '<i class="fa-regular fa-circle-right"></i>'+nodeList1[i].innerHTML;
}

const nodeList2 = document.querySelectorAll(".investmentScheme .dropdown-item");
for (let i = 0; i < nodeList2.length; i++) {
  nodeList2[i].innerHTML = '<i class="fa-regular fa-square-plus"></i>'+nodeList2[i].innerHTML;
}
const nodeList3 = document.querySelectorAll(".news .dropdown-item");
for (let i = 0; i < nodeList3.length; i++) {
  nodeList3[i].innerHTML = '<i class="fa-regular fa-square-plus"></i>'+nodeList3[i].innerHTML;
}

const Footer_nodeList = document.querySelectorAll(".footer_icon");
for (let i = 0; i < Footer_nodeList.length; i++) {
  Footer_nodeList[i].innerHTML = '<i class="fa-solid fa-angles-right"></i>'+Footer_nodeList[i].innerHTML;
}