text: require('./bootstrap');
  // grabing everything that we need
  const btn= document.querySelector('button.mobile-menu-button');
  const  menu = document.querySelector('.mobile-menu');
  
  // add event listener
  btn.addEventListener("click", () =>{
      menu.classList.toggle("hidden");
  });
  
  // counter codes
  
  const counters = document.querySelectorAll('.counter');
  const speed = 1500; // The lower the slower
  
  counters.forEach(counter => {
  	const updateCount = () => {
  		const target = +counter.getAttribute('data-target');
  		const count = +counter.innerText;
  
  		// Lower inc to slow and higher to slow
  		const inc = target / speed;
  
  		// console.log(inc);
  		// console.log(count);
  
  		// Check if target is reached
  		if (count < target) {
  			// Add inc to count and output in counter
  			counter.innerText = count + inc;
  			// Call function every ms
  			setTimeout(updateCount, 1);
  		} else {
  			counter.innerText = target;
  		}
  	};
  
  	updateCount();
  });
  