Update index.html

This commit is contained in:
Anyon 2022-07-12 11:26:27 +08:00
parent 8a1742521e
commit 5a0b7d4ef3

View File

@ -35,7 +35,7 @@
if (typeof d.mime === 'string' && /^image\//.test(d.mime)) { if (typeof d.mime === 'string' && /^image\//.test(d.mime)) {
return laytpl('<div class="headimg headimg-no headimg-ss margin-0" data-tips-hover data-tips-image="{{d.xurl}}" style="background-image:url({{d.xurl}})"></div>').render(d) return laytpl('<div class="headimg headimg-no headimg-ss margin-0" data-tips-hover data-tips-image="{{d.xurl}}" style="background-image:url({{d.xurl}})"></div>').render(d)
} else if (typeof d.mime === 'string' && /^(video|audio)\//.test(d.mime)) { } else if (typeof d.mime === 'string' && /^(video|audio)\//.test(d.mime)) {
return laytpl('<div><a target="_blank" data-iframe="{{d.xurl}}">查看</a></div>').render(d); return laytpl('<div><a target="_blank" data-iframe="{{d.xurl}}" data-title="查看媒体">查看</a></div>').render(d);
} else { } else {
return laytpl('<div><a target="_blank" href="{{d.xurl}}">查看</a></div>').render(d); return laytpl('<div><a target="_blank" href="{{d.xurl}}">查看</a></div>').render(d);
} }