@ -3,7 +3,7 @@ action/centre_image_forcer.php -text
/centre_image_fonctions.php -text
/centre_image_gestion.js -text
/centre_image_json.html -text
imgs/croix.png -text
imgs/croix-centre-image.png -text
inc/FaceDetector.php -text
inc/centre_image_lib.php -text
inc/detection.dat -text
@ -231,7 +231,7 @@ function centre_image_visage($fichier) {
**/
function centre_image_header_prive($flux) {
$flux .= "\n<script type='text/javascript' src='".find_in_path("centre_image_gestion.js")."'></script>\n";
$flux .= "\n<script>var croix = '".find_in_path("imgs/croix.png")."'</script>";
$flux .= "\n<script>var croix = '".find_in_path("imgs/croix-centre-image.png")."'</script>";
return $flux;
}
@ -1,9 +1,10 @@
function centre_image_croix(el, x, y) {
if (el.find("img.croix_centre_image").length == 0) {
alert("Hop");
el.css("display", "inline-block").css("position", "relative")
.find("img").addClass("img_source").css("border", "1px solid green")
.parent()
.prepend("<img src='"+croix+"' class='croix_centre_image' style='cursor: move; position: absolute; margin-left: -7px; margin-top: -7px; margin-right: -7px; margin-bottom: -7px;'>");
.prepend("<img src='"+croix+"' class='croix_centre_image' style='cursor: move; position: absolute; margin-left: -7px; margin-top: -7px; margin-right: -7px; margin-bottom: -7px;background:transparent;'>");
el.find("img.croix_centre_image").css("left", x+"px").css("top", y+"px")
Before
Width: | Height: | Size: 989 B
After
@ -1,7 +1,7 @@
<paquet
prefix="centre_image"
categorie="multimedia"
version="0.7.1"
version="0.8.0"
etat="dev"
compatibilite="[3.0.18;3.1.*]"
logo="prive/themes/spip/images/centre_image-64.png"