This commit is contained in:
CN-JS-HuiBai
2026-04-06 17:49:31 +08:00
parent 15f4b610af
commit bc8414df3d
4 changed files with 33 additions and 6 deletions

View File

@@ -34,6 +34,14 @@
if (settings.page_name) {
document.title = settings.page_name;
}
// Handle page name visibility
if (settings.show_page_name === 0) {
document.addEventListener('DOMContentLoaded', function() {
const lt = document.getElementById('logoText');
if (lt) lt.style.display = 'none';
});
}
})();
</script>
</head>
@@ -448,6 +456,14 @@
<label for="siteTitleInput">标题 (大屏左上角显示名称)</label>
<input type="text" id="siteTitleInput" placeholder="例:数据可视化展示大屏">
</div>
<div class="form-group" style="margin-top: 15px;">
<label for="showPageNameInput">是否显示左上角标题</label>
<select id="showPageNameInput"
style="padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); width: 100%;">
<option value="1">显示 (Show)</option>
<option value="0">隐藏 (Hide)</option>
</select>
</div>
<div class="form-group" style="margin-top: 15px;">
<label for="logoUrlInput">Logo URL (白天/默认,支持图片链接)</label>
<input type="url" id="logoUrlInput" placeholder="https://example.com/logo_light.png">