/* Copyright (c) 2023-forever Douglas Malnati. All rights reserved. See the /faq/tos page for details. (If this generated header is stamped on a file which is a 3rd party file or under a different license or copyright, then ignore this copyright statement and use that file's terms.) */ import * as utl from '/js/Utl.js'; import { Base } from './js/Base.js'; import { Timeline } from '/js/Timeline.js'; import { WsprSearchUi } from './js/WsprSearchUi.js'; export class Application extends Base { constructor(cfg) { super(); // whoops, forgot about need to debug init code also, so turn this on this.SetGlobalDebug(true); // cache config this.cfg = cfg; // get handles for dom elements // ... // UI this.wsprSearchUi = new WsprSearchUi({ searchInput: cfg.searchInputContainer, helpLink: cfg.helpLink, map: cfg.mapContainer, charts: cfg.chartsContainer, flightStats: cfg.flightStatsContainer, dataTable: cfg.dataTableContainer, searchStats: cfg.searchStatsContainer, filterStats: cfg.filterStatsContainer, }); // debug this.SetDebug(true); } SetDebug(tf) { super.SetDebug(tf); this.wsprSearchUi.SetDebug(this.debug); } Run() { super.Run(); } }