Sha256: ce5db3730a166cf4924f96733e9382efe600f6fdfd1a7046abc0eea7f53a142f

Contents?: true

Size: 969 Bytes

Versions: 2

Compression:

Stored size: 969 Bytes

Contents

import BrandDetailModel from './BrandDetailModel.js';
import BrandDetailView from './BrandDetailView.js';
import BrandDetailController from './BrandDetailController.js';

window.onload = function () {
    document.getElementById('loadingOverlay').style.display = 'none';
};

let lastScrollTop = 0;
const header = document.getElementById('header');

window.addEventListener('scroll', function () {
    let scrollTop = window.pageYOffset || document.documentElement.scrollTop;
    if (scrollTop > lastScrollTop) {
        // Scrolling down
        header.classList.add('scroll-down');
    } else {
        // Scrolling up
        header.classList.remove('scroll-down');
    }
    lastScrollTop = scrollTop;
});
        
document.addEventListener('DOMContentLoaded', async () => {
    const model = new BrandDetailModel();
    const view = new BrandDetailView(model);
    const controller = new BrandDetailController(model, view);
    await controller.initializeApp();
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solara-0.4.0 solara/lib/core/dashboard/brand/BrandDetail.js
solara-0.3.0 solara/lib/core/dashboard/brand/BrandDetail.js