AnonSec Shell
Server IP : 149.202.105.228  /  Your IP : 216.73.216.134
Web Server : Apache
System : Linux webm129.cluster030.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : atfycaf ( 116275)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/a/t/f/atfycaf/www/admin/js/jsF/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/a/t/f/atfycaf/www/admin/js/jsF/pagesBGEdit-2.js
$(document).ready(function(){
	function preview(img, selection) {
		var imgWidth = $("#areaSelectPhoto").width();
		var imgHeight = $("#areaSelectPhoto").height();

		if (!selection.width || !selection.height)
		return;
		var scaleX = 960 / selection.width;
		var scaleY = 180 / selection.height;
		
		$('#areaSelectTPreview img').css({
			width: Math.round(scaleX * imgWidth),
			height: Math.round(scaleY * imgHeight),
			marginLeft: -Math.round(scaleX * selection.x1),
			marginTop: -Math.round(scaleY * selection.y1)
		});
		
		$('#x1').val(selection.x1);
		$('#y1').val(selection.y1);
		$('#x2').val(selection.x2);
		$('#y2').val(selection.y2);
	}
	$("#areaSelectPhoto").imgAreaSelect({
		aspectRatio: '16 : 3',
		handles: true,
		fadeSpeed: 200,
		minHeight: 360,
		maxHeight: 720,
		minWidth: 1920,
		maxWidth: 3840,
		show: true,
		x1: $('#x1').val(),
		y1: $('#y1').val(),
		x2: $('#x2').val(),
		y2: $('#y2').val(),
		onInit: preview,
		onSelectChange: preview
	});
});

Anon7 - 2022
AnonSec Team