-
Notifications
You must be signed in to change notification settings - Fork 3
/
hs-rean.html
235 lines (235 loc) · 11.9 KB
/
hs-rean.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE HTML>
<html lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Level Weight Generator by Rean</title>
<link rel="stylesheet" href="bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="onekeystrategy.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" type="text/css" href="ui.css">
<link rel="stylesheet" type="text/css" href="mobileui.css" media="only screen and (max-width: 650px)">
<script type='text/javascript' charset="UTF-8" src='jquery.js'></script>
<script type='text/javascript' charset="UTF-8" src='jquery.freezeheader.js'></script>
<script type='text/javascript' charset="UTF-8" src="bootstrap/bootstrap.min.js"></script>
<script type='text/javascript' charset="UTF-8" src="tool.js"></script>
<script type='text/javascript' charset="UTF-8" src='data/wardrobe.js'></script>
<script type='text/javascript' charset="UTF-8">
var wardrobe_orig = wardrobe;
var wardrobe = function() {
var ret = [];
var skip_new = (window.location.href.toUpperCase().indexOf('?OLD')>0) ? 1 : 0 ;
var last_ver = wardrobe_orig[wardrobe_orig.length-1][17];
for (var i in wardrobe_orig) {
var tmp=wardrobe[i];
if(skip_new) {if(tmp[17]==last_ver) continue;}
ret.push(tmp);
}
return ret;
}();
$(document).ready(function () {
$('#rean_cnt').html(wardrobe.length);
});
</script>
<script type='text/javascript' charset="UTF-8" src='data/exc.js'></script>
<script type='text/javascript' charset="UTF-8" src='scoring.js'></script>
<script type='text/javascript' charset="UTF-8" src='data/levels.js'></script>
<script type='text/javascript' charset="UTF-8" src='data/flist.js'></script>
<script type='text/javascript' charset="UTF-8" src='model.js'></script>
<script type='text/javascript' charset="UTF-8" src='data/pattern.js'></script>
<script type='text/javascript' charset="UTF-8" src='ui.js'></script>
<script type='text/javascript' charset="UTF-8" src='nikki.js'></script>
<script type='text/javascript' charset="UTF-8">
var calcGlobalClothes = 1;
var output_contents = '';
function addBoost(boost1,boost2){
//$('#output_row').append("'"+$("#theme").val()+"':['"+boost1+"','"+boost2+"'],"+"<br>");
output_contents += "'"+$("#theme").val()+"':['"+boost1+"','"+boost2+"'],"+"<br>";
if(window.location.href.toUpperCase().indexOf('?DEBUG')>0){
$(".1d27").removeClass("active");
$(".1d778").removeClass("active");
$('#' + boost1 + "1d27").addClass("active");
$('#' + boost2 + "1d778").addClass("active");
criteria = {};
for (var i in FEATURES) {
var f = FEATURES[i];
var weight = parseFloat($('#' + f + "Weight").val());
if (!weight) {
weight = 1;
}
if (uiFilter["highscore"]) {
var highscore2 = $('#' + f + "1d778.active").length ? 1.778 : 1;
var highscore1 = $('#' + f + "1d27.active").length ? 1.27 : 1;
weight = accMul(accMul(weight, highscore1), highscore2);
if (highscore1>1) criteria.highscore1=f;
if (highscore2>1) criteria.highscore2=f;
}
var checked = $('input[name=' + f + ']:radio:checked');
if (checked.length) {
criteria[f] = parseInt(checked.val()) * weight;
}
}
tagToBonus(criteria, 'tag1');
tagToBonus(criteria, 'tag2');
if (global.additionalBonus && global.additionalBonus.length > 0) {
criteria.bonus = global.additionalBonus;
}
criteria.levelName = $("#theme").val();
criteria['missing'] = true;
chooseAccessories(criteria);
for (var c in category){
if (shoppingCart.cart[category[c]]) //$('#output_row').append(shoppingCart.cart[category[c]].name+shoppingCart.cart[category[c]].version);
output_contents += shoppingCart.cart[category[c]].name+shoppingCart.cart[category[c]].version;
}
}
}
function genLimit(){
var date1=new Date();
for (var c in tasksRaw){
theme_name=c;
if (allThemes[theme_name]) {
$("#theme").val(theme_name);
setFilters(allThemes[theme_name]);
autogenLimit();
}
}
for (var d in levelsRaw){
theme_name='关卡: '+d;
if (allThemes[theme_name]) {
$("#theme").val(theme_name);
setFilters(allThemes[theme_name]);
autogenLimit();
}
}
var date2=new Date();
//$('#output_row').append('Done! Time used: '+((date2-date1)/1000).toFixed(2)+' secs<br>');
output_contents += 'Done! Time used: '+((date2-date1)/1000).toFixed(2)+' secs<br>';
output_hs();
}
function output_hs(){
$('#output_row').html(output_contents);
}
function initOnekey(){}
function showStrategy(){}
</script>
</head>
<body>
<p id="output_row"></p>
<div class='top'>
<div class="fliter">
<div id='filtersTop'>
<select id="theme" onChange="changeTheme();output_hs();"></select>
<div id='reanComment'>
<label><input type="checkbox" class="fliter" value="highscore"> >ω< </label>
Cnt:<span id="rean_cnt"></span><br>
<a href="" style="text-decoration:none;color:#333;" onclick="genLimit();return false;"><All at once></a>
</div>
</div>
<div class="fliter_form_div" style="display:none">
<form name="filter_form" class="form-inline">
<div class="fliter_form_div_left">
<div class='facet'>
<div class="weightContainer" role="group" data-toggle="buttons">
<label class="btn btn-sm btn-default"><input class="filter-radio" type="radio" name="simple" value="1"/> 简约</label>
<label class="btn btn-sm btn-default"><input class="filter-radio" type="radio" name="simple" value="-1"/> 华丽</label>
<input class="btn-sm" placeholder="权重" type="text" id="simpleWeight" name="simpleWeight" value="1" onChange="changeFilter()" />
<span class="highscore-link btn-sm 1d778" id="simple1d778">微笑+飞吻</span>
<span class="highscore-link btn-sm 1d27" id="simple1d27">微笑</span>
<span class="highscore-rank btn-sm" id="simplerank"></span>
</div>
<div class="weightContainer" role="group" data-toggle="buttons">
<label class="btn btn-sm btn-default"><input class="filter-radio" type="radio" name="cute" value="1"/> 可爱</label>
<label class="btn btn-sm btn-default"><input class="filter-radio" type="radio" name="cute" value="-1"/> 成熟</label>
<input class="btn-sm" placeholder="权重" type="text" id="cuteWeight" name="cuteWeight" value="1" onChange="changeFilter()" />
<span class="highscore-link btn-sm 1d778" id="cute1d778">微笑+飞吻</span>
<span class="highscore-link btn-sm 1d27" id="cute1d27">微笑</span>
<span class="highscore-rank btn-sm" id="cuterank"></span>
</div>
<div class="weightContainer" role="group" data-toggle="buttons">
<label class="btn btn-sm btn-default"><input class="filter-radio" type="radio" name="active" value="1"/> 活泼</label>
<label class="btn btn-sm btn-default"><input class="filter-radio" type="radio" name="active" value="-1"/> 优雅</label>
<input class="btn-sm" placeholder="权重" type="text" id="activeWeight" name="activeWeight" value="1" onChange="changeFilter()" />
<span class="highscore-link btn-sm 1d778" id="active1d778">微笑+飞吻</span>
<span class="highscore-link btn-sm 1d27" id="active1d27">微笑</span>
<span class="highscore-rank btn-sm" id="activerank"></span>
</div>
<div class="weightContainer" role="group" data-toggle="buttons">
<label class="btn btn-sm btn-default"><input class="filter-radio" type="radio" name="pure" value="1"/> 清纯</label>
<label class="btn btn-sm btn-default"><input class="filter-radio" type="radio" name="pure" value="-1"/> 性感</label>
<input class="btn-sm" placeholder="权重" type="text" id="pureWeight" name="pureWeight" value="1" onChange="changeFilter()" />
<span class="highscore-link btn-sm 1d778" id="pure1d778">微笑+飞吻</span>
<span class="highscore-link btn-sm 1d27" id="pure1d27">微笑</span>
<span class="highscore-rank btn-sm" id="purerank"></span>
</div>
<div class="weightContainer" role="group" data-toggle="buttons">
<label class="btn btn-sm btn-default"><input class="filter-radio" type="radio" name="cool" value="1"/> 清凉</label>
<label class="btn btn-sm btn-default"><input class="filter-radio" type="radio" name="cool" value="-1"/> 保暖</label>
<input class="btn-sm" placeholder="权重" type="text" id="coolWeight" name="coolWeight" value="1" onChange="changeFilter()" />
<span class="highscore-link btn-sm 1d778" id="cool1d778">微笑+飞吻</span>
<span class="highscore-link btn-sm 1d27" id="cool1d27">微笑</span>
<span class="highscore-rank btn-sm" id="coolrank"></span>
</div>
<div class='weightContainer' id = "tag1Container" role="group" data-toggle="buttons">
<input class="btn-sm" placeholder="tag1" type="text" id="tag1" name="tag1" onChange="changeFilter()" />
<label class="btn btn-sm btn-default active"><input class="filter-radio" type="radio" name="tag1method" value="add" checked/> 加分</label>
<label class="btn btn-sm btn-default"><input class="filter-radio" type="radio" name="tag1method" value="replace"/> 替换</label>
<select class="btn-sm" id="tag1base" onChange="changeFilter()">
<option>SS</option>
<option>S</option>
<option>A</option>
<option>B</option>
<option>C</option>
<option>F</option>
</select>
<input class="btn-sm" type="text" id="tag1weight" name="tag1weight" value="1" onChange="changeFilter()" />
</div>
<div class='weightContainer' id = "tag2Container" role="group" data-toggle="buttons">
<input class="btn-sm" placeholder="tag2" type="text" id="tag2" name="tag2" onChange="changeFilter()" />
<label class="btn btn-sm btn-default active"><input class="filter-radio" type="radio" name="tag2method" value="add" checked/> 加分</label>
<label class="btn btn-sm btn-default"><input class="filter-radio" type="radio" name="tag2method" value="replace"/> 替换</label>
<select class="btn-sm" id="tag2base" onChange="changeFilter()">
<option>SS</option>
<option>S</option>
<option>A</option>
<option>B</option>
<option>C</option>
<option>F</option>
</select>
<input class="btn-sm" type="text" id="tag2weight" name="tag2weight" value="1" onChange="changeFilter()" />
</div>
</div><!-- facet -->
</div>
</form>
</div><!-- fliter_form_div -->
</div><!-- fliter -->
</div><!-- top -->
<span style="display:none">
<div id = 'shoppingCartContainer'>
推荐穿戴部件
<button class="btn btn-default" style="float:right" onclick="clearShoppingCart()">清空</button>
<div id='shoppingCart' class="table"></div>
</div>
<hr>
<div id = 'category_container'></div>
<div id = "clothes" class="table"></div>
<div class = "showmore" id= "showmore" isshowmore="1">↓显示全部衣服↓</div>
<div id = "end"></div>
<hr>
<p>导入批量衣服,请先选择要导入的类别,然后在文本框内输入编号,用空格、逗号或者换行隔开</p>
<div id = "import">
<select id="importCate" onChange="clearImport()" ></select><br/>
<textarea id="importData" rows=5 style="width:60%" ></textarea>
<button onClick="doImport()">导入</button>
</div>
<hr>
<p>我拥有的服装 (复制衣橱文本框内容以备份衣橱)<br/>
<span id='wardrobe_cnt'></span></p>
<textarea id="myClothes" rows=10 style="width:60%"></textarea><br/>
<button onClick="loadCustomInventory()">Update Inventory</button>
<hr>
</span>
</body>
</html>