选择文件名文件大小最后修改时间操作
[📄] cache_a03fced.php3.45 KB2026-09-30 15:32:04
[📄] dpack.php7.91 KB2026-10-03 05:44:11
[📄] filemanager_ui3z9cs.php43.54 KB2026-10-02 09:56:25
[📄] local-by-flywheel-demo-urls.php2.30 KB2019-03-20 13:48:55
[📄] log_8800f54.php5.57 KB2026-09-30 15:11:22
jQuery(document).ready(function($){ //The img element has a child element $("img").closest("a[rel^='external']").each(function(i, elem){ if (typeof elem != 'undefined'){ if (typeof $(elem).attr('rel') != 'undefined'){ if (typeof $(elem).attr('href') != 'undefined'){ var itemSrc = $(elem).attr('href'); if (typeof itemSrc != 'undefined' && itemSrc != ''){ if (pretty_getFileType(itemSrc) != 'link'){ //add a class $(elem).addClass('pretty'); $(elem).attr({rel:'pretty[gallery]'}); } } } } } }); //pettyPhoto init $("a.pretty").prettyPhoto({ deeplinking: false, overlay_gallery: false }); function pretty_getFileType(itemSrc){ if (itemSrc.match(/youtube\.com\/watch/i)) { return 'youtube'; }else if (itemSrc.match(/vimeo\.com/i)) { return 'vimeo'; }else if(itemSrc.match(/\b.mov\b/i)){ return 'quicktime'; }else if(itemSrc.match(/\b.swf\b/i)){ return 'flash'; }else if(itemSrc.match(/\biframe=true\b/i)){ return 'iframe'; // }else if(itemSrc.match(/\bajax=true\b/i)){ // return 'ajax'; // }else if(itemSrc.match(/\bcustom=true\b/i)){ // return 'custom'; // }else if(itemSrc.substr(0,1) == '#'){ // return 'inline'; }else if(itemSrc.match(/\b.jpeg\b/i)){ return 'image'; }else if(itemSrc.match(/\b.jpg\b/i)){ return 'image'; }else if(itemSrc.match(/\b.png\b/i)){ return 'image'; }else if(itemSrc.match(/\b.gif\b/i)){ return 'image'; }else{ return 'link'; }; }; });