Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
东方怂天
famicn
提交
f7787fad
F
famicn
项目概览
东方怂天
/
famicn
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
famicn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
f7787fad
编写于
10月 31, 2018
作者:
P
Pengan Zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add images, remove some roms
上级
156bdf37
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
759 addition
and
739 deletion
+759
-739
.gitignore
.gitignore
+1
-0
README.md
README.md
+9
-0
famiclone.html
famiclone.html
+1
-1
games.json
games.json
+723
-735
index.html
index.html
+1
-1
index.js
index.js
+24
-2
未找到文件。
.gitignore
浏览文件 @
f7787fad
experiment/
*.nes
images/
\ No newline at end of file
README.md
0 → 100644
浏览文件 @
f7787fad
# 中文游戏博物馆 [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
famiclone.html
浏览文件 @
f7787fad
...
...
@@ -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>
...
...
games.json
浏览文件 @
f7787fad
此差异已折叠。
点击以展开。
index.html
浏览文件 @
f7787fad
...
...
@@ -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>
...
...
index.js
浏览文件 @
f7787fad
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录