forked from andrzejlisek/AudioSpectrum
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.js
More file actions
83 lines (76 loc) · 1.95 KB
/
Copy pathinit.js
File metadata and controls
83 lines (76 loc) · 1.95 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
function SetColorPicker(Field)
{
var Obj = document.getElementById(Field);
if (!SET_ColorPicker)
{
Obj.type = "text";
Obj.size = "5";
}
}
SetColorPicker("xSET_DrawStripColor");
SetColorPicker("xSET_DrawOverdriveColor");
SetColorPicker("xSET_ScopeBackColor");
SetColorPicker("xSET_FilterColorBack");
SetColorPicker("xSET_FilterColorZero");
SetColorPicker("xSET_FilterColorSpec");
SetColorPicker("xSET_FilterColorLine");
SetColorPicker("xSET_Marker0Color");
SetColorPicker("xSET_Marker1Color");
SetColorPicker("xSET_Marker2Color");
SetColorPicker("xSET_Marker3Color");
SetColorPicker("xSET_Marker4Color");
SetColorPicker("xSET_Marker5Color");
SetColorPicker("xSET_Marker6Color");
SetColorPicker("xSET_Marker7Color");
SetColorPicker("xSET_Marker8Color");
SetColorPicker("xSET_Marker9Color");
PlaylistTable = document.getElementById("Playlist");
PlaylistInfo = document.getElementById("PlaylistInfo");
SaveInit();
MarkerInit();
ScopeInit();
FilterInit();
SetLayout();
SetLabels();
ProcessInit();
ScaleSetToolbar();
var AppStartFunc_ = true;
if ((SET_AutoStart == 2) || (SET_AutoFullscreen == 2))
{
document.getElementById("AppBlock").style.display = "block";
}
else
{
document.getElementById("AppBlock").style.display = "none";
}
function AppStartFunc()
{
if (AppStartFunc_)
{
AppStartFunc_ = false;
document.getElementById("AppBlock").style.display = "none";
if (SET_AutoStart == 2)
{
ToggleRecording();
}
if (SET_AutoFullscreen == 2)
{
ToggleFullScreen();
}
}
}
if (SET_AutoStart == 1)
{
ToggleRecording();
}
if (SET_AutoFullscreen == 1)
{
ToggleFullScreen();
}
ScaleTextInit();
function KeyPress(e)
{
//console.log("KeyPress: " + e.keyCode);
}
document.addEventListener("keydown", KeyPress, false);
window.addEventListener("resize", SetLayout, false);