mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Remove confusing disaperaing logic for landingpage fab (#26845)
This commit is contained in:
parent
cd9e91f797
commit
534dd9cbb0
@ -81,17 +81,10 @@ layout: page
|
|||||||
"scroll",
|
"scroll",
|
||||||
function (e) {
|
function (e) {
|
||||||
const header = document.querySelector(".site-header");
|
const header = document.querySelector(".site-header");
|
||||||
const fab = document.querySelector(".fab");
|
|
||||||
if (e.currentTarget.scrollTop > 180) {
|
if (e.currentTarget.scrollTop > 180) {
|
||||||
header.style.backgroundColor = "#ffffff";
|
header.style.backgroundColor = "#ffffff";
|
||||||
if (fab) {
|
|
||||||
fab.style.display = "flex";
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
header.style.backgroundColor = "#ffffff66";
|
header.style.backgroundColor = "#ffffff66";
|
||||||
if (fab) {
|
|
||||||
fab.style.display = "none";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ passive: true, capture: true }
|
{ passive: true, capture: true }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user