◆少前百科是非盈利性、非官方的少女前线维基百科。
◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科
◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科
◆To foreigners,You can use twitter to contact us.
Icon Nyto Silver.png

“Widget:Tdollquery2”的版本间的差异

来自少前百科GFwiki
跳转至: 导航搜索
第779行: 第779行:
 
}
 
}
 
}
 
}
 
+
function timeS2S(tStr){Date.parse("1970-1-1 "+tStr+" GMT")}
 
function text_check(query){ //文本输入框判断(现仅实现判断枪名)
 
function text_check(query){ //文本输入框判断(现仅实现判断枪名)
 
if (!inputText){return true};
 
if (!inputText){return true};
 
if(inputText.value.indexOf("t:")>-1&&query.productionTime.split(":").length>1){
 
if(inputText.value.indexOf("t:")>-1&&query.productionTime.split(":").length>1){
var time = inputText.value.substr(inputText.value.indexOf("t:")+2,4);
+
var time = parseInt(inputText.value.substr(inputText.value.indexOf("t:")+2,4))+":00";
var a = query.productionTime.split(":").join("").substr(0,4).indexOf(time)>-1;
+
time=time.slice(0,time.indexOf(":")-2)+":"+time.slice(time.indexOf(":")-2);console.log(time)
 +
 +
var a = Math.abs(timeS2S(query.productionTime)-timeS2S(time))<20000;
 
}else{
 
}else{
 
var a = new RegExp(inputText.value,"i").test(query.nameIngame);
 
var a = new RegExp(inputText.value,"i").test(query.nameIngame);

2021年7月6日 (二) 17:32的版本