WebContent/res/js/unslider.js
(开头部分) 19KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* Unslider
* version 2.0
* by @idiot and friends
*/
(function(factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'));
} else if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define([], factory(window.jQuery));
} else {
factory(window.jQuery);
}
}(function($) {
// Don't throw any errors when jQuery
if(!$) {
return console.warn('Unslider needs jQuery');
}
$.Unslider = function(context, options) {
var self = this;
// Create an Unslider reference we can use everywhere
self._ = 'unslider';
// Store our default options in here
// Everything will be overwritten by the jQuery plugin though
self.defaults = {
// Should the slider move on its own or only when
// you interact with the nav/arrows?
// Only accepts boolean true/false.
autoplay: false,
// 3 second delay between slides moving, pass
// as a number in milliseconds.
delay: 3000,
// Animation speed in millseconds
speed: 750,
// An easing string to use. If you're using Velocity, use a
// Velocity string otherwise you can use jQuery/jQ UI options.
easing: 'swing', // [.42, 0, .58, 1],
// Does it support keyboard arrows?
// Can pass either true or false -
// or an object with the keycodes, like so:
// {
// prev: 37,
// next: 39
// }
// You can call any internal method name
// before the keycode and it'll be called.
keys: {
prev: 37,
next: 39
},
后面还有 611 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。