Skip to content

Commit

Permalink
Updated to version 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronDeMille committed Feb 7, 2019
1 parent 7f3e072 commit 6b2dcaa
Show file tree
Hide file tree
Showing 5 changed files with 200 additions and 221 deletions.
Binary file added JuicyDataUploader-1.0.0.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ h3 {
.card {
box-shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12);
border-width: 0;
border-radius: 0;
border-radius: 8px;
margin-top: 20px;
padding: 10px;
}
Expand Down
53 changes: 10 additions & 43 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,22 @@
<div class="container">
<div class="card">
<div class="row">
<div class="col-sm-2"><h1>ID</h1></div>
<div class="col-sm-2">
<h1>1</h1>
</div>
<div class="col-sm-10">
<select
class="form-control"
name="eventID"
id="eventID"
onchange="checkEventID()"
<select class="form-control" name="eventID" id="eventID" onchange="checkEventID()"
><option></option
></select>
<h2>Select the match ID <span style="margin-left: 10px;"><button type="button" class="btn btn-info btn-sm" onclick="refresh()">Refresh</button></span></h2>
</div>
</div>
</div>
<div class="card">
<div class="row">
<div class="col-sm-2"><h1>1</h1></div>
<div class="col-sm-2"><h1>2</h1></div>
<div class="col-sm-10">
<button
class="btn btn-secondary btn-block"
id="uploadScheduleButton"
disabled
>
<button class="btn btn-secondary btn-block" id="uploadScheduleButton" disabled>
Upload Schedule
</button>
<h2>Upload schedule after it has been generated</h2>
Expand All @@ -41,13 +36,9 @@ <h2>Upload schedule after it has been generated</h2>
</div>
<div class="card">
<div class="row">
<div class="col-sm-2"><h1>2</h1></div>
<div class="col-sm-2"><h1>3</h1></div>
<div class="col-sm-10">
<button
class="btn btn-secondary btn-block"
id="syncButton"
disabled
>
<button class="btn btn-secondary btn-block" id="syncButton" disabled>
Sync Matches
</button>
<h2>Sync matches after each match</h2>
Expand All @@ -57,29 +48,5 @@ <h2>Sync matches after each match</h2>
</div>
</div>
</body>
<script>
require('./js/functions.js');
function checkEventID() {
let eventID = document.getElementById('eventID').value;
if (eventID != '') {
document.getElementById('uploadScheduleButton').disabled = false;
document.getElementById('syncButton').disabled = false;
document
.getElementById('uploadScheduleButton')
.classList.replace('btn-secondary', 'btn-primary');
document
.getElementById('syncButton')
.classList.replace('btn-secondary', 'btn-success');
} else {
document.getElementById('uploadScheduleButton').disabled = true;
document.getElementById('syncButton').disabled = true;
document
.getElementById('uploadScheduleButton')
.classList.replace('btn-primary', 'btn-secondary');
document
.getElementById('syncButton')
.classList.replace('btn-success', 'btn-secondary');
}
}
</script>
<script src="./js/functions.js"></script>
</html>
Loading

0 comments on commit 6b2dcaa

Please sign in to comment.