Commit pirate JS files

This commit is contained in:
2026-04-02 17:39:02 -06:00
parent 7b15a0eb9c
commit d287f8a443
49 changed files with 19149 additions and 0 deletions

60
js/Application.js Normal file
View File

@@ -0,0 +1,60 @@
/*
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();
}
}