update to 2.2

This commit is contained in:
2025-08-27 18:44:12 +08:00
parent 7806149558
commit e0c71e325c
30 changed files with 26905 additions and 492 deletions

View File

@@ -9,12 +9,13 @@
* [Romanticism]
* footer.php 页脚文件
* @version 2.1 - 250202
* @version 2.2 - 250710
**/
?>
<div class="mdui-shadow-0 mdui-text-center mdui-card toup">
<br>
<br>
<span class="title">
&copy;<?php echo date("Y"); ?> <?php $this->options->title(); ?>
@@ -24,12 +25,11 @@
echo $this->options->AKAROMfootericp; ?>
</span><br>
<?php else: ?>
</span><br>
<a href="https://beian.miit.gov.cn/" target="_blank" class="chameleon underline">渝ICP备2025062723号-1</a><br>
</span>
<?php endif;?>
<br>
<!-- 已经弄得很不显眼了,请不要删除以下信息 -->
<small style="opacity: .5;">Theme <b><a class="chameleon underline" onclick="window.location.href='https://imakashi.eu.org/blog/archives/themeRomanticism.html'">Romanticism2.1</a></b> by <a class="chameleon underline" onclick="window.location.href='https://imakashi.eu.org/'"><b>Akashi</b></a>
<small style="opacity: .2;">Theme <b><a class="chameleon underline" onclick="window.location.href='https://imakashi.eu.org/blog/archives/themeRomanticism.html'">Romanticism2.2</a></b> by <a class="chameleon underline" onclick="window.location.href='https://imakashi.eu.org/'"><b>Akashi</b></a>
<br>
Powered by <a class="chameleon underline" onclick="window.location.href='https://typecho.org'"><b>Typecho</b></a></small>
<br><br>
@@ -49,10 +49,10 @@
<script src="<?php $this->options->themeUrl('config/mdui/js/mdui.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/jquery.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/listLazyload.js?v=2.1'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/tagIcon.js?v=2.1'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/customStyle.js?v=2.1'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/returntop.js?v=2.1'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/listLazyload.js?v=2.2'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/tagIcon.js?v=2.2'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/customStyle.js?v=2.2'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/returntop.js?v=2.2'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/prism.highlight.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/jquery.fancybox.min.js'); ?>"></script>
@@ -63,80 +63,9 @@
</script>
<?php if (!empty($this->options->AKAROMfucset) && in_array('AKAROMindexloading', $this->options->AKAROMfucset)): ?>
<script type="text/javascript" src="<?php $this->options->themeUrl('config/js/loading.js?v=2.1'); ?>"></script>
<script type="text/javascript" src="<?php $this->options->themeUrl('config/js/loading.js?v=2.2'); ?>"></script>
<?php endif; ?>
<!-- 增强的懒加载脚本 -->
<script>
document.addEventListener("DOMContentLoaded", function() {
const lazyImages = [].slice.call(document.querySelectorAll("img.lazy, img[loading='lazy'], img.AKAROMlazyload"));
if ("IntersectionObserver" in window) {
let lazyImageObserver = new IntersectionObserver(function(entries, observer) {
entries.forEach(function(entry) {
if (entry.isIntersecting) {
let lazyImage = entry.target;
if (lazyImage.dataset.src) {
lazyImage.src = lazyImage.dataset.src;
lazyImage.removeAttribute("data-src");
}
if (lazyImage.dataset.bg) {
lazyImage.style.backgroundImage = "url('" + lazyImage.dataset.bg + "')";
lazyImage.removeAttribute("data-bg");
}
lazyImage.classList.remove("lazy");
lazyImage.classList.remove("AKAROMlazyload");
lazyImageObserver.unobserve(lazyImage);
}
});
});
lazyImages.forEach(function(lazyImage) {
lazyImageObserver.observe(lazyImage);
});
} else {
// 回退到传统的延迟加载
let active = false;
const lazyLoad = function() {
if (active === false) {
active = true;
setTimeout(function() {
lazyImages.forEach(function(lazyImage) {
if ((lazyImage.getBoundingClientRect().top <= window.innerHeight && lazyImage.getBoundingClientRect().bottom >= 0) && getComputedStyle(lazyImage).display !== "none") {
if (lazyImage.dataset.src) {
lazyImage.src = lazyImage.dataset.src;
lazyImage.removeAttribute("data-src");
}
if (lazyImage.dataset.bg) {
lazyImage.style.backgroundImage = "url('" + lazyImage.dataset.bg + "')";
lazyImage.removeAttribute("data-bg");
}
lazyImage.classList.remove("lazy");
lazyImage.classList.remove("AKAROMlazyload");
if (lazyImages.length === 0) {
document.removeEventListener("scroll", lazyLoad);
window.removeEventListener("resize", lazyLoad);
window.removeEventListener("orientationchange", lazyLoad);
}
}
});
active = false;
}, 200);
}
};
document.addEventListener("scroll", lazyLoad);
window.addEventListener("resize", lazyLoad);
window.addEventListener("orientationchange", lazyLoad);
lazyLoad();
}
});
</script>
<script src="<?php $this->options->themeUrl('config/js/OwO.js'); ?>"></script>
<script>
function OwO_show() {
@@ -148,6 +77,9 @@
}
</script>
<script src="<?php $this->options->themeUrl('config/js/md5.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/preheadicon.js?v=2.2'); ?>"></script>
<!-- 自定义JS -->
<?php if(!empty($this->options->AKAROMcustomJs)): ?>
<script type="text/javascript">