/usr/share/horde/ansel/js/imagefaces.js is in php-horde-ansel 3.0.5+debian0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | function showFace(id)
{
$('facediv' + id).addClassName('shown');
$('facethumb' + id).style.border = '1px solid red';
$('facedivname' + id).style.display = 'inline';
}
function hideFace(id)
{
$('facediv' + id).removeClassName('shown');
$('facethumb' + id).style.border = '1px solid black';
$('facedivname' + id).style.display = 'none';
}
document.observe('dom:loaded', function() {
Event.observe($('ansel-photodiv'), 'load', function() {
if ($('faces-on-image')) {
$('faces-on-image').immediateDescendants().collect(function(element) {
element.clonePosition($('ansel-photodiv'), {setWidth: false, setHeight: false});
});
}
});
});
|