Backup/Discuz.Web/javascript/template_utils.js
(开头部分) 13KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
function MinPhotoSize(actual, maxvalue) {
return Math.min(actual, maxvalue) + "px";
}
function ShowFormatBytesStr(bytes) {
if(bytes > 1073741824) {
document.write((Math.round((bytes/1073741824)*100)/100).toString()+' G');
} else if(bytes > 1048576) {
document.write((Math.round((bytes/1048576)*100)/100).toString()+' M');
} else if(bytes > 1024) {
document.write((Math.round((bytes/1024)*100)/100).toString()+' K');
} else {
document.write(bytes.toString()+' Bytes');
}
}
function MouseCursor(obj) {
if (is_ie)
obj.style.cursor = 'hand';
else
obj.style.cursor = 'pointer';
}
function convertdate(strdate) {
strdate = strdate.replace(/-/ig,'/');
var d = new Date(strdate);
var now = new Date();
var result;
if (d.getYear() == now.getYear() && d.getMonth() == now.getMonth()) {
var xday = now.getDate() - d.getDate();
switch (xday) {
case 0:
result = "今天 " + d.format("hh") + ":" + d.format("mm");
break;
case 1:
result = "昨天 " + d.format("hh") + ":" + d.format("mm");
break;
case 2:
result = "前天 " + d.format("hh") + ":" + d.format("mm");
break;
default:
result = d.format("yyyy-MM-dd hh:mm");
break;
}
} else {
result = d.format("yyyy-MM-dd hh:mm");
}
return result;
}
function convertdate2(strdate)
{
strdate = strdate.replace(/-/ig,'/');
var d = new Date(strdate);
var now = new Date();
var result = now - d;
if (now.getYear() == d.getYear() && now.getMonth() == d.getMonth() && now.getDate() - d.getDate() > 0){
后面还有 405 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
