403Webshell
Server IP : 167.179.152.94  /  Your IP : 216.73.216.169
Web Server : Apache/2.4.66 (Debian)
System : Linux 6d8cbb3dc321 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64
User :  ( 1000)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/visual-portfolio/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/visual-portfolio/assets/js/pagination-minimal-paged.js
import $ from 'jquery';

const { ResizeObserver } = window;

function setImgWidth($el) {
	if ($el && $el.height > 1) {
		$el.style.width = `${$el.height}px`;
	}
}

// We need to use resize observer because for some reason in the Preview
// and on some mobile devices image height is 1px.
const resizeObserver = new ResizeObserver((entries) => {
	entries.forEach(({ target }) => {
		if (target) {
			setImgWidth(target);
		}
	});
});

// Init minimal paged pagination.
$(document).on('init.vpf loadedNewItems.vpf', (event, self) => {
	if (
		event.namespace !== 'vpf' ||
		self.options.pagination !== 'paged' ||
		!self.$pagination.children('.vp-pagination__style-minimal').length
	) {
		return;
	}

	// Hack used in Paged active item to make circle using hidden <img>.
	// See styles for <img> tag in /templates/pagination/style.scss
	const $activeItem = self.$pagination.find('.vp-pagination__item-active');
	let $img = $activeItem.find('img');

	if (!$img.length) {
		$img = $(
			'<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="">'
		);

		resizeObserver.observe($img[0]);
		$activeItem.prepend($img);

		setImgWidth($img[0]);
	}
});

Youez - 2016 - github.com/yon3zu
LinuXploit