-
Notifications
You must be signed in to change notification settings - Fork 2
/
Setting.html
128 lines (126 loc) · 7.23 KB
/
Setting.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html>
<head>
<script>
const os = (u = window.navigator.userAgent) => {
return {
// 不同浏览器及终端
isMobile:
!!u.match(/AppleWebKit.*Mobile/i) ||
!!u.match(
/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/
),
isWechat: !!u.match(/MicroMessenger/i),
isQQ: !!u.match(/QQ/i),
isIos: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
isAndroid: !!u.match(/(Android);?[\s/]+([\d.]+)?/),
isiPhone: !!u.match(/(iPhone\sOS)\s([\d_]+)/),
isSafari: !!u.match(/Safari/),
isFirefox: !!u.match(/Firefox/),
isOpera: !!u.match(/Opera/),
isChrome: u.match(/Chrome/i) !== null &&
u.match(/Version\/\d+\.\d+(\.\d+)?\sChrome\//i) === null ?
true : false,
isDeskTop: (() => {
const Agents = [
'Android',
'iPhone',
'SymbianOS',
'Windows Phone',
'iPad',
'iPod',
'okhttp/3.9.1'
];
let flag = true;
for (let i = 0, LEN = Agents.length; i < LEN; i++) {
if (u.indexOf(Agents[i]) !== -1) {
flag = false;
break;
}
}
return flag;
})()
};
};
var browser = os();//获取浏览器信息
var href = window.location.href.split(window.location.host)[1].split('?')[0]//文件目录地址
var Html5Plus = window.navigator.userAgent.match('Html5Plus') ? 'plus.H59EC0058' : false
if(window.location.href.indexOf('file:///') === 0)
{
href = window.location.href.replace('index.html','')
if(window.navigator.userAgent.match('Html5Plus'))Html5Plus = 'mmt.MoeTalk.WumberBee'
}
var mt_settings = localStorage['设置选项'] ? JSON.parse(localStorage['设置选项']) : {}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<link rel="stylesheet" href="./MoeScript/Style/style.css" data-n-g="">
<title>相关设置页面</title>
<script src="./MoeScript/Script/Jquery.min.js"></script>
<script src="./MoeScript/Script/localforage.min.js"></script>
<script src="./MoeScript/Tools.js" defer=""></script>
<script src="./MoeScript/Function.js" defer=""></script>
</head>
<body style="height:100%;overflow:auto;background-image:linear-gradient( rgba(255,255,255,0.5),rgba(255,255,255,0.5) ),url(Images/Ui/hexa_back_01.webp);background-repeat :no-repeat;background-size :cover;user-select:none;">
<a href='#' onclick="window.history.back();"><b>返回MoeTalk</a></b>
<h1>设置选项:</h1>
<button class="button-container" id='selectgame'><b style='color:red;'>选择游戏</b></button>
<button class="button-container" ><a href='https://wj.qq.com/s2/14292312/3ade/' target='_blank'><b style='color:red;'>问题反馈</a></b></button>
<button class="button-container" ><a href='https://tieba.baidu.com/p/8551808608'><b style='color:black;'>使用教程</a></b></button>
<button class="button-container" ><a href='https://pan.baidu.com/s/1Cc-Us0FM_ehP9h5SDWhrVg?pwd=blda'><b style='color:black;'>客户端下载地址,提取码:blda</a></b></button>
<h2><a>存档相关:</a></h2>
<button class="button-container" id='loadcus'><b style='color:white;'>恢复自定义角色存档</b></button>
<button class="button-container" id='savedata'><b style='color:white'>下载localStorage存档</b></button>
<button class="button-container" id='loaddata'><b style='color:white;'>读取localStorage存档</b></button>
<button class="button-container" id='savemode'><b style='color:white;'>存储模式(慎用)</b></button>
<button class="button-container" id='backsave'><b style='color:white;'>后台保存模式(慎用)</b></button>
<h2><a>截图相关:</a></h2>
<button class="button-container" id='mt-image'><b style='color:blue;'>更改截图格式</b></button>
<button class="button-container" id='mt-maxheight'><b style='color:blue;'>限制截图长度</b></button>
<button class="button-container" id='mt-maxwidth'><b style='color:blue;'>限制截图宽度</b></button>
<button class="button-container" id='mt-zipdownimg'><b style='color:blue;'>打包下载图片</b></button>
<h2><a>图片相关:</a></h2>
<button class="button-container" id='hnum'><b style='color:blue;'>设置自定义头像质量</b></button>
<button class="button-container" id='mt-size'><b style='color:blue;'>设置整体图片宽高百分比</b></button>
<button class="button-container" id='mt-cfsize'><b style='color:blue;'>设置差分表情宽高百分比</b></button>
<h2><a>编辑界面相关:</a></h2>
<button class="button-container" id='mt-fontSize'><b style='color:green;'>设置移动端元素尺寸</b></button>
<button class="button-container" id='language'><b style='color:green;'>更改语言</b></button>
<button class="button-container" id='send'><b style='color:green;'>文字发送方式</b></button>
<button class="button-container" id='font'><b style='color:green;'>字体加载选项</b></button>
<button class="button-container" id='mt-title'><b style='color:green;'>设置标题文字</b></button>
<div style="border:1px solid var(--m-3-sys-light-outline, #79747E)">
<h3 style='color:green;'>标题颜色选择</h3>
<br><b style='color:green;'>推荐颜色:</b>
<button class="button-container selectColor" style="background-color: #8BBBE9;"></button>
<button class="button-container selectColor" style="background-color: #FFDC42;"></button>
<button class="button-container selectColor" style="background-color: #E599FF;"></button>
<button class="button-container selectColor" style="background-color: #8FFFCD;"></button>
<button class="button-container selectColor" style="background-color: #FF8FBF;"></button>
<b style='color:green;'>自定义颜色:</b>
<input type="color" id="titleColor" value="{{i.4|date:'c'}}">
<br><button class="button-container" id='mt-titleColor'><b style='color:green;'>提交颜色</b></button>
</div>
<div style="border:1px solid var(--m-3-sys-light-outline, #79747E)">
<h3 style='color:green;'>聊天字体大小</h3>
<br><b style='color:green;'>文字:</b><input type="text" title='chat' placeholder="1.2rem">
<b style='color:green;'>回复:</b><input type="text" title='reply' placeholder="1.1rem">
<b style='color:green;'>羁绊:</b><input type="text" title='heart' placeholder="1.1rem">
<b style='color:green;'>旁白:</b><input type="text" title='info' placeholder="1.1rem">
<br><button class="button-container" id='mt-fontszie'><b style='color:green;'>提交参数</b></button>
</div>
<h2><a>数据相关:</a></h2>
<button class="button-container" id='cleancache'><b style='color:black;'>清除ServiceWorker缓存</b></button>
<button class="button-container" id='clean'><b style='color:red;'>彻底清除本地数据</b></button>
<h1>存档恢复:</h1>
请上传由MoeTalk生成的png图片:<input type="file" id="file1">
<p><a href="https://space.bilibili.com/13973390">B站主页</a></p>
<p><a href="https://gitlab.com/ggg555ttt/MoeTalk">项目地址(gitlab)</a></p>
<p><a href="https://github.com/ggg555ttt/MoeTalk">项目地址(github)</a></p>
<h1 class="bold">设置信息:</h1>
<p class="mt_settings bold" style="white-space: pre-wrap;"></p>
<p><a href="https://www.bilibili.com/video/BV1Rx421D78C">高本版安卓无法访问data目录的解决方案</a></p>
</body>
</html>