Changeset 10787 for extensions/Autosize/js/Affiche_script.js
- Timestamp:
- May 6, 2011, 12:16:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r10561 r10787 1 2 3 1 Parent = "#theImage"; 4 5 2 function Toggle_bp() { 6 3 cl_visible = !cl_visible; … … 296 293 297 294 Zone_Affichage = { height: 0, width: 0 }; 298 //============================================================ 295 //============================================================ 299 296 jQuery("#the_page").css({ top: "0px" }); 300 297 Info_the_page = jQuery("#the_page").infos(); … … 304 301 305 302 Zone_Affichage = jQuery(Parent).infos(); 306 // 303 // 307 304 var old_window = { width: 0, height: 0 }; 308 305 Bandeau_bas = Info_Description_f(Parent); … … 316 313 jQuery().newResize(); 317 314 318 //=================================================================== 315 //=================================================================== 319 316 /* 320 317 * window .resize … … 366 363 //==================================================== 367 364 newResize: function () { 368 // 365 // 369 366 //if (options.imageAutosize) return true ;stripped 370 367 if (DEBUG == "true") { … … 440 437 } else if (info_ToolBar.width > 0) { 441 438 marge = (info_the_page.width - info_ToolBar.width) / 2; 442 439 443 440 marge_right = marge + info_the_page.left; 444 441 marge_left = marge; … … 635 632 img_reelle.height = parseInt(img_reelle.height); 636 633 if (img_reelle.height < parseInt(mini_height)) return true; 637 //================================================================================== 634 //================================================================================== 638 635 if (rapport < 0) { 639 636 … … 764 761 Image_width -= (Bandeau_t.borderwidth.left + Bandeau_t.borderwidth.left); 765 762 if (Image_width > widthmin) { 766 // Image_width largeur à atteindre 767 // Calcul du rapport d'agrandissement 763 // Image_width largeur à atteindre 764 // Calcul du rapport d'agrandissement 768 765 var echelle_w = parseFloat((widthmin) / img_reelle.width, 3); 769 766 if (echelle_w > echelle_max) { echelle_w = echelle_max; } … … 884 881 if (jQuery("#slideshow").infos().width > 0) { 885 882 886 883 887 884 } else { 888 885 889 886 } 890 887 //=== cadre = theImage … … 901 898 } 902 899 } 903 //============= flv,mov,mpg ok 900 //============= flv,mov,mpg ok 904 901 /* wmv nok 905 902 * avi nok … … 990 987 jQuery("#pamoorama_outter").css({ width: new_width + "px" }); 991 988 jQuery("#pamoorama_footer").css({ width: new_width + "px" }); 992 // 989 // 993 990 //==================================================== 994 991 info_pamoorama = jQuery("#pamoorama").infos(); … … 1278 1275 } 1279 1276 // jQuery(Parent + " p:not(:contains(' ')) ").remove(); 1280 // jQuery(Parent + " p:(:contains('')) ").remove(); 1277 // jQuery(Parent + " p:(:contains('')) ").remove(); 1281 1278 llgboframe = jQuery("#gbo").infos(); 1282 1279 marges_llgbo = 0; 1283 1280 1284 1281 if (llgboframe.height > 0) { 1285 ll2 = jQuery("#gbo div:last").infos(); 1282 ll2 = jQuery("#gbo div:last").infos(); 1286 1283 ll1 = jQuery("#gbo div:first").infos(); 1287 1284 ll2 ="" ; 1288 1285 jQuery("#gbo div").each(function (i) { 1289 1286 1290 1287 if ( this.id=="") return ; 1291 1288 ll2=this ; 1292 1289 }); 1293 ll2 = jQuery(ll2).infos(); 1290 ll2 = jQuery(ll2).infos(); 1294 1291 ll1 = ll1.width; 1295 1292 ll2 = ll2.width - ll2.borderwidth.left - ll2.borderwidth.right; … … 1303 1300 info_theImgContainer = jQuery("#" + "theImgContainer").infos(); 1304 1301 info_description = jQuery("#" + "description").infos(); 1305 //============================================================================= 1302 //============================================================================= 1306 1303 // jQuery(Parent + " p").css({ padding: "0px", margin: "0px " }); 1307 1304 if (theme.match(RegExp("simple", "gi"))) { … … 1418 1415 info_description.borderwidth.top + 1419 1416 info_description.borderwidth.bottom + 1420 options.imageAutosizeMargin*2 + 1417 options.imageAutosizeMargin*2 + 1421 1418 (marges_llgbo / 2)+4; 1422 1419 1423 1420 } else { 1424 1425 1421 1422 1426 1423 info_description.top = info_theImageBox.bottom + 1427 1424 jQuery("#content").infos().top + … … 1433 1430 if (msie == true) info_description.bottom -= 4; 1434 1431 }; 1435 check_desc_v = true; 1432 check_desc_v = true; 1436 1433 1437 1434 } else { … … 1440 1437 // info_description.bottom -= info_img.top; 1441 1438 } 1442 // 1439 // 1443 1440 1444 1441 info_description.height = info_description.bottom - info_description.top; … … 1493 1490 jQuery("[id ^='Debug']").show(); 1494 1491 /* 1495 Debug2 background-color:yellow 1496 Debug3 background-color:blue 1497 Debug4 background-color:green 1498 Debug5 background-color:red 1492 Debug2 background-color:yellow 1493 Debug3 background-color:blue 1494 Debug4 background-color:green 1495 Debug5 background-color:red 1499 1496 1500 1497 */ … … 1536 1533 }); 1537 1534 1538 // Custom Event, ON to turn on a debug. 1535 // Custom Event, ON to turn on a debug. 1539 1536 jQuery('.debug').live('ON', function (e) { 1540 1537 … … 1561 1558 }); 1562 1559 1563 // Add another debug to the DOM 1560 // Add another debug to the DOM 1564 1561 jQuery('#adddebugs').click(function () { 1565 1562 jQuery('<div></div>') … … 1579 1576 } 1580 1577 }); //on load 1581 }); 1578 });
Note: See TracChangeset
for help on using the changeset viewer.