2024-01-20 14:22:20

This commit is contained in:
2025-01-20 14:22:19 +08:00
parent f47916fdbf
commit 3a06607be6
10 changed files with 688 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
<header class="narsPage-head">
<div class="headcenter">
<img
class="logico"
style="cursor:pointer;"
src="__PUBLIC__/web/images/logo_nas.png"
onclick="location.href='{:url(\'TopsNas/index\')}'"
/>
<nav class="headnav">
<!-- {volist name="nav_header" id="vo"}
<div class="navitem">
<a href="{$vo.url}" {if condition="$vo.is_new_window_open"}target="_blank"{/if}>{$vo.name}</a>
{if condition="!empty($vo.items)"}
<img src="/frontend/weben/images/indeximg/black-down.png" class="downimg" alt="">
<ul class="children">
{volist name="vo.items" id="it"}
<li>
<a href="{$it.url}" {if condition="$it.is_new_window_open"}target="_blank"{/if}>{$it.name}</a>
</li>
{/volist}
</ul>
{/if}
</div>
{/volist} -->
{volist name="nav_header" id="vo"}
<a
class="navitem"
href="{$vo.url}" {if condition="$vo.is_new_window_open"}target="_blank"{/if}
>
{$vo.name}
</a>
{/volist}
</nav>
</div>
</header>
<script type="text/javascript">
document.querySelectorAll('.navitem').forEach(function(it) {
it.classList.remove('hover')
if (location.pathname.endsWith(it.getAttribute('href'))) {
it.classList.add('hover')
}
})
</script>