Changeset 7644 for extensions
- Timestamp:
- Nov 5, 2010, 2:35:56 PM (14 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r7642 r7644 33 33 jQuery(document).ready( 34 34 function (jQuery) { 35 jQuery("#theImage").css({ opacity: "0.0", filter: 'alpha(opacity:0)' }); 36 jQuery(window).load(function (event) { 37 jQuery("#theImage").css({ opacity: "0.0", filter: 'alpha(opacity:0)' }); 38 setTimeout('wait_Timer()', 20); 39 40 function handler(event) { 41 42 43 jQuery("#theImage").css({ opacity: event.data.opacity, filter: 'alpha(opacity:' + event.data.opacity * 100 + ')' }); 44 } 45 jQuery(window).bind("resize", { opacity: "1" }, handler) 46 47 48 }); 35 49 36 50 37 … … 79 66 var Zone_Affichage = { height: 0, width: 0 }; 80 67 81 //============================================================ 82 83 var Info_the_page = jQuery("#the_page").info(); 84 var Zone_Affichage = jQuery("#theImage").info(); 85 86 var Bandeau = 0; 87 var Bandeau_t = Info_entete("theImage") 88 Bandeau = Bandeau_t.img_top; 89 var Bandeau_bas = 0; 90 Bandeau_bas = Info_description("theImage"); 68 91 69 //=================================================================== 92 70 … … 185 163 var myPamoorama = this.myPamoorama; 186 164 //===================================================== 187 188 189 190 //=====================================================191 165 if (typeof (myPamoorama) == "undefined") { 192 166 return 193 167 } 194 if (myPamoorama.skipInit == false)195 return196 168 197 169 var h01 = typeof (myPamoorama.imageHeight); … … 204 176 205 177 //============================================= 206 178 if (myPamoorama.skipInit == false) 179 return 207 180 208 181 … … 1034 1007 } 1035 1008 1009 jQuery("#theImage").css({ opacity: "0.0", filter: 'alpha(opacity:0)' }); 1010 1011 var Bandeau = 0; 1012 var Info_the_page = jQuery("#the_page").info(); 1013 var Zone_Affichage = jQuery("#theImage").info(); 1014 var Bandeau_t = Info_entete("theImage"); 1015 var Bandeau_bas = 0; 1016 1017 //==================================================================================== 1018 jQuery(window).load(function () { 1019 1020 1021 1022 Info_the_page = jQuery("#the_page").info(); 1023 Zone_Affichage = jQuery("#theImage").info(); 1024 Bandeau_t = Info_entete("theImage") 1025 Bandeau = Bandeau_t.img_top; 1026 Bandeau_bas = Info_description("theImage"); 1027 setTimeout('wait_Timer()', 10); 1028 }); 1029 //==================================================================================== 1036 1030 1037 1031 } // function 1038 1032 ); 1039 1033 1040 1041 1042 /*1043 *1044 */1045 jQuery("#pamoorama").bind(jQuery.browser.msie ? "propertychange" : "change", function (event) {1046 1047 onPropertyChange(event);1048 })1049 jQuery("#pamoorama_frame").bind(jQuery.browser.msie ? "propertychange" : "change", function (event) {1050 onPropertyChange(event);1051 })1052 1053 jQuery(window).load(function () {1054 // jQuery(window).resize();1055 // setTimeout("wait_Timer()", 500);1056 1057 jQuery("#pamoorama").resize(function () {1058 1059 jQuery("#pamoorama").bind('resize', function () {1060 jQuery("#pamoorama_outter").bind(1061 jQuery.browser.msie ? "propertychange" : "change", function (event) {1062 event.stopPropagation();1063 onPropertyChange(event);1064 });1065 });1066 });1067 1068 });1069 1034 //============================================================= 1070 1035 function cl_Timer() { … … 1094 1059 }) 1095 1060 1096 1097 1098 1099 1100 //=====================================================================1101 jQuery("#pamoorama").bind("resize", function (event) {1102 onPropertyChange(event);1103 })1104 1105 jQuery("#pamoorama").bind(1106 jQuery.browser.msie ? "propertychange" : "change", function (event) {1107 onPropertyChange(event);1108 });1109 1110 1111 jQuery("#pamoorama_outter").bind(1112 jQuery.browser.msie ? "propertychange" : "change", function (event) {1113 1114 onPropertyChange(event);1115 });1116 jQuery("#pamoorama_footer").bind(1117 jQuery.browser.msie ? "propertychange" : "change", function (event) {1118 1119 onPropertyChange(event);1120 });1121 jQuery("#pamoorama_frame").bind(1122 jQuery.browser.msie ? "propertychange" : "change", function (event) {1123 1124 onPropertyChange(event);1125 });1126 1061 1127 1062 //============================================================= … … 1165 1100 } 1166 1101 1167 1168 if (ID == "pamoorama_outter" & Property == "left" && Valeur == -2) {1169 jQuery("#theImage").css({ filter: 'alpha(opacity:100)', opacity: 1 });1170 jQuery("#theImage").css({ filter: 'alpha(opacity:100)', opacity: 1 });1171 }1172 1102 if (Valeur == "block") { 1173 1103 … … 1213 1143 1214 1144 function wait_Timer() { 1215 old_w = 0 1216 1217 if (DEBUG == "true") { 1218 info_pamoorama_outter = jQuery("#pamoorama_outter").info(); 1219 jQuery("#Debug1").css({ 1220 filter: 'alpha(opacity:50)', 1221 position: "absolute", 1222 border: "solid 1px green", 1223 top: 400 + "px", 1224 width: 400 + "px", 1225 height: "auto" 1226 }); 1227 jQuery("#Debug1").text("Debug1:info : " + info_pamoorama_outter.width + 1228 " : " + info_pamoorama_outter.height 1229 ); 1230 } 1231 if (jQuery("#pamoorama").length > 0) 1145 old_w = 0; 1146 old_h = 0; 1147 1148 1149 if (jQuery("#pamoorama").length > 0) { 1150 var info_pamoorama_outter = jQuery("#pamoorama_outter").info(); 1232 1151 if (info_pamoorama_outter.height == 0) { 1233 1234 // setTimeout('wait_Timer()', 300); 1152 1153 jQuery("#theImage").css({ opacity: '0', filter: 'alpha(opacity:' + '0' + ')' }); 1154 setTimeout('wait_Timer()', 200); 1235 1155 return 1236 1156 } 1157 } 1237 1158 jQuery(window).resize(); 1238 1159 jQuery("#theImage").css({ opacity: '1', filter: 'alpha(opacity:' + '100' + ')' }); 1239 1160 1240 1161 } -
extensions/Autosize/main.inc.php
r7642 r7644 2 2 /* 3 3 Plugin Name: AutoSize 4 Version: 1.3. 34 Version: 1.3.4 5 5 Description: Ajuste l'affichage des photos en fonction de la hauteur de la fenetre de navigation 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=448
Note: See TracChangeset
for help on using the changeset viewer.