Skip to content

Commit a531d1e

Browse files
committed
2022 update. 2020 images changed formatting
1 parent a1555cd commit a531d1e

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ <h1 id="title" onclick="randomize();">→ RAND<span id="arr">↻</span>M FAMICAS
1818
<select id="year">
1919
<option value="-1" selected>ANY YEAR</option>
2020
<option value="-2">ANY BIG</option>
21+
<option value="16"> 2022</option>
2122
<option value="16"> 2021</option>
2223
<option value="15"> 2020</option>
2324
<option value="14"> 2019</option>

js/script.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ function qs(s){return document.getElementById(s)};
22
function dc(s){return document.createElement(s)};
33
function rand(min,max){return Math.floor(Math.random()*(max-min+1))+min};
44

5-
var tableIndex = [23,30,46,53,58,78,63,79,89,112,149,162,165,250,261,270,253];
5+
var tableIndex = [23,30,46,53,58,78,63,79,89,112,149,162,165,250,261,270,253,253];
66
var lastInfo;
77
var startingYear = 2005;
88

@@ -83,7 +83,7 @@ if(year >= 2008)
8383
pageUrl = minimumDigits(pageUrl, 3);
8484

8585
}
86-
else if(year == 2019)
86+
else if(year >= 2019 && year <= 2020)
8787
{
8888
imgUrl = imgIndex.toString();
8989
imgUrl = minimumDigits(imgUrl, 3);
@@ -93,7 +93,7 @@ if(year >= 2008)
9393
pageUrl = minimumDigits(pageUrl, 3);
9494

9595
}
96-
else if(year >= 2020)
96+
else if(year >= 2021)
9797
{
9898
imgUrl = imgIndex.toString();
9999
imgUrl = minimumDigits(imgUrl, 3);
@@ -293,18 +293,15 @@ refreshList();
293293
Years always have 2 digits : 08, 09, 10, 11 ...
294294
295295
Index of images are calculated diffrently for each year :
296-
- 2005 to 2008: stored by art name
296+
- 2005 to 2008 : stored by art name
297297
- 2008 to 2016 : 1 2 3 12 123
298298
- 2017 : 001 002 003 012 123
299299
- 2018 : 01_sample 02_sample 03_sample 12_sample 123_sample
300-
- 2019 : 01_sample 02_sample 03_sample 012_sample 123_sample
301-
- 2020 to 2021 : 001 002 003 012 123
300+
- 2019 to 2020 : 01_sample 02_sample 03_sample 012_sample 123_sample
301+
- 2021 to 2022 : 001 002 003 012 123
302302
303303
Index of html pages too :
304304
- 2008 to 2016 : 01 02 03 12 123
305-
- 2017 to 2019 : 001 002 003 012 123
306-
307-
todo: the source page url for 2013 cart 04 doesn't work --
308-
the code might not be following the pattern exposed here
305+
- 2017 to 2022 : 001 002 003 012 123
309306
310307
*/

0 commit comments

Comments
 (0)