Skip to content

Commit c6d5413

Browse files
committed
2021 update -- bugfix for sources link before 2016
1 parent 4612f82 commit c6d5413

4 files changed

Lines changed: 24 additions & 9 deletions

File tree

build_2020.zip

-27.7 MB
Binary file not shown.

build_2021.zip

6.74 MB
Binary file not shown.

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"> 2021</option>
2122
<option value="15"> 2020</option>
2223
<option value="14"> 2019</option>
2324
<option value="13"> 2018</option>

js/script.js

Lines changed: 23 additions & 9 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];
5+
var tableIndex = [23,30,46,53,58,78,63,79,89,112,149,162,165,250,261,270,253];
66
var lastInfo;
77
var startingYear = 2005;
88

@@ -60,7 +60,9 @@ if(year >= 2008)
6060
if(year < 2017)
6161
{
6262
imgUrl = imgIndex.toString();
63+
6364
pageUrl = imgIndex.toString();
65+
pageUrl = minimumDigits(pageUrl, 2);
6466
}
6567
else if(year == 2017)
6668
{
@@ -71,7 +73,7 @@ if(year >= 2008)
7173
pageUrl = minimumDigits(pageUrl, 3);
7274

7375
}
74-
else if(year > 2017 && year < 2019)
76+
else if(year > 2017 && year <= 2018)
7577
{
7678
imgUrl = imgIndex.toString();
7779
imgUrl = minimumDigits(imgUrl, 2);
@@ -81,7 +83,7 @@ if(year >= 2008)
8183
pageUrl = minimumDigits(pageUrl, 3);
8284

8385
}
84-
else
86+
else if(year == 2019)
8587
{
8688
imgUrl = imgIndex.toString();
8789
imgUrl = minimumDigits(imgUrl, 3);
@@ -91,6 +93,14 @@ if(year >= 2008)
9193
pageUrl = minimumDigits(pageUrl, 3);
9294

9395
}
96+
else if(year >= 2020)
97+
{
98+
imgUrl = imgIndex.toString();
99+
imgUrl = minimumDigits(imgUrl, 3);
100+
101+
pageUrl = imgIndex.toString();
102+
pageUrl = minimumDigits(pageUrl, 3);
103+
}
94104

95105
return {
96106
imgUrl :"http://famicase.com/"+yearUrl+"/softs/"+imgUrl+".jpg",
@@ -284,13 +294,17 @@ refreshList();
284294
285295
Index of images are calculated diffrently for each year :
286296
- 2005 to 2008: stored by art name
287-
- 2008 to 2016 : 1 2 3 12 123
288-
- 2017 : 001 002 003 012 123
289-
- 2018 : 01_sample 02_sample 03_sample 12_sample 123_sample
290-
- 2019 : 01_sample 02_sample 03_sample 012_sample 123_sample
297+
- 2008 to 2016 : 1 2 3 12 123
298+
- 2017 : 001 002 003 012 123
299+
- 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
291302
292303
Index of html pages too :
293-
- 2008 to 2016 : 01 02 03 12 123
294-
- 2017 to 2019 : 001 002 003 012 123
304+
- 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
295309
296310
*/

0 commit comments

Comments
 (0)