| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <!-- Navigation -->
- <nav class="nav" id="nav">
- <div class="nav-container">
- <a href="index.html" class="logo">
- <div class="logo-icon">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="40" height="40">
- <defs>
- <linearGradient id="ayGrad" x1="0%" y1="0%" x2="100%" y2="100%">
- <stop offset="0%" style="stop-color:#0066cc"/>
- <stop offset="100%" style="stop-color:#0088ff"/>
- </linearGradient>
- </defs>
- <rect x="2" y="2" width="46" height="46" rx="8" fill="url(#ayGrad)"/>
- <path d="M12 38 L20 16 L25 28 L30 16 L38 38 L31 38 L27 25 L23 25 L19 38 Z" fill="white"/>
- <path d="M23 22 L27 22 L25 12 Z" fill="url(#ayGrad)"/>
- </svg>
- </div>
- <span class="logo-text">安盈创卓</span>
- </a>
- <ul class="nav-links" id="navLinks">
- <li><a href="index.html" class="nav-item" data-page="index">首页</a></li>
- <li><a href="product_totem.html" class="nav-item" data-page="product">企业产品</a></li>
- <li><a href="serve.html" class="nav-item" data-page="serve">企业服务</a></li>
- <li><a href="pricing.html" class="nav-item" data-page="pricing">服务资费</a></li>
- <li><a href="news.html" class="nav-item" data-page="news">新闻中心</a></li>
- <li><a href="about.html" class="nav-item" data-page="about">关于我们</a></li>
- <li class="nav-dropdown">
- <a href="#" class="nav-item" data-page="contact">联系我们</a>
- <div class="nav-dropdown-menu">
- <a href="contact.html">线上咨询</a>
- <a href="jobs.html">企业招聘</a>
- </div>
- </li>
- </ul>
- <button class="mobile-menu-btn" id="mobileMenuBtn" onclick="toggleMobileMenu()">
- <span></span>
- <span></span>
- <span></span>
- </button>
- </div>
- </nav>
- <script>
- (function() {
- var path = window.location.pathname.split('/').pop() || 'index.html';
- var pageMap = {
- 'index.html': 'index', '': 'index',
- 'product_totem.html': 'product', 'product_portal.html': 'product', 'product_oa.html': 'product',
- 'product_super.html': 'product', 'product_info.html': 'product', 'product_leader.html': 'product',
- 'product_bigdata.html': 'product', 'product_4a.html': 'product',
- 'serve.html': 'serve',
- 'pricing.html': 'pricing',
- 'news.html': 'news', 'news_show.html': 'news',
- 'about.html': 'about', 'about_certificate.html': 'about', 'about_member.html': 'about',
- 'contact.html': 'contact', 'jobs.html': 'contact'
- };
- var currentPage = pageMap[path];
- if (currentPage) {
- document.querySelectorAll('.nav-item').forEach(function(link) {
- if (link.getAttribute('data-page') === currentPage) link.classList.add('active');
- });
- }
- })();
- </script>
|