Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WCA Standards : Issue #937 Successor #956

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 118 additions & 0 deletions apps/port/export.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
body {
font-family: Roboto, Arial, sans-serif;
}

#exportTitle {
width: 100%;
height: 120px;
margin: 0;
padding: 0;
position: fixed;
top: 0;
left: 0;
background-color: #17a2b8 !important;
color: white;
font-size: 18px;
z-index: 999;
display: flex;
justify-content: center;
align-items: center;
}

form {
position: absolute;
margin-top: 170px;
height: 80%;
top: 32%;
left: 50%;
transform: translate(-50%, -50%);
width: 50%;
background-color: #f2f2f2;
box-sizing: border-box;
}

label {
background-color: red;
color: green;
}

input {
font-family: Roboto, Arial, sans-serif;
font-size: 16px;
width: 60%;
margin: 0 auto;
height: 35px;
border: none;
border-bottom: 3px solid grey;
transition: background-color 0.3s ease;
}
input:focus {
outline: none;
}

.buttons {
width: 40%;
padding: 10px 0;
border-radius: 5px;
background: #17a2b8;
border: 1px solid #17a2b8;
font-size: 14px;
font-weight: 600;
color: #fff;
display: inline-block;
box-shadow: none;
transition: background-color 0.3s ease;
}

.buttons:hover {
border: 1px solid #17a2b8;
color: #17a2b8;
background: #fff;
}

.input-bloc {
margin-top: 50px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.input-bloc input[type="text"],
.input-bloc button {
margin-bottom: 10px;
}

div.result {
text-align: center;
}

div.result h3 {
padding-top: 2%;
font-size: 25pt;
color: MediumSeaGreen;
}

#output {
padding: 20px;
}

span {
display: inline-block;
}

.form-check-input {
padding: 5px !important;
}

.btn {
color: #fff;
background-color: #0d6efd;
border-color: #0d6efd;
}

@media only screen and (max-width: 768px) {
form {
width: 80%;
}
}
56 changes: 20 additions & 36 deletions apps/port/export.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,29 @@
<head>
<script src="../../core/Store.js"></script>
<title>Export Results [caMicroscope]</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
<style>
#exportTitle{
background-color: #17a2b8 !important;
color: white;
}
#output{
padding: 20px;
}
span{
display:inline-block;
}
.form-check-input{
padding:5px !important;
}
.btn{
color: #fff;
background-color: #0d6efd;
border-color: #0d6efd;
}
</style>
<link rel="stylesheet" href="export.css">

</head>
<body>

<h1 class="text-center py-5" id="exportTitle">Export Results</h1>
<div class="form text-center my-5">
<label for="slide_id">Slide Ids (exact matches, comma delimited):</label>
<input type="text" class="mx-1" id="slide_id" name="slide_id">
<button id="populate_btn" onclick="populateList()" type="button" class="btn btn-primary mx-3">Get List of Results</button>

<div id="exportTitle">
<h1>Export Results</h1>
</div>
<form>
<div class="input-bloc">
<input type="text" id="slide_id" name="slide_id" placeholder="Slide Ids (exact matches, comma delimited):">
<br>
<button id="populate_btn" onclick="populateList()" type="button" class="buttons">Get List of Results</button>
</div>
<div class="result text-center">
<h3>Select Results</h3>
<div id="output"></div>
<button id="convert_btn" onclick="downloadResults()" type="button" class="btn btn-primary my-3">Download Selected Results</button>
<div class="result">
<h3>Select Results</h3>
<div id="output"></div>
<button id="convert_btn" onclick="downloadResults()" type="button" class="buttons">Download Selected Results</button>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8" crossorigin="anonymous"></script>
<script src="//code.jquery.com/jquery.min.js"></script>
<script src="./tree_table.js"></script>
<script src="./export.js"></script>

</form>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8" crossorigin="anonymous"></script>
<script src="//code.jquery.com/jquery.min.js"></script>
<script src="./tree_table.js"></script>
<script src="./export.js"></script>
</body>
</html>