File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ document.querySelector("title").textContent = "What's New in v" + version;
33document . querySelector ( "h1" ) . textContent = "What's New in v" + version ;
44
55async 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 ( ) ;
You can’t perform that action at this time.
0 commit comments