MyOAExx/Scripts/js/zoombox/zoombox.js
(开头部分) 18KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var scr=document.getElementsByTagName('script');
var zoombox_path = scr[scr.length-1].getAttribute("src").replace('zoombox.js','');
(function($){
var options = {
theme : 'zoombox', //available themes : zoombox,lightbox, prettyphoto, darkprettyphoto, simple
opacity : 0.8, // Black overlay opacity
duration : 800, // Animation duration
animation : true, // Do we have to animate the box ?
width : 600, // Default width
height : 400, // Default height
gallery : true, // Allow gallery thumb view
autoplay : false, // Autoplay for video
overflow : false // Allow images bigger than screen ?
}
var images = new Array(); // Gallery Array [gallery name][link]
var elem; // HTML element currently used to display box
var isOpen = false; // Zoombox already opened ?
var link; // Shortcut for the link
var width;
var height;
var timer; // Timing for img loading
var i = 0; // iteration variable
var content; // The content of the box
var type = 'multimedia'; // Content type
var position = false;
var imageset = false;
var state = 'closed';
/**
* You can edit the html code generated by zoombox for specific reasons.
* */
var html = '<div id="zoombox"> \
<div class="mask"></div>\
<div class="container">\
<div class="content"></div>\
<div class="title"></div>\
<div class="next"></div>\
<div class="prev"></div>\
<div class="close"></div>\
<div class="gallery"></div>\
</div>\
</div>';
// Regular expressions needed for the content
var filtreImg= /(\.jpg)|(\.jpeg)|(\.bmp)|(\.gif)|(\.png)/i;
var filtreMP3= /(\.mp3)/i;
var filtreFLV= /(\.flv)/i;
var filtreSWF= /(\.swf)/i;
var filtreQuicktime= /(\.mov)|(\.mp4)/i;
var filtreWMV= /(\.wmv)|(\.avi)/i;
var filtreDailymotion= /(http:\/\/www.dailymotion)|(http:\/\/dailymotion)/i;
var filtreVimeo= /(http:\/\/www.vimeo)|(http:\/\/vimeo)/i;
var filtreYoutube= /(youtube\.)/i;
var filtreKoreus= /(http:\/\/www\.koreus)|(http:\/\/koreus)/i;
$.zoombox = function(el,options) {
}
后面还有 496 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。