Merge branch 'gh-pages' of https://github.com/mumuy/relationship into gh-pages
This commit is contained in:
commit
d7c19d6462
2
app.html
2
app.html
@ -14,7 +14,7 @@
|
||||
<div class="icon"><img src="image/icon.png" width="72" height="72"/></div>
|
||||
<div class="info">
|
||||
<p>三姑六婆计算器</p>
|
||||
<p><a href="http://pan.baidu.com/s/1gfLgK75" target="_blank">下载</a></p>
|
||||
<p><a href="http://pan.baidu.com/s/1geZJGxd" target="_blank">下载</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mod-view">
|
||||
|
12
index.html
12
index.html
@ -105,10 +105,20 @@
|
||||
var value = $textarea[0].value.trim();
|
||||
var index = value.lastIndexOf('的');
|
||||
index = Math.max(0,index);
|
||||
$textarea[0].value = value.substr(0,index);
|
||||
var search = value.substr(0,index);
|
||||
$textarea[0].value = search;
|
||||
$textarea[1].value = '';
|
||||
var name = search.split('的').pop();
|
||||
if(!name){
|
||||
$btns[2].disabled=false;
|
||||
$btns[3].disabled=false;
|
||||
}else if('爸爸,老公,儿子,哥哥,弟弟'.indexOf(name)>-1){
|
||||
$btns[2].disabled=true;
|
||||
$btns[3].disabled=false;
|
||||
}else{
|
||||
$btns[2].disabled=false;
|
||||
$btns[3].disabled=true;
|
||||
}
|
||||
}
|
||||
|
||||
$buttons[2].onclick = function(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user