-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoutput-selection-functionality.js
53 lines (42 loc) · 1.77 KB
/
output-selection-functionality.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
44
45
46
47
48
49
50
51
52
53
/*
By: Brendan Luke
Date: September 8, 2021
Purpose: this Javascript file contatins the functionality for selecting the output type (CSV, GPX, or KML).
*/
// Output Selection functions
function selectCSV() {
// set logic index
outputFlag = 1;
// change 'button' stylings
document.getElementById('CSV').className = 'header-select-icon-active';
document.getElementById('GPX').className = 'header-select-icon';
document.getElementById('KML').className = 'header-select-icon';
document.getElementById('Stationary').className = 'header-select-icon';
}
function selectGPX() {
// set logic index
outputFlag = 2;
// change 'button' stylings
document.getElementById('GPX').className = 'header-select-icon-active';
document.getElementById('CSV').className = 'header-select-icon';
document.getElementById('KML').className = 'header-select-icon';
document.getElementById('Stationary').className = 'header-select-icon';
}
function selectKML() {
// set logic index
outputFlag = 3;
// change 'button' stylings
document.getElementById('KML').className = 'header-select-icon-active';
document.getElementById('CSV').className = 'header-select-icon';
document.getElementById('GPX').className = 'header-select-icon';
document.getElementById('Stationary').className = 'header-select-icon';
}
function selectStationary() {
// set logic index
outputFlag = 4;
// change 'button' stylings
document.getElementById('Stationary').className = 'header-select-icon-active';
document.getElementById('CSV').className = 'header-select-icon';
document.getElementById('GPX').className = 'header-select-icon';
document.getElementById('KML').className = 'header-select-icon';
}