加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 3.45 KB
一键复制 编辑 原始数据 按行查看 历史
Kevin 提交于 2021-11-27 22:35 . Default to auto detect device type
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>三国霸业</title>
<link rel="stylesheet" type="text/css" href="baye.css" />
<link rel="icon" href="favicon.png">
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" id="viewport" name="viewport">
<script>
if (window.location.pathname == '/baye') {
window.location = '/baye/'
}
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?55cdc246d0c836cecfdf39ce0d5657f3";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script src="js/jquery.min.js"></script>
<script src="js/lcd.js?ver=202111140022"></script>
<style>
.index-tip {
color: red;
}
select {
font-size: 16px;
}
.config-item {
margin-top: 8px;
}
</style>
</head>
<body >
<div class="container" style="margin-top:2px">
<button class="btn menu" type="button" onclick="location='choose.html';">选择版本</button>
</div>
<div class="container" style="margin-top:2px">
<button class="btn menu" type="button" onclick="redirect()">进入游戏</button>
</div>
<div class="container" style="margin-top:10px">
<button class="btn menu" type="button" onclick="location='get-sav.html';">存档管理(新)</button>
</div>
<div class="container" style="margin-top:10px"></div>
<div>
<div class="config-item">
操作模式:
<select name="" id="mode-select">
<option value="0">横屏&触控</option>
<option value="2">横屏&手势</option>
<option value="1">竖屏&键盘</option>
<option value="3">竖屏&键盘&触控</option>
</select>
</div>
<div class="config-item">
分辨率:
<select name="" id="resolution-select">
<option value="0">4988</option>
<option value="1">加大</option>
</select>
</div>
<div class="config-item">
终端:
<select name="" id="device-select">
<option value="" selected="selected">自动检测</option>
<option value="mobile">移动端</option>
<option value="desktop">桌面端</option>
</select>
</div>
<div class="config-item">
交流QQ群: 526266208<br>
</div>
</div>
<script>
$(function(){
function bind(id, key) {
$(id).val(window.localStorage[key] || '0');
$(id).change(function () {
window.localStorage[key] = $(this).val();
});
}
bind("#mode-select", "baye/mpage");
bind("#resolution-select", "baye/resolution");
bind("#device-select", "baye/uiKind");
});
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化