HEX
Server: nginx/1.18.0
System: Linux iZj6c1ieg2jrpk1z5tzi19Z 6.3.9-1.el7.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 21 22:18:40 EDT 2023 x86_64
User: www (1001)
PHP: 8.2.4
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.cytocare.cn/wp-content/plugins/gwolle-gb/frontend/js/sss/sss.js
/** Super Simple Slider by @intllgnt **/

;(function($, window, document, undefined ) {

$.fn.sss = function(options) {

// Options

	var settings = $.extend({
		slideShow : true,
		startOn : 0,
		speed : 3500,
		transition : 400,
		arrows : true
	}, options);

	return this.each(function() {

// Variables

	var
	wrapper = $(this),
	slides = wrapper.children().wrapAll('<div class="sss"/>').addClass('ssslide'),
	slider = wrapper.find('.sss'),
	slide_count = slides.length,
	transition = settings.transition,
	starting_slide = settings.startOn,
	target = starting_slide > slide_count - 1 ? 0 : starting_slide,
	animating = false,
	clicked,
	timer,
	key,
	prev,
	next,

// Reset Slideshow

	reset_timer = settings.slideShow ? function() {
		clearTimeout(timer);
		timer = setTimeout(next_slide, settings.speed);
	} : $.noop;

// Animate Slider

	function get_height(target) {
		return ((slides.eq(target).height() / slider.width()) * 100) + '%';
	}

	function animate_slide(target) {
		if ( $( wrapper ).hasClass( 'sss-hover' ) ) { reset_timer(); return; }
		if (!animating) {
			animating = true;
			var target_slide = slides.eq(target);

			target_slide.fadeIn(transition);
			slides.not(target_slide).fadeOut(transition);

			slider.animate({paddingBottom: get_height(target)}, transition,  function() {
				animating = false;
			});

			reset_timer();
		}
	};

// Next Slide

	function next_slide() {
		target = target === slide_count - 1 ? 0 : target + 1;
		animate_slide(target);
	}

// Prev Slide

	function prev_slide() {
		target = target === 0 ? slide_count - 1 : target - 1;
		animate_slide(target);
	}

	if (settings.arrows) {
		slider.append('<div class="sssprev"/>', '<div class="sssnext"/>');
	}

	next = slider.find('.sssnext'),
	prev = slider.find('.sssprev');

	$(window).on('load', function() {

		slider.css({paddingBottom: get_height(target)}).on('click',function(e) {
		clicked = $(e.target);
		if (clicked.is(next)) {
			next_slide()
		} else if (clicked.is(prev)) {
			prev_slide()
		}
	});

	animate_slide(target);

	$(document).on('keydown', function(e) {
		key = e.keyCode;
		if (key === 39) {
			next_slide()
		} else if (key === 37) {
			prev_slide()
		}
	});

	$( wrapper ).on('mouseenter', function() {
		$( wrapper ).addClass( 'sss-hover' );
	});

	$( wrapper ).on('mouseleave', function() {
		$( wrapper ).removeClass( 'sss-hover' );
	});

	});
// End

});

};
})(jQuery, window, document);


//jQuery(document).ready(function($) {
	jQuery('.gwolle-gb-widget-slider').sss({
		slideShow  : true,  // Set to false to prevent SSS from automatically animating.
		startOn    : 0,     // Slide to display first. Uses array notation (0 = first slide).
		transition : 600,   // Length (in milliseconds) of the fade transition.
		speed      : 5000,  // Slideshow speed in milliseconds.
		showNav    : false  // Set to false to hide navigation arrows.
	});
//});