-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
138 lines (138 loc) · 5.73 KB
/
index.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
<!DOCTYPE html lang="Zh_cn">
<html>
<head>
<meta charset="utf-8">
<title>猫命规则发牌器</title>
<link rel="stylesheet" href="css/uikit.min.css" />
<script type="text/javascript" src="src/cathasnlife.min.js"></script>
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<nav class="uk-navbar-container uk-margin uk-navbar" uk-navbar="">
<div class="uk-navbar-center">
<div class="uk-navbar-center-left">
<ul class="uk-navbar-nav">
<li><a href="https://github.com/JiYouMCC/CatHasNLives" target="_blank">Github仓库</a></li>
</ul>
</div>
<a class="uk-navbar-item uk-logo" href="/">猫命规则发牌器</a>
<div class="uk-navbar-center-right">
<ul class="uk-navbar-nav">
<li>
<a href="#">预设规则 <span uk-icon="icon: triangle-down"></a>
<div uk-dropdown="mode: click;">
<ul class="uk-nav uk-navbar-dropdown-nav">
<li><a href="#" onclick="setRule(rule_7);">【7人规则】</a></li>
<li><a href="#" onclick="setRule(rule_9);">【9人规则】</a></li>
<li><a href="#" onclick="setRule(rule_single);">【12人3杀1.0规则】</a></li>
<li><a href="#" onclick="setRule(rule_20);">【12人3警3杀2.0规则】</a></li>
</ul>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="uk-container">
<div uk-grid>
<div class="uk-width-1-3">
<h4>基本参数</h4>
<form class="uk-form-horizontal">
<div class="uk-margin">
<label class="uk-form-label" for="playerCount">玩家数量</label>
<div class="uk-form-controls">
<input class="uk-input uk-form-small" id="playerCount" type="number" value="7" min="1">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="cardEach">每人牌数</label>
<div class="uk-form-controls">
<input class="uk-input uk-form-small" id="cardEach" type="number" value="5" min="1">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="optionalCount">自选阵营人数</label>
<div class="uk-form-controls">
<input class="uk-input uk-form-small" id="optionalCount" type="number" value="1" min="0">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="killerHelperCount">杀助人数</label>
<div class="uk-form-controls">
<input class="uk-input uk-form-small" id="killerHelperCount" type="number" value="0" min="0">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="werewolfHelperCount">狼崽人数</label>
<div class="uk-form-controls">
<input class="uk-input uk-form-small" id="werewolfHelperCount" type="number" value="0" min="0">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label">每人水牌数量范围</label>
<div class="uk-form-controls">
<input class="uk-input uk-form-small" id="resourceMin" type="number" value="1" min="0"> ~ <input class="uk-input uk-form-small" id="resourceMax" type="number" value="2" min="0">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label"><input class="uk-checkbox" type="checkbox" id="keepResource"> 水牌不得弃</label>
</div>
</form>
</div>
<div class="uk-width-1-3">
<h4>牌组设定</h4>
<form class="uk-form-stacked">
<div class="uk-margin">
<label class="uk-form-label" for="cardIdentity">身份特权牌</label>
<div class="uk-form-controls">
<textarea class="uk-textarea uk-form-small" rows="2" id="cardIdentity" rows="14"></textarea>
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="cardResource">资源牌</label>
<div class="uk-form-controls">
<textarea class="uk-textarea uk-form-small" rows="2" id="cardResource" rows="14"></textarea>
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="cardPrivilege">特权牌</label>
<div class="uk-form-controls uk-form-small">
<textarea class="uk-textarea uk-form-small" id="cardPrivilege" rows="3"></textarea>
</div>
</div>
</form>
</div>
<div class="uk-width-1-3">
<h4>玩家设定</h4>
<form class="uk-form-stacked">
<div class="uk-margin">
<div class="uk-form-controls">
<textarea class="uk-textarea uk-form-small" rows="15" id="players">斑马
叶子
小蝶
楼兰
睡觉觉
瓶子
折光
鸡毛
飞鱼</textarea>
</div>
</div>
</form>
</div>
</div>
<button class="uk-button uk-button-primary uk-align-center" onclick="doingLicense();">发牌</button>
<h4>发牌结果</h4>
<table id="result_table" class="uk-table uk-table-small uk-table-striped">
<tbody id="result">
<tr>
<td>未发牌</td>
</tr>
</tbody>
</table>
</div>
</body>
<script src="js/jquery-3.1.1.min.js"></script>
<script src="js/uikit.min.js"></script>
<script type="text/javascript">setRule(rule_9)</script>
</html>