(function(){
let w = window.innerWidth;
function setHeaderCssVar() {
const headerEle = document.getElementById('shoplaza-section-header');
if(!headerEle){ return };
document.body.style.setProperty('--window-height', `${window.innerHeight}px`);
document.body.style.setProperty('--header-height', `${headerEle.clientHeight}px`);
const mdScorllHideEle = headerEle.querySelector('.header__mobile .header__scroll_hide');
if (mdScorllHideEle) {
document.body.style.setProperty('--header-scroll-hide-height-md', `${mdScorllHideEle.clientHeight}px`);
}
const pcScorllHideEle = headerEle.querySelector('.header__desktop .header__scroll_hide');
if (pcScorllHideEle) {
document.body.style.setProperty('--header-scroll-hide-height-pc', `${pcScorllHideEle.clientHeight}px`);
}
}
function handlResize() {
if(w == window.innerWidth){return};
w = window.innerWidth;
setHeaderCssVar();
};
function init(){
setHeaderCssVar();
window.removeEventListener('resize', window._theme_header_listener)
window._theme_header_listener = handlResize;
window.addEventListener('resize', window._theme_header_listener);
}
init();
})();
Alpha's Cosplay Profil
Aug 17, 2022
by TsangShireen
Alpha aka Regan
Profile
15 Completed
1 In Progress
4 Commissioned
my quote
(on the topic of X) ...{Dan: "No, seriously. A toaster could totally replace Nataku as a viable Dragon of Earth. Neither of them has a soul." ...{Me: "But Nataku steals swords. Toasters make toast." ...{Dan: "Sooooo?"
instant messenger
alphashinigami
cosplaying since
2001
favorite things
Tsubasa:RC, Death Note, One Piece, X, FLCL, Fullmetal Alchemist, Tokyo Babylon