1 Star 0 Fork 18

潜水的鱼/Evolve

forked from 锅巴汉化/Evolve 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
save.html 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
Peter Motschmann 提交于 2021-04-09 17:49 . Basic metrics tracking
<!DOCTYPE HTML>
<html>
<head>
<title>Evolve Save String</title>
<meta http-equiv="Content-type" content="text/html;charset=utf-8">
<link rel="icon" href="evolved.ico" type="images/x-icon">
<script src="lib/lz-string.min.js"></script>
<style>
#save {
width: 90%;
height: 20rem;
}
</style>
</head>
<body>
<textarea id="save"></textarea>
<script>
let global_data = window.localStorage.getItem('evolved') || false;
if (global_data) {
let saveState = JSON.parse(LZString.decompressFromUTF16(global_data));
if (saveState){
document.getElementById('save').innerHTML = LZString.compressToBase64(JSON.stringify(saveState));
}
else {
document.getElementById('save').innerHTML = 'Corrupted save data detected';
}
}
else {
document.getElementById('save').innerHTML = 'No Save data detected';
}
</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CPC46V71CB"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-CPC46V71CB');
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/wjup/Evolve.git
[email protected]:wjup/Evolve.git
wjup
Evolve
Evolve
master

搜索帮助