-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphotos.js
More file actions
41 lines (35 loc) · 1.22 KB
/
photos.js
File metadata and controls
41 lines (35 loc) · 1.22 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
updatePhotos()
{
storeUsers();
slackReader();
updateTimer();
let doc = document.getElementById("settings"); //gets the settings form
//populates data from form
teamNumber = doc.elements[0].value;
eventKey = doc.elements[1].value;
slackAPI = doc.elements[2].value;
slackChannel = doc.elements[3].value;
twitchID = doc.elements[4].value;
matchNumber = doc.elements[5].value;
willDisplayData = doc.elements[6].checked;
}
/***********************************************
* Team Profile JS
*/
//This controls the image slide show
function openImage(evt, imageName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
//This displays the block image
document.getElementById(imageName).style.display = "block";
evt.currentTarget.className += " active";
}
// Get the element with id="defaultOpen" and click on it
document.getElementById("defaultOpen").click();