diff --git a/application/index/view/header.html b/application/index/view/header.html index 9adf0974..4958a598 100644 --- a/application/index/view/header.html +++ b/application/index/view/header.html @@ -6,6 +6,7 @@ + {$options.siteName} - {$options.siteTitle} diff --git a/application/index/view/header_home.html b/application/index/view/header_home.html index 11cf519a..4300a5cc 100644 --- a/application/index/view/header_home.html +++ b/application/index/view/header_home.html @@ -3,6 +3,7 @@ + {block name="title"}{/block} diff --git a/application/index/view/header_public.html b/application/index/view/header_public.html index 2f364223..114ddc85 100644 --- a/application/index/view/header_public.html +++ b/application/index/view/header_public.html @@ -2,6 +2,7 @@ + {block name="title"}{/block} diff --git a/application/index/view/home/home.html b/application/index/view/home/home.html index 257588e3..593b101f 100644 --- a/application/index/view/home/home.html +++ b/application/index/view/home/home.html @@ -3,6 +3,7 @@ + ๆˆ‘็š„ๆ–‡ไปถ - {$options.siteName} diff --git a/static/js/login.js b/static/js/login.js index 098339e5..c72d2000 100644 --- a/static/js/login.js +++ b/static/js/login.js @@ -26,8 +26,13 @@ changeColor("#4e64d9","#3f51b5"); $(".captcha_img").click(function() { $("[alt='captcha']:visible").attr('src', "/captcha"); }) +function updateMetaThemeColor(themeColor) { + $('meta[name=theme-color]').remove(); + $('head').append(''); +} function switchToReg(){ changeColor("#46adff","#2196F3"); + updateMetaThemeColor("#2196F3"); $("#logForm").hide(); $("#regForm").show(); $("[alt='captcha']:visible").attr('src', "/captcha"); @@ -36,6 +41,7 @@ function switchToReg(){ } function switchToLog(){ changeColor("#4e64d9","#3f51b5"); + updateMetaThemeColor("#3f51b5"); $("#regForm").hide(); $("#forgetForm").hide(); $("#logForm").show(); @@ -45,6 +51,7 @@ function switchToLog(){ } function switchToEmail(){ changeColor("#009688","#4CAF50"); + updateMetaThemeColor("#4CAF50"); $("#regForm").hide(); $("#emailCheck").show(); $("#emailCheck").removeClass("animated zoomIn"); @@ -52,6 +59,7 @@ function switchToEmail(){ } function switchToForget(){ changeColor("#FF9800","#F44336"); + updateMetaThemeColor("#F44336"); $("#regForm").hide(); $("#logForm").hide(); $("#forgetForm").show();