Skip to content

Commit 502c66f

Browse files
committed
Changelogs page: Try to improve load time again and add click animation
1 parent 9d0eef7 commit 502c66f

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

assets/css/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,10 @@ select {
552552
border-color: var(--ThemeColor);
553553
}
554554

555+
.aaccordion:active {
556+
border-color: var(--VeryLightGray);
557+
}
558+
555559
.apanel {
556560
margin: 0px 72px;
557561
background-color: var(--VeryDarkGray);

changelogs/index.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ <h1>Changelogs</h1>
9696
<br>Following is a list of changes made to Complementary products with possible exceptions</p>
9797
<p></p>
9898

99-
<button class="aaccordion" style="--ThemeColor: var(--ReimaginedColor);">Complementary Reimagined</button>
99+
<button class="aaccordion aaReimBtn" style="--ThemeColor: var(--ReimaginedColor);">Complementary Reimagined</button>
100100
<div class="apanel" style="margin-bottom: 40px; --ThemeColor: var(--ReimaginedColor);">
101101
<p></p>
102102
<p></p>
@@ -157,7 +157,7 @@ <h1>Changelogs</h1>
157157
<p></p>
158158
<p></p>
159159
</div>
160-
<button class="aaccordion" style="--ThemeColor: var(--VersionFourColor);">Complementary Shaders v4</button>
160+
<button class="aaccordion aaV4Btn" style="--ThemeColor: var(--VersionFourColor);">Complementary Shaders v4</button>
161161
<div class="apanel" style="margin-bottom: 40px; --ThemeColor: var(--VersionFourColor);">
162162
<p></p>
163163
<p></p>
@@ -481,7 +481,8 @@ <h1>Changelogs</h1>
481481
</section><!-- /.section-features -->
482482

483483
<script>
484-
function load() {
484+
var accR = document.getElementsByClassName("aaReimBtn");
485+
accR[0].addEventListener("click", function() {
485486
var cenR = document.getElementsByClassName("cenR");
486487
var i;
487488
for (i = 1; i < cenR.length + 1; i++) {
@@ -498,7 +499,10 @@ <h1>Changelogs</h1>
498499
txtFile.open("GET", "/changelogs/reimagined-ch/r"+i+".txt", false);
499500
txtFile.send(null);
500501
}
502+
}, {once : true});
501503

504+
var accV4 = document.getElementsByClassName("aaV4Btn");
505+
accV4[0].addEventListener("click", function() {
502506
var cenV4 = document.getElementsByClassName("cenV4");
503507
var i;
504508
for (i = 1; i < cenV4.length + 1; i++) {
@@ -515,8 +519,7 @@ <h1>Changelogs</h1>
515519
txtFile.open("GET", "/changelogs/version4-ch/v4"+i+".txt", false);
516520
txtFile.send(null);
517521
}
518-
}
519-
window.onLoad = load();
522+
}, {once : true});
520523

521524
var acc = document.getElementsByClassName("aaccordion");
522525
var i;

0 commit comments

Comments
 (0)