forked from eromatiya/squareup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
43 lines (30 loc) · 1.07 KB
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Instantiate all js scripts
// Heirarchy is important here to avoid temporal dead zones
// Instantiate config
const config = new Config();
// Instantiate a clock object
const clock = new Clock();
// Instantiate panel buttons
const panelButtons = new PanelButtons();
// Instantiate central body
const centralBody = new CentralBody();
// Instantiate search box key events
const searchBoxKeyEvents = new SearchBoxKeyEvents();
// Instantiate search query send
const searchQuerySend = new SearchQuerySend();
// Instantiate autosuggestion
const autoSuggestion = new AutoSuggestion();
// Instantiate search engine settings
const searchEngineSwitcher = new SearchEngineSwitcher();
// Instantiate autosuggestion
const paramQuerySend = new ParamQuerySend();
// Instantantiate web menu
const webMenu = new WebMenu();
// Instantiate theme switcher
const themeSwitcher = new ThemeSwitcher();
// Instantiate key events
const documentKeyEvents = new DocumentKeyEvents();
// Set Font Family
document.querySelector('body').style.setProperty(
'font-family', config.getFontFamily()['sans-serif']
);