1 Star 0 Fork 41

reggie/baye-alpha

forked from BGWP/baye-alpha 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
load.html 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
Kevin 提交于 2016-10-28 20:08 . 导出存档名
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>载入存档</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" id="viewport" name="viewport">
<link rel="stylesheet" type="text/css" href="baye.css" />
<script src="js/lzma_worker-min.js"></script>
<script src="js/base64.js"></script>
</head>
<body>
<script>
(function() {
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
function filename(n) {
return "baye//data//sango" + n + ".sav";
}
function load(n, hex) {
var tuple = hex.split(".");
localStorage[filename(n*3)] = tuple[0];
localStorage[filename(n*3+1)] = tuple[1];
}
var data = getParameterByName("sav", window.location.href);
var name = getParameterByName("name", window.location.href);
data = data.replace(/ /g, "+");
var lzma = Base64.decode(data);
var hex = LZMA.decompress(lzma);
load(2, hex);
document.write("<br>");
document.write("已载入到第4个存档位<br>");
if (name && name.length) {
document.write("请使用'" + name + "'载入存档");
}
})();
</script>
<button class="btn menu" type="button" onclick="location='index.html';">返回游戏</button>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/reggiepy/baye-alpha.git
[email protected]:reggiepy/baye-alpha.git
reggiepy
baye-alpha
baye-alpha
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385