|
@@ -35,7 +35,7 @@ function handleScroll() {
|
|
|
const filed = urls.match(/\/([^\/]+)\.html$/) && urls.match(/\/([^\/]+)\.html$/)[1];
|
|
|
if(scrollYnma > 1) {
|
|
|
iframe.style.background = '#fff'
|
|
|
- imgElement.src = './image/logo.jpg'
|
|
|
+ imgElement.src = './image/logos.jpg'
|
|
|
iframe.style.boxShadow = '0 0 10px rgba(0, 0, 0, 0.2)';
|
|
|
headerItems.forEach(function(item) {
|
|
|
item.style.color = '#000'; // 设置你想要的字体颜色
|
|
@@ -45,7 +45,7 @@ function handleScroll() {
|
|
|
console.log(backcolor[filed], filed)
|
|
|
iframe.style.background = (backcolor[filed] && backcolor[filed].background) || 'none'
|
|
|
iframe.style.boxShadow = '0 0 0 rgba(0, 0, 0, 0)';
|
|
|
- imgElement.src = (backcolor[filed] && backcolor[filed].logo) || './image/logo.png'
|
|
|
+ imgElement.src = (backcolor[filed] && backcolor[filed].logo) || './image/logos.png'
|
|
|
headerItems.forEach(function(item) {
|
|
|
item.style.color = (backcolor[filed] && backcolor[filed].color) || '#fff'; // 设置你想要的字体颜色
|
|
|
});
|