Changeset 10845 for extensions/Autosize/js/Affiche_script.js
- Timestamp:
- May 11, 2011, 12:13:49 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r10787 r10845 61 61 function (i) { 62 62 jQuery(Parent).css({ opacity: "1" }); 63 if (DEBUG == "true") {63 if (DEBUG_autosize == "true") { 64 64 bp1 = jQuery('.debug').get(nu_img); 65 65 if (!bp1) nu_img = 0; … … 286 286 rapport = -1; 287 287 marges_llgbo = 0; 288 pos = 0; 288 289 289 //============================================================= 290 290 Type_Img = ""; … … 365 365 // 366 366 //if (options.imageAutosize) return true ;stripped 367 if (DEBUG == "true") {367 if (DEBUG_autosize == "true") { 368 368 nu_img += 1; 369 369 … … 533 533 case "img_autre": 534 534 if (!TheImg) { 535 if (DEBUG == "true") alert("TheImg=null");535 if (DEBUG_autosize == "true") alert("TheImg=null"); 536 536 return true; 537 537 … … 1036 1036 if (typeof (currentTab) == "undefined") inittoolbar(); 1037 1037 else initializeImageMode("resize"); 1038 } else { 1039 tp = gallyPP.getImageProp(); 1040 if (typeof (GallyPP) == "function") 1041 gallyPP = new GallyPP(); 1042 1043 iph= jQuery("#imageHeaderBar").infos(); 1044 jQuery("#imageToolBar").css({ top: iph.bottom + "px", position: "absolute" }); 1045 1038 1046 } 1039 1047 //=========================================================================== 1040 1048 1041 1049 if (jQuery("#navThumbPrev").length > 0) { 1042 jQuery("#navThumbPrev").css({ height: info_img.height+ "px",1043 1044 1050 jQuery("#navThumbPrev").css({ left: 20 + "px", 1051 overflow: "hidden" 1052 }); 1045 1053 1046 1054 } 1047 1055 if (jQuery("#navThumbNext").length > 0) { 1048 jQuery("#navThumbNext").css({ height: info_img.height + "px", 1049 overflow: "hidden" 1050 }); 1051 1052 } 1053 //jQuery("#gbo").width(); 1054 jQuery(Cadre).width(img_finale.width + marges_llgbo); 1056 jQuery("#navThumbNext").css({ right: 20 + "px", 1057 overflow: "hidden" 1058 }); 1059 1060 } 1061 */ 1062 1063 //============================================================================= 1064 1055 1065 1056 1066 if (!theme.match(RegExp("lapis", "gi"))) { … … 1077 1087 1078 1088 } 1079 // --- rglage de la hauteur de page en fonction du copyright----------- 1080 if (typeof (pos) == "undefined") pos = jQuery("#copyright").infos(); 1081 if (pos != jQuery("#copyright").infos()) 1082 pos = jQuery("#copyright").infos(); 1089 // --- réglage de la hauteur de page en fonction du copyright----------- 1090 if (typeof (pos_copyright) == "undefined") pos_copyright = jQuery("#copyright").infos(); 1091 1083 1092 if (theme.match(RegExp("stripped", "gi"))) { 1084 1093 var TitleBox = jQuery("#imageTitleContainer"); 1085 1094 if (TitleBox.length != 0) TitleBox.css("width", img_finale.width + "px"); 1086 1095 } else { 1087 if (pos.top > 100) 1088 jQuery("#the_page").height(pos.top); 1089 1090 } 1096 if (pos_copyright.top > 100) { 1097 jQuery("#the_page").height(pos_copyright.top); 1098 } 1099 } 1100 1091 1101 1092 1102 if (!theme.match(RegExp("luciano", "gi"))) { 1093 1094 1095 1103 jQuery("#linkNext").css({ height: "80px", width: "200px", overflow: "hidden" }); 1104 jQuery("#linkPrev").css({ height: "80px", width: "200px", overflow: "hidden" }); 1105 jQuery(".navThumb img").css({ height: "80px", width: "", overflow: "hidden" }); 1096 1106 } 1097 1107 info_frame = jQuery(Cadre).infos(); … … 1104 1114 1105 1115 } else { 1106 pos = "absolute"; 1116 1107 1117 t1 = info_frame.top; 1108 1118 l1 = info_frame.left; 1109 info_theImageBox = jQuery(Parent).infos(); 1119 info_theImageBox = jQuery(Parent).infos(); //theImage 1110 1120 } 1111 1121 … … 1113 1123 info_theImageBox.top = t1; 1114 1124 info_theImageBox.left = l1; 1115 info_theImageBox.pos= "absolute";1125 // info_theImageBox.position = "absolute"; 1116 1126 Window_Affichage = info_theImageBox; 1117 if (DEBUG == "true") {1127 if (DEBUG_autosize == "true") { 1118 1128 // jQuery(Cadre).css("border", "solid green"); 1119 1129 1120 jQuery("#Debug5").css({ background: " transparent",1121 position: pos,1130 jQuery("#Debug5").css({ background: "red", 1131 position: "absolute", 1122 1132 border: "green solid 2px", 1123 1133 textAlign: align_auto, 1124 margin: Window_Affichage.margin.margin,1134 margin: "auto", 1125 1135 top: Window_Affichage.top + "px", 1126 1136 left: Window_Affichage.left + "px", … … 1328 1338 marginRight: "4px", 1329 1339 marginTop: "0px", 1330 marginBottom: "0px", position: "relative" 1340 marginBottom: "0px", 1341 position: "relative" 1331 1342 }); 1332 1343 … … 1486 1497 //==================================================== 1487 1498 function Debug_pos() { 1488 if (DEBUG == "true") {1499 if (DEBUG_autosize == "true") { 1489 1500 1490 1501 jQuery("[id ^='Debug']").show(); … … 1520 1531 1521 1532 jQuery(function () { 1533 //'gallyInterfaceReady' 1534 jQuery(Document).live('gallyInterfaceReady',function () { 1535 alert("Clic sur a#test1."); 1536 }); 1522 1537 jQuery('#pamoorama').live('ON', function (e) { 1523 1538 jQuery(jQuery('.debug').get(1)).trigger('ON'); … … 1566 1581 1567 1582 // Add 10 testing debugs to start with 1568 jQuery(window).load(function () {1569 DEBUG = (typeof DEBUG != "undefined") ? DEBUG: "false";1570 if (DEBUG == "true") {1583 jQuery(window).load(function () { 1584 DEBUG_autosize = (typeof DEBUG_autosize != "undefined") ? DEBUG_autosize : "false"; 1585 if (DEBUG_autosize == "true") { 1571 1586 for (var i = 0; i < 10; i++) { 1572 1587 jQuery('#adddebugs').click();
Note: See TracChangeset
for help on using the changeset viewer.