Fix JavaScript conflicts and optimize typewriter effect
- Removed 15+ redundant JavaScript files causing conflicts - Optimized typewriter-effect.js with smoother animations - Consolidated hamburger menu implementations - Cleaned up duplicate inline scripts across all pages - Enhanced main.js with consolidated scroll effects - Improved page loading performance by eliminating conflicts - Fixed lagging/vibrating typewriter effect in hero section - Updated all HTML pages to use only 4 core JavaScript files
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
@@ -34,7 +34,7 @@
|
||||
</button>
|
||||
|
||||
<ul class="nav-links">
|
||||
<li class="dropdown"><a href="#" class="nav-link">Services ▾</a>
|
||||
<li class="dropdown"><a href="#" class="nav-link">Services ?</a>
|
||||
<ul class="dropdown-menu services-dropdown">
|
||||
<li><a href="../Services/machine-learning.html"><div class="dropdown-item-content"><img src="../assets/mlng.png" alt="Machine Learning Icon" class="dropdown-icon" class="gn-responsive-image"><div class="text-content"><span class="item-title">Machine Learning</span><span class="item-description">We build intelligent systems that learn from data to predict outcomes and automate decisions.</span></div></div></a></li>
|
||||
<li><a href="../Services/data-analysis.html"><div class="dropdown-item-content"><img src="../assets/data analytics.png" alt="Data Analysis Icon" class="dropdown-icon" class="gn-responsive-image"><div class="text-content"><span class="item-title">Data Analytics</span><span class="item-description">We transform raw data into actionable insights, helping you understand trends and optimize performance.</span></div></div></a></li>
|
||||
@@ -43,7 +43,7 @@
|
||||
<li><a href="../Services/automation-flows.html"><div class="dropdown-item-content"><img src="../assets/automation flows.png" alt="Automation Flows Icon" class="dropdown-icon" / class="gn-responsive-image"><div class="text-content"><span class="item-title">Automation Flows</span><span class="item-description">We design and implement intelligent automation solutions to streamline your workflows and boost productivity.</span></div></div></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown"><a href="#" class="nav-link">Industries ▾</a>
|
||||
<li class="dropdown"><a href="#" class="nav-link">Industries ?</a>
|
||||
<ul class="dropdown-menu industries-dropdown">
|
||||
<li><a href="finance.html"><div class="dropdown-item-content"><img src="../assets/Finance Ind.png" alt="Finance Icon" class="dropdown-icon" / class="gn-responsive-image"><div class="text-content"><span class="item-title">Finance</span><span class="item-description">Applying AI to enhance fraud detection, risk management, and customer experience.</span></div></div></a></li>
|
||||
<li><a href="healthcare.html"><div class="dropdown-item-content"><img src="../assets/healthcare ind.png" alt="Healthcare Icon" class="dropdown-icon" / class="gn-responsive-image"><div class="text-content"><span class="item-title">Healthcare</span><span class="item-description">Leveraging AI for faster diagnoses, personalized treatments, and improved patient care.</span></div></div></a></li>
|
||||
@@ -56,7 +56,7 @@
|
||||
<li><a href="case-studies.html"><div class="dropdown-item-content"><img src="../assets/case study ind.png" alt="Case Studies Icon" class="dropdown-icon" / class="gn-responsive-image"><div class="text-content"><span class="item-title">Case Studies</span><span class="item-description">Real-world examples showcasing how our AI solutions have delivered tangible results for our clients.</span></div></div></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown"><a href="#" class="nav-link">Education ▾</a>
|
||||
<li class="dropdown"><a href="#" class="nav-link">Education ?</a>
|
||||
<ul class="dropdown-menu education-dropdown">
|
||||
<li><a href="../Education/workshops.html"><div class="dropdown-item-content"><img src="../assets/workshops.png" alt="Webinars Icon" class="dropdown-icon" / class="gn-responsive-image"><div class="text-content"><span class="item-title">Webinars</span><span class="item-description">Engaging and interactive sessions designed to introduce key AI concepts and practical skills.</span></div></div></a></li>
|
||||
<li><a href="../Education/individual-trainings.html"><div class="dropdown-item-content"><img src="../assets/indi training.png" alt="Individual Trainings Icon" class="dropdown-icon" / class="gn-responsive-image"><div class="text-content"><span class="item-title">Individual Trainings</span><span class="item-description">Personalized learning programs tailored to your specific needs and learning pace.</span></div></div></a></li>
|
||||
@@ -226,45 +226,13 @@
|
||||
</footer>
|
||||
<script src="../js/main.js" defer></script>
|
||||
<script src="../js/menu-dropdown.js" defer></script>
|
||||
<script src="js/gn-mobile-navigation.js" defer></script>
|
||||
<script src="../js/form-subscribe.js" defer></script>
|
||||
<script src="../js/unified-neural-interactions.js" defer></script>
|
||||
<script </script>
|
||||
<script </script>
|
||||
<script </script>
|
||||
<script src="../js/tech-marquee.js" defer></script>
|
||||
<script src="../js/data-node-interactions.js" defer></script>
|
||||
<script </script>
|
||||
|
||||
<!-- Navbar scroll effect script -->
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const header = document.querySelector('.site-header');
|
||||
|
||||
function handleScroll() {
|
||||
const currentScrollY = window.scrollY;
|
||||
|
||||
if (currentScrollY > 30) {
|
||||
header.classList.add('scrolled');
|
||||
} else {
|
||||
header.classList.remove('scrolled');
|
||||
}
|
||||
}
|
||||
|
||||
// Throttle scroll events for better performance
|
||||
let ticking = false;
|
||||
function onScroll() {
|
||||
if (!ticking) {
|
||||
requestAnimationFrame(function() {
|
||||
handleScroll();
|
||||
ticking = false;
|
||||
});
|
||||
ticking = true;
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener('scroll', onScroll, { passive: true });
|
||||
|
||||
// Initial check
|
||||
handleScroll();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<!-- Mobile Enhancement Scripts -->
|
||||
<script src="../js/menu-dropdown.js"></script>
|
||||
@@ -276,3 +244,5 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user