-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
35 lines (25 loc) · 754 Bytes
/
main.js
File metadata and controls
35 lines (25 loc) · 754 Bytes
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
$(window).on('load', function(){
createStoredFilesTable();
$('#storedFilesButton').click(function(){
createStoredFilesTable();
$('#contentCont').css('border-color', '#3071a9');
$('#UploadButton').hide();
$('#DragDrop').hide();
$('#storedFiles').show();
});
$('#uploadFilesButton').click(function(){
$('#UploadSuccess').hide();
$('#contentCont').css('border-color', '#F0AD4E');
$('#storedFiles').hide();
if ('draggable' in document.createElement('span')) {
$("#UploadButton").hide();
$("#DragDrop").show();
} else {
$("#DragDrop").hide();
$("#UploadButton").show();
}
});
$(".btn-group-vertical > .btn").click(function(){
$(this).addClass("active").siblings().removeClass("active");
});
});