Changeset 22367 for extensions/Autosize/js/Affiche_script.js
- Timestamp:
- Apr 26, 2013, 1:51:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r22360 r22367 1 // problème avec GMaps+diaporama:1 // problème avec GMaps+diaporama: 2 2 // corriger gmaps_pip.class.inc.php ajouter ligne 90 if ( !isset($_GET['slideshow'])) 3 3 //============================================================== … … 218 218 219 219 } 220 Zone_image.zoom = (Zone_image.image.height / Zone_image.image_init.height);220 Zone_image.zoom = Zone_image.image.height / Zone_image.image_init.height; 221 221 zoom_cl = parseInt(100 * Zone_image.zoom) + "%"; ; 222 222 if (!Valid) { … … 448 448 break; 449 449 } 450 } 451 452 453 if (jQuery("#derivativeCheckedSelMaxi").length == 0) { 454 m1 = '<span style="visibility: hidden;" id="derivativeCheckedSelMaxi" class="switchCheck">✔ </span>'; 455 m1 += '<a style="visibility: visible;" href=""> SelMaxi<span class="derivativeSizeDetails"> (800 x 600)</span> </a><br>'; 456 m1 += '<span style="visibility: hidden;" id="derivativeCheckedAutosize" class="switchCheck">✔ </span>'; 457 m1 += '<a style="visibility: visible;" href=""> Autosize<span class="derivativeSizeDetails"> (800 x 600)</span> </a><br>'; 458 jQuery("#derivativeSwitchBox").append(m1); 459 450 460 } 451 461 options.liste_type = new_liste; … … 1040 1050 return; 1041 1051 } 1042 // jQuery(theImg).width(Zone_image.image_init.width);1043 for (n in options.liste_type) {1044 if (options.liste_type[n][0] == options.pictureSelType) {1045 Zone_image.image_init.height = options.liste_type[n][3];1046 Zone_image.image_init.width = options.liste_type[n][2];1047 break;1048 }1049 }1050 1051 1052 1052 jQuery(theImg).height(Zone_image.image_init.height); 1053 1053 set_cl("no"); … … 1115 1115 if (img_objs.length > 0) { 1116 1116 jQuery(img_objs).each(function (e) { 1117 // init_h1 = jQuery(this).height();1118 // init_w1 = jQuery(this).width();1119 }); 1117 // init_h1 = jQuery(this).height(); 1118 // init_w1 = jQuery(this).width(); 1119 }); 1120 1120 } 1121 1121 dp1 = jQuery("#charlie").offset(); … … 1134 1134 w01 = Math.ceil(h01 * Zone_image.image.rapport); 1135 1135 } 1136 jQuery("#theMainImage").height(png_h 1136 jQuery("#theMainImage").height(png_h); 1137 1137 jQuery("#theMainImage").width(w01 + wpng); 1138 1138 jQuery("#theMainImage").css({ verticalAlign: "middle", … … 1153 1153 1154 1154 1155 // jQuery("#charlie object").attr("width", w01);1155 // jQuery("#charlie object").attr("width", w01); 1156 1156 jQuery("#charlie object").attr("height", h01); 1157 // jQuery("#charlie embed").attr("width", w01); // firefox opera1157 // jQuery("#charlie embed").attr("width", w01); // firefox opera 1158 1158 jQuery("#charlie embed").attr("height", h01); 1159 1159 jQuery("#charlie embed").css("margin", "auto"); … … 1434 1434 options.pictureDeriv = last_id; 1435 1435 1436 return { url: pt[n][1], pictureDeriv: last_id, pictureMap: last_id, width: p t[n][2], height: pt[n][3]};1436 return { url: pt[n][1], pictureDeriv: last_id, pictureMap: last_id, width: parseInt(pt[n][2]), height: parseInt(pt[n][3]) }; 1437 1437 } 1438 1438 return { imgSrc: "", pictureDeriv: "", width: "", height: "" }; … … 1445 1445 Select_Image = function () { 1446 1446 memoire = options.imgSrc; 1447 if (options.imgSrc.match(RegExp(" gif", "gi")))1447 if (options.imgSrc.match(RegExp(".gif", "gi"))) 1448 1448 return; 1449 1449 var pt = options.liste_type; … … 1476 1476 return; 1477 1477 } 1478 Zone_image.zoom = Math.ceil(Zone_image.image.height / Zone_image.image_init.height);1478 Zone_image.zoom = Zone_image.image.height / Zone_image.image_init.height; 1479 1479 if (!theImg.src) 1480 1480 return true; … … 1942 1942 } 1943 1943 1944 marges_llgbo = options.marges_llgbo; 1944 marges_llgbo = options.marges_llgbo; // 48 ! 1945 1945 } 1946 1946 … … 2211 2211 // ========================================================== 2212 2212 2213 }); // ready2213 }); // ready 2214 2214 jQuery("#derivativeSwitchBox a").click(function (e) { 2215 2215 k1 = 0;
Note: See TracChangeset
for help on using the changeset viewer.