fix: mobile nas专题header头

This commit is contained in:
2025-07-01 16:04:28 +08:00
parent 63357a0c0c
commit 439d001ff0
2 changed files with 12 additions and 39 deletions

View File

@@ -14,6 +14,18 @@
<link rel="stylesheet" type="text/css" href="__CSS__/orico_footer.css" />
{block name="style"}{/block}
<script type="text/javascript" src='https://code.jquery.com/jquery-3.6.0.min.js'></script>
<script>
$(window).ready(function () {
if ($(window).width() < 1024) {
var locationURL = new URL(window.location.href);
var mtpl = locationURL.searchParams.get("mtpl");
if (mtpl == null) {
locationURL.searchParams.set("mtpl", "1");
window.location.href = locationURL.href;
}
}
})
</script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];