Skip to content

Commit 2949bc3

Browse files
committed
Worked on an award display interface
1 parent fafed40 commit 2949bc3

4 files changed

Lines changed: 38 additions & 37 deletions

File tree

css/main.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ td{
177177
width: 100%;
178178
}
179179

180-
#award-list-1{
181-
display: flex;
180+
.award-list{
181+
display: none;
182182
}
183183

184-
#award-list-2{
185-
display: none;
184+
.active{
185+
display: flex !important;
186186
}

js/award.js

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,36 @@
1-
var currentAward = 0;
1+
// var currentAward = 0;
22

3-
const award1list1 = document.getElementById("award1-list-1");
4-
const award1list2 = document.getElementById("award1-list-2");
5-
const award1header = document.getElementById("award1-header")
6-
const award1List = [award1, award2]
3+
// const award1list1 = document.getElementById("award1-list-1");
4+
// const award1list2 = document.getElementById("award1-list-2");
5+
// const award1header = document.getElementById("award1-header")
6+
// const award1List = [award1, award2]
77

8-
function switchUp(){
9-
currentAward += 1;
10-
if(currentAward >= awardList.length){
11-
currentAward = 0;
12-
}
13-
for (let item of awardList){
14-
item.style.display = "none";
15-
}
16-
awardList[currentAward].style.display = "flex";
17-
}
8+
// function switchUp(){
9+
// currentAward += 1;
10+
// if(currentAward >= awardList.length){
11+
// currentAward = 0;
12+
// }
13+
// for (let item of awardList){
14+
// item.style.display = "none";
15+
// }
16+
// awardList[currentAward].style.display = "flex";
17+
// }
1818

19-
function switchDown(){
20-
currentAward -= 1;
21-
if(currentAward < 0){
22-
currentAward = awardList.length-1;
23-
}
24-
for (let item of awardList){
25-
item.style.display = "none";
26-
}
27-
awardList[currentAward].style.display = "flex";
28-
}
19+
// function switchDown(){
20+
// currentAward -= 1;
21+
// if(currentAward < 0){
22+
// currentAward = awardList.length-1;
23+
// }
24+
// for (let item of awardList){
25+
// item.style.display = "none";
26+
// }
27+
// awardList[currentAward].style.display = "flex";
28+
// }
2929

30-
function listOfId(){
31-
32-
}
30+
// function test(a, b){
31+
// for (let item of b){
32+
// alert(item);
33+
// }
34+
// }
3335

3436

teams/scout.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
</div>
8787
</div>
8888

89-
9089

9190
</div>
9291
<footer>

test.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@
7979

8080
<div class="column award-panel">
8181
<div class="row award-subpanel">
82-
<button onclick="switchDown()">
82+
<button onclick="test('award1' , ['list1', 'list2'])">
8383
&lt;
8484
</button>
85-
<h1 class="award-header">2023-2024</h1>
85+
<h1 class="award-header award1">2023-2024</h1>
8686
<button onclick="switchUp()">
8787
&gt;
8888
</button>
8989
</div>
90-
<div class="award-subpanel award-list" id="award-list-2">
90+
<div class="award-subpanel award-list award1 list1">
9191
<ul>
9292
<li>WA</li>
9393
<li>WA</li>
@@ -97,7 +97,7 @@ <h1 class="award-header">2023-2024</h1>
9797
<li>WA</li>
9898
</ul>
9999
</div>
100-
<div class="award-subpanel award-list" id="award-list-1">
100+
<div class="award-subpanel award-list award1 list2">
101101
<ul>
102102
<li>WA</li>
103103
<li>WA</li>

0 commit comments

Comments
 (0)