| Server IP : 46.105.57.169 / Your IP : 216.73.217.35 Web Server : Apache System : Linux webm002.cluster120.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 : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/123click/assets/ |
Upload File : |
js/rotate.js 0000604 00000006071 15075074175 0007027 0 ustar 00 /**
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
let activated = false; // Update image
const rotate = (angle, image) => {
// The canvas where we will rotate the image
let canvas = document.createElement('canvas'); // Pseudo rectangle calculation
if (angle >= 0 && angle < 45 || angle >= 135 && angle < 225 || angle >= 315 && angle <= 360) {
canvas.width = image.naturalWidth;
canvas.height = image.naturalHeight;
} else {
// swap
canvas.width = image.naturalHeight;
canvas.height = image.naturalWidth;
}
const ctx = canvas.getContext('2d');
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.translate(canvas.width / 2, canvas.height / 2);
ctx.rotate(angle * Math.PI / 180);
ctx.drawImage(image, -image.naturalWidth / 2, -image.naturalHeight / 2); // The format
const format = Joomla.MediaManager.Edit.original.extension === 'jpg' ? 'jpeg' : 'jpg'; // The quality
const quality = document.getElementById('jform_rotate_quality').value; // Creating the data from the canvas
Joomla.MediaManager.Edit.current.contents = canvas.toDataURL(`image/${format}`, quality); // Updating the preview element
image.width = canvas.width;
image.height = canvas.height;
image.src = '';
requestAnimationFrame(() => requestAnimationFrame(() => {
image.src = Joomla.MediaManager.Edit.current.contents;
})); // Update the angle input box
document.getElementById('jform_rotate_a').value = angle; // Notify the app that a change has been made
window.dispatchEvent(new Event('mediaManager.history.point'));
canvas = null;
};
const initRotate = image => {
if (!activated) {
// The number input listener
document.getElementById('jform_rotate_a').addEventListener('change', ({
target
}) => {
rotate(parseInt(target.value, 10), image);
target.value = 0; // Deselect all buttons
[].slice.call(document.querySelectorAll('#jform_rotate_distinct label')).forEach(element => {
element.classList.remove('active');
element.classList.remove('focus');
});
}); // The 90 degree rotate buttons listeners
[].slice.call(document.querySelectorAll('#jform_rotate_distinct [type=radio]')).forEach(element => {
element.addEventListener('click', ({
target
}) => {
rotate(parseInt(target.value, 10), image); // Deselect all buttons
[].slice.call(document.querySelectorAll('#jform_rotate_distinct label')).forEach(el => {
el.classList.remove('active');
el.classList.remove('focus');
});
});
});
activated = true;
}
};
window.addEventListener('media-manager-edit-init', () => {
// Register the Events
Joomla.MediaManager.Edit.plugins.rotate = {
Activate(image) {
return new Promise(resolve => {
// Initialize
initRotate(image);
resolve();
});
},
Deactivate()
/* image */
{
return new Promise(resolve => {
resolve();
});
}
};
}, {
once: true
});
js/rotate-es5.min.js 0000604 00000003374 15075074175 0010306 0 ustar 00 !function(){"use strict";var t=!1,e=function(t,e){var a=document.createElement("canvas");t>=0&&t<45||t>=135&&t<225||t>=315&&t<=360?(a.width=e.naturalWidth,a.height=e.naturalHeight):(a.width=e.naturalHeight,a.height=e.naturalWidth);var n=a.getContext("2d");n.clearRect(0,0,a.width,a.height),n.translate(a.width/2,a.height/2),n.rotate(t*Math.PI/180),n.drawImage(e,-e.naturalWidth/2,-e.naturalHeight/2);var i="jpg"===Joomla.MediaManager.Edit.original.extension?"jpeg":"jpg",r=document.getElementById("jform_rotate_quality").value;Joomla.MediaManager.Edit.current.contents=a.toDataURL("image/"+i,r),e.width=a.width,e.height=a.height,e.src="",requestAnimationFrame((function(){return requestAnimationFrame((function(){e.src=Joomla.MediaManager.Edit.current.contents}))})),document.getElementById("jform_rotate_a").value=t,window.dispatchEvent(new Event("mediaManager.history.point")),a=null};window.addEventListener("media-manager-edit-init",(function(){Joomla.MediaManager.Edit.plugins.rotate={Activate:function(a){return new Promise((function(n){!function(a){t||(document.getElementById("jform_rotate_a").addEventListener("change",(function(t){var n=t.target;e(parseInt(n.value,10),a),n.value=0,[].slice.call(document.querySelectorAll("#jform_rotate_distinct label")).forEach((function(t){t.classList.remove("active"),t.classList.remove("focus")}))})),[].slice.call(document.querySelectorAll("#jform_rotate_distinct [type=radio]")).forEach((function(t){t.addEventListener("click",(function(t){var n=t.target;e(parseInt(n.value,10),a),[].slice.call(document.querySelectorAll("#jform_rotate_distinct label")).forEach((function(t){t.classList.remove("active"),t.classList.remove("focus")}))}))})),t=!0)}(a),n()}))},Deactivate:function(){return new Promise((function(t){t()}))}}}),{once:!0})}(); js/rotate-es5.js 0000604 00000006672 15075074175 0007530 0 ustar 00 (function () {
'use strict';
/**
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
var activated = false; // Update image
var rotate = function rotate(angle, image) {
// The canvas where we will rotate the image
var canvas = document.createElement('canvas'); // Pseudo rectangle calculation
if (angle >= 0 && angle < 45 || angle >= 135 && angle < 225 || angle >= 315 && angle <= 360) {
canvas.width = image.naturalWidth;
canvas.height = image.naturalHeight;
} else {
// swap
canvas.width = image.naturalHeight;
canvas.height = image.naturalWidth;
}
var ctx = canvas.getContext('2d');
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.translate(canvas.width / 2, canvas.height / 2);
ctx.rotate(angle * Math.PI / 180);
ctx.drawImage(image, -image.naturalWidth / 2, -image.naturalHeight / 2); // The format
var format = Joomla.MediaManager.Edit.original.extension === 'jpg' ? 'jpeg' : 'jpg'; // The quality
var quality = document.getElementById('jform_rotate_quality').value; // Creating the data from the canvas
Joomla.MediaManager.Edit.current.contents = canvas.toDataURL("image/" + format, quality); // Updating the preview element
image.width = canvas.width;
image.height = canvas.height;
image.src = '';
requestAnimationFrame(function () {
return requestAnimationFrame(function () {
image.src = Joomla.MediaManager.Edit.current.contents;
});
}); // Update the angle input box
document.getElementById('jform_rotate_a').value = angle; // Notify the app that a change has been made
window.dispatchEvent(new Event('mediaManager.history.point'));
canvas = null;
};
var initRotate = function initRotate(image) {
if (!activated) {
// The number input listener
document.getElementById('jform_rotate_a').addEventListener('change', function (_ref) {
var target = _ref.target;
rotate(parseInt(target.value, 10), image);
target.value = 0; // Deselect all buttons
[].slice.call(document.querySelectorAll('#jform_rotate_distinct label')).forEach(function (element) {
element.classList.remove('active');
element.classList.remove('focus');
});
}); // The 90 degree rotate buttons listeners
[].slice.call(document.querySelectorAll('#jform_rotate_distinct [type=radio]')).forEach(function (element) {
element.addEventListener('click', function (_ref2) {
var target = _ref2.target;
rotate(parseInt(target.value, 10), image); // Deselect all buttons
[].slice.call(document.querySelectorAll('#jform_rotate_distinct label')).forEach(function (el) {
el.classList.remove('active');
el.classList.remove('focus');
});
});
});
activated = true;
}
};
window.addEventListener('media-manager-edit-init', function () {
// Register the Events
Joomla.MediaManager.Edit.plugins.rotate = {
Activate: function Activate(image) {
return new Promise(function (resolve) {
// Initialize
initRotate(image);
resolve();
});
},
Deactivate: function Deactivate()
/* image */
{
return new Promise(function (resolve) {
resolve();
});
}
};
}, {
once: true
});
}());
js/rotate-es5.min.js.gz 0000604 00000001313 15075074175 0010714 0 ustar 00 � �Umo1�+]����� ���1�Ih�!d�6#�t9_K���ܵ]�6��R?ı���c�wV���wI�U�����H�Z��z�6�$��� ���*Б���b����B)�=����٣��%�{�����7�~�6�������4֨P�~��5F3����N�g4�Rj����iP#�W��`���i:�Y�p�%]ٕk�-R*�� ����n���w�1"x�nzp4V�:���x��0�e�*'�h�B��j�F���Hh��y_XP'�8�@A
sC�32��NЕ<���#qP��p9 ny=���<�g>_�_/*���"US�n-�U!���9*YK����q"L�#R���l���P6��M2-�&^TXҡc��ao�$;;�r�?6�w�JS�ɻ�}4əq���ܔ�l<�Ƶw8k5'Q���|���7���*kW�5
�y�v�q�0���E��f���r��[��؊ע\�^rƔO�d�J9��0宐.]���r��]��dcp#ܥO�'�iR�!�L �x�lt�=~>_P#{W~��Jk2TX{Ɉ�"�?�����!{Ľ+�xLd�p��7�<��!d��
!�ei����b" j�"�79Ϙ ��[��>�|�:@n���p�A]���o��%���O7]%q
��N�F�����Ȥ�^�R��.Ã��q�Or�0� js/rotate.min.js 0000604 00000003237 15075074175 0007612 0 ustar 00 let activated=!1;const rotate=(t,e)=>{let a=document.createElement("canvas");t>=0&&t<45||t>=135&&t<225||t>=315&&t<=360?(a.width=e.naturalWidth,a.height=e.naturalHeight):(a.width=e.naturalHeight,a.height=e.naturalWidth);const i=a.getContext("2d");i.clearRect(0,0,a.width,a.height),i.translate(a.width/2,a.height/2),i.rotate(t*Math.PI/180),i.drawImage(e,-e.naturalWidth/2,-e.naturalHeight/2);const n="jpg"===Joomla.MediaManager.Edit.original.extension?"jpeg":"jpg",r=document.getElementById("jform_rotate_quality").value;Joomla.MediaManager.Edit.current.contents=a.toDataURL(`image/${n}`,r),e.width=a.width,e.height=a.height,e.src="",requestAnimationFrame((()=>requestAnimationFrame((()=>{e.src=Joomla.MediaManager.Edit.current.contents})))),document.getElementById("jform_rotate_a").value=t,window.dispatchEvent(new Event("mediaManager.history.point")),a=null},initRotate=t=>{activated||(document.getElementById("jform_rotate_a").addEventListener("change",(({target:e})=>{rotate(parseInt(e.value,10),t),e.value=0,[].slice.call(document.querySelectorAll("#jform_rotate_distinct label")).forEach((t=>{t.classList.remove("active"),t.classList.remove("focus")}))})),[].slice.call(document.querySelectorAll("#jform_rotate_distinct [type=radio]")).forEach((e=>{e.addEventListener("click",(({target:e})=>{rotate(parseInt(e.value,10),t),[].slice.call(document.querySelectorAll("#jform_rotate_distinct label")).forEach((t=>{t.classList.remove("active"),t.classList.remove("focus")}))}))})),activated=!0)};window.addEventListener("media-manager-edit-init",(()=>{Joomla.MediaManager.Edit.plugins.rotate={Activate:t=>new Promise((e=>{initRotate(t),e()})),Deactivate:()=>new Promise((t=>{t()}))}}),{once:!0}); js/rotate.min.js.gz 0000604 00000001315 15075074175 0010224 0 ustar 00 � �TQO�0�+�MșRӖ1M�b�Ә@BL��[r�f�]�k���@LL{YՇ��w�}��� �AJz
��Z��SgZ�@ J0V;n�̥�-��#{�%���(�ӎjolл��77����V�[�[��T[oڻ�Lg4R(-�ă����pDw�*;�=��=��T�↉V �H�%��`��25�S�4�osʼn���y.+ovo���p�IЫ#��<>��m����� �!
LZ��8G�7���jUt5FJ�����f��r*/�&�jF2��vv�cp�����5�I7z??�Dtu�|~^c>����4�b93���Ӊ�U˃~�
V��>|=9:��|���E���-��ek���I�S1P��`A{�S��!G!O�\�:��h˘��$���������Lc�t4��9�8[����~�.��;m)�z��Ę2�V�I�H��o���F<dYU�E��6;�(bA�9AˠM3�c�0J��$J
ͩٵ��3Y��L��;(���A�K�{�+hX
�6�5��0Q���#!=V�@Q��c�(��2F\��%�W�{�uJ�1*�vg+ذ�Gd�j?�Z�Q� ߽7���f���&��ף�b�ZaL�����56~x���S���^���8�.��r�
��'*������V�*
�ke'gS쭷˸��٩X�