HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/s/l/y/slyfwmm/dallavitae/OLD_WP/wp-content/themes/skrollex/assets/js/animation/players.js
"use strict"; var $ = jQuery;
var players=[];
players.addPlayer = function($view, startFunc, pauseFunc, resumeFunc){
	players.push(
		new (function(){
			var played = false;
			var started = false;
			this.$view = $view;
			$view.addClass('player').data('player-ind', players.length);
			this.play = function(){
				if(!played){
					played = true;
					if(!started){
						started = true;
						startFunc();
					}else{
						resumeFunc();
					}
				}
			};
			this.pause = function(){
				if(played){
					played = false;
					pauseFunc();
				}
			};
		})()
	);
};
module.exports = players;