提交 f7787fad 编写于 作者: P Pengan Zhou

add images, remove some roms

上级 156bdf37
experiment/
*.nes
images/
\ No newline at end of file
# 中文游戏博物馆 [FamiCN.com](http://www.famicn.com)
Online computer museum for Chinese readers and open source community
FamiCN.com 网站是配合知乎专栏 [古董电脑室](https://zhuanlan.zhihu.com/retrocomputing) 建设的中文游戏模拟器网站,主要收集两岸三地非任天堂渠道发行的NES游戏
## Credits and Thanks
[Archive.org](https://www.archive.org)
### Web emulator integration:
[db48x/emularity](https://github.com/db48x/emularity)
\ No newline at end of file
......@@ -27,7 +27,7 @@
<a href="https://zhuanlan.zhihu.com/retrocomputing">知乎专栏</a>
</li>
<li>
<a href="https://github.com/pengan1987/computer-museum-dnbwg">Github</a>
<a href="https://github.com/pengan1987/famicn">Github</a>
</li>
</ul>
</nav>
......
此差异已折叠。
......@@ -24,7 +24,7 @@
<a href="https://zhuanlan.zhihu.com/retrocomputing">知乎专栏</a>
</li>
<li>
<a href="https://github.com/pengan1987/computer-museum-dnbwg">Github</a>
<a href="https://github.com/pengan1987/famicn">Github</a>
</li>
</ul>
</nav>
......
var machineList;
var newMachineList = [];
function processJson(data) {
var machineList = data;
machineList = data;
machineList = splitArrayByTime(machineList);
var base = $("#base-cell");
var machineListContainer = $("#machine-list");
......@@ -29,10 +31,30 @@ function splitArrayByTime(someArray) {
var position = timetoken % someArray.length;
console.log(position);
var first = someArray.slice(0, position);
var second = someArray.slice(position + 1);
var second = someArray.slice(position);
return second.concat(first);
}
$(document).ready(function () {
$.getJSON("games.json", processJson);
});
function testImage() {
for (var i = 0; i < machineList.length; i++) {
var machine = machineList[i];
$.ajax({
url: 'images/' + machine.filename + ".gif",
type: 'HEAD',
async: false,
error: function () {
//do something depressing
newMachineList.push(machine);
},
success: function () {
machine.image = 'images/' + machine.filename + ".gif";
newMachineList.push(machine);
}
});
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册