This commit is contained in:
make
2026-04-11 16:33:53 +08:00
parent 6bb0953ab2
commit 27d193be28
7 changed files with 59 additions and 25 deletions

View File

@@ -14,7 +14,7 @@
<meta name="format-detection" content="telephone=no,email=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" href="{$TpStyle.favicon}">
<link rel="apple-touch-icon" href="/template/videoboku/images/favicon.png">
{// PWA 支持Chrome/安卓)和 SEO 不是强关联 }
<meta name="theme-color" content="#000000">
<meta name="mobile-web-app-capable" content="yes">
@@ -26,7 +26,7 @@
<meta name="keywords" content='{block name="keywords"}{/block}'>
<meta name="description" content='{block name="description"}{/block}'>
<link rel="shortcut icon" href="{$TpStyle.favicon}" type="image/svg+xml">
<link rel="shortcut icon" href="/template/videoboku/images/favicon.png" type="image/svg+xml">
<link rel="preload" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videoboku/css/mytheme-font.css" type="text/css">
<link rel="preload" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videoboku/css/mytheme-ui.css" type="text/css">
@@ -209,6 +209,7 @@
</div>
</header>
<div class="cs-list-a"></div>
{block name="main"}
{/block}

View File

@@ -13,7 +13,7 @@
<meta name="format-detection" content="telephone=no,email=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" href="{$TpStyle.favicon}">
<link rel="apple-touch-icon" href="/template/videodadi/img/favicon.ico">
{// PWA 支持Chrome/安卓)和 SEO 不是强关联 }
<meta name="theme-color" content="#000000">
<meta name="mobile-web-app-capable" content="yes">
@@ -24,7 +24,7 @@
<meta name="keywords" content='{block name="keywords"}{/block}'>
<meta name="description" content='{block name="description"}{/block}'>
<!-- <link rel="shortcut icon" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodadi/img/favicon.ico" type="image/x-icon"> -->
<link rel="shortcut icon" href="{$TpStyle.favicon}" type="image/svg+xml">
<link rel="shortcut icon" href="/template/videodadi/img/favicon.ico" type="image/svg+xml">
<!-- <link href="/public/layer/need/layer.css" rel="stylesheet"> -->
{// 提前加载 CSS }
<link rel="preload" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodadi/font/iconfont-min.css" type="text/css">
@@ -118,6 +118,7 @@
</div>
</div>
</header>
<div class="cs-list-a"></div>
{block name="main"}
{/block}
{include file="public/footer" /}

View File

@@ -14,7 +14,8 @@
<meta name="format-detection" content="telephone=no,email=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" href="{$TpStyle.favicon}">
<!-- <link rel="apple-touch-icon" href="{$TpStyle.favicon}"> -->
<link rel="apple-touch-icon" href="/template/videodingzhu/images/icon/dy.png">
{// PWA 支持Chrome/安卓)和 SEO 不是强关联 }
<meta name="theme-color" content="#000000">
<meta name="mobile-web-app-capable" content="yes">
@@ -26,16 +27,30 @@
<meta name="keywords" content='{block name="keywords"}{/block}'>
<meta name="description" content='{block name="description"}{/block}'>
<link rel="shortcut icon" href="{$TpStyle.favicon}" type="image/svg+xml">
<!-- <link rel="shortcut icon" href="{$TpStyle.favicon}" type="image/svg+xml"> -->
<link rel="shortcut icon" href="/template/videodingzhu/images/icon/dy.png" type="image/svg+xml">
<link rel="preload" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodingzhu/css/plugins.css" type="text/css">
<link rel="preload" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodingzhu/css/global.css" type="text/css">
<link rel="preload" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodingzhu/css/style.css" type="text/css">
<link rel="preload"
href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodingzhu/css/plugins.css"
type="text/css">
<link rel="preload"
href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodingzhu/css/global.css"
type="text/css">
<link rel="preload"
href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodingzhu/css/style.css"
type="text/css">
<link rel="stylesheet" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodingzhu/css/plugins.css" type="text/css">
<link rel="stylesheet" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodingzhu/css/global.css" type="text/css">
<link rel="stylesheet" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodingzhu/css/style.css" type="text/css">
<link rel="stylesheet" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/public/fu/fu.css" type="text/css">
<link rel="stylesheet"
href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodingzhu/css/plugins.css"
type="text/css">
<link rel="stylesheet"
href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodingzhu/css/global.css"
type="text/css">
<link rel="stylesheet"
href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodingzhu/css/style.css"
type="text/css">
<link rel="stylesheet" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/public/fu/fu.css"
type="text/css">
{block name="head"}{/block}
{block name="head-css"}{/block}
@@ -214,6 +229,8 @@
</div>
<div class="e2b25c slide-search-bg"></div>
<div class="cs-list-a"></div>
{block name="main"}
{/block}

View File

@@ -108,7 +108,7 @@
</li>
</ul>
</div>
<div class="cs-list-a"></div>
{block name="main"}
{/block}

View File

@@ -14,7 +14,7 @@
<meta name="format-detection" content="telephone=no,email=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" href="{$TpStyle.favicon}">
<link rel="apple-touch-icon" href="/template/videolaoniu/images/favicon.png">
{// PWA 支持Chrome/安卓)和 SEO 不是强关联 }
<meta name="theme-color" content="#000000">
<meta name="mobile-web-app-capable" content="yes">
@@ -26,7 +26,7 @@
<meta name="keywords" content='{block name="keywords"}{/block}'>
<meta name="description" content='{block name="description"}{/block}'>
<link rel="shortcut icon" href="{$TpStyle.favicon}" type="image/svg+xml">
<link rel="shortcut icon" href="/template/videolaoniu/images/favicon.png" type="image/svg+xml">
<link rel="preload" type="text/css" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videolaoniu/css/global.css">
<link rel="preload" type="text/css" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videolaoniu/css/style.css">
@@ -146,6 +146,7 @@
</nav>
</div>
<div class="cs-list-a"></div>
{block name="main"}
{/block}

View File

@@ -14,7 +14,8 @@
<meta name="format-detection" content="telephone=no,email=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" href="{$TpStyle.favicon}">
<!-- <link rel="apple-touch-icon" href="{$TpStyle.favicon}"> -->
<link rel="apple-touch-icon" href="/template/videonunu/img/favicon.ico">
{// PWA 支持Chrome/安卓)和 SEO 不是强关联 }
<meta name="theme-color" content="#000000">
<meta name="mobile-web-app-capable" content="yes">
@@ -26,7 +27,7 @@
<meta name="keywords" content='{block name="keywords"}{/block}'>
<meta name="description" content='{block name="description"}{/block}'>
<link rel="shortcut icon" href="{$TpStyle.favicon}" type="image/svg+xml">
<link rel="shortcut icon" href="/template/videonunu/img/favicon.ico" type="image/svg+xml">
<link rel="preload" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videonunu/font/iconfont.css" type="text/css">
<link rel="preload" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videonunu/css/stui_block.css" type="text/css">
@@ -127,7 +128,7 @@
</div>
</div>
</header>
<div class="cs-list-a"></div>
{block name="main"}
{/block}

View File

@@ -330,7 +330,20 @@ function replaceList() {
}
}
// banner 1
let listbsA = document.querySelectorAll('.cs-list-a');
listbsA.forEach(item => {
const randomIndex = Math.floor(Math.random() * bannerDataTop.length);
const CsData = bannerDataTop[randomIndex]
// 替换模板中的占位符
const renderedTemplate = strCsHtmlBanner
.replace(/{{image}}/g, CsData.image)
.replace(/{{title}}/g, escapeHtml(decodeHtmlEntities(CsData.title))) // 防止XSS
.replace(/{{link}}/g, escapeHtml(CsData.link));
item.innerHTML = renderedTemplate.trim();
});
// banner
let listbs = document.querySelectorAll('.cs-list-b');
@@ -345,9 +358,9 @@ function replaceList() {
.replace(/{{link}}/g, escapeHtml(CsData.link));
item.innerHTML = renderedTemplate.trim();
});
}
function shouldTrigger(probability = 0.5) {