Skip to content

Commit 100e4a4

Browse files
authored
Merge branch 'main' into select-self
2 parents a04f4fd + 23b500b commit 100e4a4

6 files changed

Lines changed: 817 additions & 263 deletions

File tree

changelog/changes.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"NOTE": "THERE IS NO NEED TO UPDATE THIS YOURSELF, IT WILL BE UPDATED WHEN RELEASED.",
3-
"version": "3.7.0",
3+
"version": "3.8.0",
44
"enhanced": [
5-
"Improve code quality.",
6-
"Remove ScratchTools Awards ads.",
7-
"Added Spanish as a language."
5+
"Update contributor names.",
6+
"Add clicker game."
87
],
98
"fixed": [
10-
"Fix Flag on Profile feature."
9+
"Fix protect mention text.",
10+
"Fix search bar."
1111
]
1212
}

changelog/script.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ document.querySelector("title").textContent = "What's New in v" + version;
33
document.querySelector("h1").textContent = "What's New in v" + version;
44

55
async function getChanges() {
6-
var newFeatures = await (await fetch("/features/features.json")).json();
6+
var newFeatures = (await (await fetch("/features/features.json")).json()).reverse();
7+
let soFarI = 0
78
for (var i in newFeatures) {
89
var feature = newFeatures[i];
910
if (feature.versionAdded === "v" + version || feature.versionUpdated === "v" + version) {
@@ -24,13 +25,14 @@ async function getChanges() {
2425
var design = document.createElement("div");
2526
design.className = "colorful-design";
2627
div.prepend(design);
27-
if (i > 2) {
28+
if (soFarI > 2) {
2829
div.className = "wide-feature feature";
2930
document.querySelector(".new-features-full").prepend(div);
3031
} else {
3132
div.className = "feature";
3233
document.querySelector(".new-features").prepend(div);
3334
}
35+
soFarI += 1
3436
}
3537
}
3638
const changes = await (await fetch("./changes.json")).json();

0 commit comments

Comments
 (0)