Files
BlackFruit-UI/clientarea/hgcloud/footer.php
yiqiu 3e2939463c
All checks were successful
continuous-integration/drone/push Build is passing
feat: 会员中心全局页面跳转过渡动画
header.php: CSS 入场动画(fadeIn + translateY)
footer.php: JS 拦截链接点击,先淡出再跳转
- 入场: 0.35s 从下方8px渐显
- 离场: 0.25s 向上8px渐隐
- 跳过: 锚点/javascript:/新窗口/修饰键
2026-03-19 18:48:39 +08:00

29 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!-- =======公共======= -->
<script src="/{$template_catalog}/template/{$public_themes}/utils/directive.js"></script>
<script src="/{$template_catalog}/template/{$public_themes}/js/common/axios.min.js"></script>
<script src="/{$template_catalog}/template/{$public_themes}/utils/request.js"></script>
<script src="/{$template_catalog}/template/{$public_themes}/api/common.js"></script>
<script src="/{$template_catalog}/template/{$themes}/components/coinActive/coinActive.js"></script>
<script src="/{$template_catalog}/template/{$public_themes}/components/asideMenu/asideMenu.js"></script>
<script src="/{$template_catalog}/template/{$public_themes}/components/topMenu/topMenu.js"></script>
<!-- 页面过渡动画 -->
<script>
(function() {
document.addEventListener('click', function(e) {
var link = e.target.closest('a[href]');
if (!link) return;
var href = link.getAttribute('href');
// 跳过锚点、javascript:、新窗口、带修饰键
if (!href || href.startsWith('#') || href.startsWith('javascript') ||
link.target === '_blank' || e.ctrlKey || e.metaKey || e.shiftKey) return;
e.preventDefault();
document.body.classList.add('page-leaving');
setTimeout(function() { window.location.href = href; }, 250);
});
})();
</script>
</body>
</html>