diff --git a/data/oldgamepatches.json b/data/oldgamepatches.json new file mode 100644 index 0000000..0625e36 --- /dev/null +++ b/data/oldgamepatches.json @@ -0,0 +1,321 @@ +{ + "balance": [ + { + "patch": "3779", + "link": "balance/3779.html", + "date": " - January 22 2024" + }, + { + "patch": "3778", + "link": "balance/3778.html", + "date": " - December 31 2023" + }, + { + "patch": "3777", + "link": "balance/3777.html", + "date": " - December 24 2023" + }, + { + "patch": "3775", + "link": "balance/3775.html", + "date": " - November 19 2023" + }, + { + "patch": "3761", + "link": "balance/3761.html", + "date": " - July 15 2023" + }, + { + "patch": "3757", + "link": "balance/3757.html", + "date": " - May 20 2023" + }, + { + "patch": "3750", + "link": "balance/3750.html", + "date": " - January 28 2023" + }, + { + "patch": "3725", + "link": "balance/3725.html", + "date": " - November 26 2021" + }, + { + "patch": "3720", + "link": "balance/3720.html", + "date": " - May 15 2021" + }, + { + "patch": "3718", + "link": "balance/3718.html", + "date": " - November 29 2020" + }, + { + "patch": "3714", + "link": "balance/3714.html", + "date": " - May 3 2020" + }, + { + "patch": "3709", + "link": "balance/3709.html", + "date": " - December 16 2019" + }, + { + "patch": "3704", + "link": "balance/3704.html", + "date": " - June 18 2019" + }, + { + "patch": "3696", + "link": "balance/3696.html", + "date": " - May 26 2018" + }, + { + "patch": "3689", + "link": "balance/3689.html", + "date": " - October 1 2017" + }, + { + "patch": "3688", + "link": "balance/3688.html", + "date": " - September 24 2017" + }, + { + "patch": "3684", + "link": "balance/3684.html", + "date": " - May 27 2017" + }, + { + "patch": "3676", + "link": "balance/3676.html", + "date": " - March 4 2017" + }, + { + "patch": "3674", + "link": "balance/3674.html", + "date": " - February 6 2017" + }, + { + "patch": "3662", + "link": "balance/3662.html", + "date": " - November 9 2016" + }, + { + "patch": "3655", + "link": "balance/3655.html", + "date": " - August 29 2016" + }, + { + "patch": "3650", + "link": "balance/3650.html", + "date": " - August 19 2015" + } + ], + "game": [ + { + "patch": "3708", + "link": "game/3708.html", + "date": " - October 19 2019" + }, + { + "patch": "3707", + "link": "game/3707.html", + "date": " - July 14 2019" + }, + { + "patch": "3706", + "link": "game/3706.html", + "date": " - July 14 2019" + }, + { + "patch": "3705", + "link": "game/3705.html", + "date": " - July 5 2019" + }, + { + "patch": "3703", + "link": "game/3703.html", + "date": " - January 13 2019" + }, + { + "patch": "3702", + "link": "game/3702.html", + "date": " - December 28 2018" + }, + { + "patch": "3701", + "link": "game/3701.html", + "date": " - October 29 2018" + }, + { + "patch": "3700", + "link": "game/3700.html", + "date": " - October 20 2018" + }, + { + "patch": "3699", + "link": "game/3699.html", + "date": " - October 20 2018" + }, + { + "patch": "3698", + "link": "game/3698.html", + "date": " - September 19 2018" + }, + { + "patch": "3697", + "link": "game/3697.html", + "date": " - August 17 2018" + }, + { + "patch": "3696", + "link": "game/3696.html", + "date": " - May 27 2018" + }, + { + "patch": "3695", + "link": "game/3695.html", + "date": " - January 17 2018" + }, + { + "patch": "3694", + "link": "game/3694.html", + "date": " - December 25 2017" + }, + { + "patch": "3693", + "link": "game/3693.html", + "date": " - December 3 2017" + }, + { + "patch": "3692", + "link": "game/3692.html", + "date": " - December 1 2017" + }, + { + "patch": "3690", + "link": "game/3690.html", + "date": " - November 16 2017" + }, + { + "patch": "3689", + "link": "game/3689.html", + "date": " - October 1 2017" + }, + { + "patch": "3686", + "link": "game/3686.html", + "date": " - August 13 2017" + }, + { + "patch": "3682", + "link": "game/3682.html", + "date": " - May 16 2017" + }, + { + "patch": "3681", + "link": "game/3681.html", + "date": " - May 12 2017" + }, + { + "patch": "3680", + "link": "game/3680.html", + "date": " - May 11 2017" + }, + { + "patch": "3677", + "link": "game/3677.html", + "date": " - May 3 2017" + }, + { + "patch": "3676", + "link": "game/3676.html", + "date": " - February 27 2017" + }, + { + "patch": "3675", + "link": "game/3675.html", + "date": " - February 5 2017" + }, + { + "patch": "3672", + "link": "game/3672.html", + "date": " - January 24 2017" + }, + { + "patch": "3671", + "link": "game/3671.html", + "date": " - January 19 2017" + }, + { + "patch": "3670", + "link": "game/3670.html", + "date": " - January 17 2017" + }, + { + "patch": "3669", + "link": "game/3669.html", + "date": " - January 17 2017" + }, + { + "patch": "3668", + "link": "game/3668.html", + "date": " - January 17 2017" + }, + { + "patch": "3667", + "link": "game/3667.html", + "date": " - December 22 2016" + }, + { + "patch": "3666", + "link": "game/3666.html", + "date": " - December 21 2016" + }, + { + "patch": "3665", + "link": "game/3665.html", + "date": " - December 25 2016" + }, + { + "patch": "3664", + "link": "game/3664.html", + "date": " - December 21 2016" + }, + { + "patch": "3664", + "link": "game/3664.html", + "date": " - December 21 2016" + }, + { + "patch": "3663", + "link": "game/3663.html", + "date": " - November 12 2016" + }, + { + "patch": "3660", + "link": "game/3660.html", + "date": " - October 24 2016" + }, + { + "patch": "3658", + "link": "game/3658.html", + "date": " - August 30 2016" + }, + { + "patch": "3656", + "link": "game/3656.html", + "date": " - August 8 2016" + }, + { + "patch": "3654", + "link": "game/3654.html", + "date": " - May 30 2016" + }, + { + "patch": "3652", + "link": "game/3652.html", + "date": " - May 2 2016" + } + ] +} \ No newline at end of file diff --git a/data/patches.json b/data/patches.json index baf6e53..9be4795 100644 --- a/data/patches.json +++ b/data/patches.json @@ -416,211 +416,6 @@ "patch": "3710", "link": "game/3710.html", "date": " - January 26 2020" - }, - { - "patch": "3708", - "link": "game/3708.html", - "date": " - October 19 2019" - }, - { - "patch": "3707", - "link": "game/3707.html", - "date": " - July 14 2019" - }, - { - "patch": "3706", - "link": "game/3706.html", - "date": " - July 14 2019" - }, - { - "patch": "3705", - "link": "game/3705.html", - "date": " - July 5 2019" - }, - { - "patch": "3703", - "link": "game/3703.html", - "date": " - January 13 2019" - }, - { - "patch": "3702", - "link": "game/3702.html", - "date": " - December 28 2018" - }, - { - "patch": "3701", - "link": "game/3701.html", - "date": " - October 29 2018" - }, - { - "patch": "3700", - "link": "game/3700.html", - "date": " - October 20 2018" - }, - { - "patch": "3699", - "link": "game/3699.html", - "date": " - October 20 2018" - }, - { - "patch": "3698", - "link": "game/3698.html", - "date": " - September 19 2018" - }, - { - "patch": "3697", - "link": "game/3697.html", - "date": " - August 17 2018" - }, - { - "patch": "3696", - "link": "game/3696.html", - "date": " - May 27 2018" - }, - { - "patch": "3695", - "link": "game/3695.html", - "date": " - January 17 2018" - }, - { - "patch": "3694", - "link": "game/3694.html", - "date": " - December 25 2017" - }, - { - "patch": "3693", - "link": "game/3693.html", - "date": " - December 3 2017" - }, - { - "patch": "3692", - "link": "game/3692.html", - "date": " - December 1 2017" - }, - { - "patch": "3690", - "link": "game/3690.html", - "date": " - November 16 2017" - }, - { - "patch": "3689", - "link": "game/3689.html", - "date": " - October 1 2017" - }, - { - "patch": "3686", - "link": "game/3686.html", - "date": " - August 13 2017" - }, - { - "patch": "3682", - "link": "game/3682.html", - "date": " - May 16 2017" - }, - { - "patch": "3681", - "link": "game/3681.html", - "date": " - May 12 2017" - }, - { - "patch": "3680", - "link": "game/3680.html", - "date": " - May 11 2017" - }, - { - "patch": "3677", - "link": "game/3677.html", - "date": " - May 3 2017" - }, - { - "patch": "3676", - "link": "game/3676.html", - "date": " - February 27 2017" - }, - { - "patch": "3675", - "link": "game/3675.html", - "date": " - February 5 2017" - }, - { - "patch": "3672", - "link": "game/3672.html", - "date": " - January 24 2017" - }, - { - "patch": "3671", - "link": "game/3671.html", - "date": " - January 19 2017" - }, - { - "patch": "3670", - "link": "game/3670.html", - "date": " - January 17 2017" - }, - { - "patch": "3669", - "link": "game/3669.html", - "date": " - January 17 2017" - }, - { - "patch": "3668", - "link": "game/3668.html", - "date": " - January 17 2017" - }, - { - "patch": "3667", - "link": "game/3667.html", - "date": " - December 22 2016" - }, - { - "patch": "3666", - "link": "game/3666.html", - "date": " - December 21 2016" - }, - { - "patch": "3665", - "link": "game/3665.html", - "date": " - December 25 2016" - }, - { - "patch": "3664", - "link": "game/3664.html", - "date": " - December 21 2016" - }, - { - "patch": "3664", - "link": "game/3664.html", - "date": " - December 21 2016" - }, - { - "patch": "3663", - "link": "game/3663.html", - "date": " - November 12 2016" - }, - { - "patch": "3660", - "link": "game/3660.html", - "date": " - October 24 2016" - }, - { - "patch": "3658", - "link": "game/3658.html", - "date": " - August 30 2016" - }, - { - "patch": "3656", - "link": "game/3656.html", - "date": " - August 8 2016" - }, - { - "patch": "3654", - "link": "game/3654.html", - "date": " - May 30 2016" - }, - { - "patch": "3652", - "link": "game/3652.html", - "date": " - May 2 2016" } ] } \ No newline at end of file diff --git a/index.html b/index.html index 7e0c300..ba486ad 100644 --- a/index.html +++ b/index.html @@ -17,7 +17,7 @@

FAForever Patchnotes

-

One Location where the Balance & Game Patchnote are Available in an easy-to-read manner.

+

One Location where the Balance & Game Patchnote are Available in an easy-to-read manner.

@@ -29,6 +29,7 @@

Balance

Game

+

To see Game Patches before 2020 Click here.

diff --git a/oldGamepatches.html b/oldGamepatches.html new file mode 100644 index 0000000..923ec5d --- /dev/null +++ b/oldGamepatches.html @@ -0,0 +1,39 @@ + + + + FAForever Patchnotes + + + + + + + + + +
+ +
+ +
+

FAForever Patchnotes

+

All Old Game Patches After 2020.

+
+ +
+

Game

+

To go back to the more recent changes Click here.

+
+ +
+
+ +
+

Report Any Issues

+

If you see any issues report please submit a report here.

+
+ + +
+ + \ No newline at end of file diff --git a/scripts/populateOldGamePatches.js b/scripts/populateOldGamePatches.js new file mode 100644 index 0000000..a394a1a --- /dev/null +++ b/scripts/populateOldGamePatches.js @@ -0,0 +1,34 @@ +async function populate() { + const requestURL = 'https://raw.githubusercontent.com/FAForever/patchnotes/master/data/oldgamepatches.json'; + const request = new Request(requestURL); + + const response = await fetch(request); + const patches = await response.json(); + + GamePatches(patches); +} + +function GamePatches(obj) { + const container = document.querySelector(".gameList"); + const list = document.createElement("ul"); + + const patches = obj.game; + + for (const patch in patches) { + const listitem = document.createElement("li"); + const link = document.createElement("a"); + const date = document.createElement("span"); + + link.textContent = patches[patch].patch; + link.href = patches[patch].link; + + date.textContent = patches[patch].date; + + listitem.appendChild(link); + listitem.appendChild(date); + list.appendChild(listitem); + } + container.appendChild(list); +} + +populate(); \ No newline at end of file diff --git a/style/oldgame.css b/style/oldgame.css new file mode 100644 index 0000000..730e802 --- /dev/null +++ b/style/oldgame.css @@ -0,0 +1,135 @@ +@import 'root.css'; + +/* Tags*/ + +html { + background-size: cover; + background-repeat: no-repeat; + min-height: 100%; +} + +body { + background: none; +} + +h1,h2,h3,h4 { + font-family: 'Ubuntu', sans-serif; + font-style: normal; + font-weight: normal; + text-align: center; +} + +li { list-style-type: none; } + +ul { columns: 4;} + +/* Classes*/ + +.grid { + display: grid; + padding: 10px; + grid-template-columns: .25fr 2.5fr 2.5fr .25fr; + grid-gap: 20px; + margin: 10px; +} + +.gridBG { + background: var(--Primary-Grid-BG); + border-radius: 15px; + backdrop-filter: blur(10px); +} + +.blank { + padding: 10px; + text-align: center; + grid-row: 1; + grid-column: 2 / span 2; +} + +.title { + padding: 10px; + text-align: center; + grid-row: 2; + grid-column: 2 / span 2; +} + +.title h1 { + font-size: 40px; +} +.title p { + font-size: 16px; + color: var(--Primary-Text); +} + +.game { + padding: 10px; + grid-column: 2 / span 2; + grid-row: 3; +} +.gamelist { + grid-row: 3; +} + +.support { + padding: 10px; + grid-column: 2 / span 2; + grid-row: 4; + text-align: center; +} + +.header { + background: var(--Primary-BG); + padding: 20px; + text-align: center; + font-size: 30px; +} + + +@media screen and (max-width: 1700px) { + ul { + columns: 2; + } +} + +@media screen and (max-width: 1200px) { + ul { + columns: 1; + } +} + +@media screen and (max-width: 650px ) { + ul { + columns: 2; + } + .grid { + grid-template-columns: 1fr; + grid-template-rows: auto; + } + .title { + grid-row: 1; + } + .balance { + grid-row: 2; + grid-column: 2 /span 2; + } + .game { + grid-row: 4; + grid-column: 2 /span 2; + } + .balanceChanges { + grid-row: 3; + grid-column: 2 /span 2; + } +} + +@media screen and (max-width: 500px ) { + ul { + columns: 1; + } + + .title h1 { + font-size: 40px; + line-height: normal; + } + +} \ No newline at end of file