Changeset 8588 for extensions/Autosize
- Timestamp:
- Jan 10, 2011, 4:58:04 PM (14 years ago)
- Location:
- extensions/Autosize/js
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r8536 r8588 247 247 248 248 var Cadre = jQuery(Parent).get(0); 249 var info_ Cadre = jQuery(Cadre).infos();249 var info_theImage = jQuery(Cadre).infos(); 250 250 //=============== Information cadre ====== 251 251 var info_the_page = jQuery("#the_page").infos(); … … 331 331 img_reelle.height = info_img.height; 332 332 info_map = jQuery("#mapPicture").infos(); 333 marge_left = info_map.width; 334 jQuery("#map").css("left", marge_left + "px"); 335 333 jQuery("#map").css("left", info_map.width + "px"); 336 334 Bandeau_bas.height = 10; 337 marge_right = 10; 338 img_reelle.width = winwidth - marge_left - marge_right; 335 336 if (theme.match(RegExp("simple", "g"))) { 337 img_reelle.width = winwidth; //- info_map.width -marge_right; 338 } else { 339 img_reelle.width = winwidth - info_map.width -marge_right; 340 } 341 342 339 343 info_the_page = jQuery("#the_page").infos(); 344 winwidth = img_reelle.width; 345 340 346 ; 341 347 … … 820 826 jQuery("#navThumbPrev").css({ overflow: "hidden" }); 821 827 jQuery("#navThumbNext").css({ overflow: "hidden" }); 828 n = typeof inittoolbar; 829 822 830 try { 823 831 if (theme.match(RegExp("gally", "gi"))) { 824 832 if (typeof inittoolbar == "function") { 833 if (typeof (currentTab) == "undefined") inittoolbar(); 834 else initializeImageMode("resize"); 835 } 825 836 //=========================================================================== 826 initializeImageMode("resize"); 837 827 838 if (jQuery("#navThumbPrev").length > 0) { 828 839 jQuery("#navThumbPrev").css({ height: info_img.height + "px", … … 840 851 if (Type_Img == "map") 841 852 jQuery("#navThumbNextContainer").css({ background: 'none' }); 842 843 844 845 if (!theme.match(RegExp("lapis", "gi"))) { initializeImageMode("resize"); } 853 if (!theme.match(RegExp("lapis", "gi"))) { 854 initializeImageMode("resize"); 855 } 856 846 857 } else if (theme.match(RegExp("simple", "g"))) { 847 858 848 859 jQuery("#imageToolBar").css({ position: "static" }); 849 860 850 861 info_imageInfoBar = jQuery("#imageInfoBar").infos(); 851 862 if (info_imageInfoBar.bottom < info_img.bottom) { 852 // jQuery("#imageInfoBar").height(info_img.bottom);863 // jQuery("#imageInfoBar").height(info_img.bottom); 853 864 } 854 865 -
extensions/Autosize/js/conflit.js
r8185 r8588 78 78 //==================================================== 79 79 if (typeof (element) == "string") { 80 if (element.match("^#|.ui ", "gi")) {80 if (element.match("^#|.ui|html", "gi")) { 81 81 ret_element = jQuery(element); 82 82 return ret_element; … … 169 169 jQuery(document).ready( 170 170 function (jQuery) { 171 jQuery(window).load(function () { 172 //============================================================ 173 jQuery("#icon_gmaps").bind('click', function () { 174 175 jQuery('html,body').stop().scrollTop(0); 176 jQuery('html,body').stop().scrollLeft(0); 177 jQuery(".ui-widget-overlay").css("opacity", "0.75"); 178 179 l1 = (jQuery(window).width() - (jQuery(".gmapsPopup").width())) / 2; 180 h1 = (jQuery(window).height() - (jQuery(".gmapsPopup").height())) / 2; 181 182 jQuery(".gmapsPopup").css("left", l1 + "px"); 183 jQuery(".gmapsPopup").css("top", h1 + "px"); 184 }) 185 //============================================================= 186 if (typeof(Parent)=="undefined") 187 Parent = "#theImage"; 188 info_image = jQuery(Parent).infos(); 189 p0 = jQuery(Parent); 190 if (p0.length > 0) { 191 //====================================================== 192 if (theme.match("gally", "gi")) 193 if (jQuery.isFunction(inittoolbar)) { 194 if (typeof (currentTab) == "undefined") inittoolbar(); 195 else initializeImageMode("resize"); 196 if (info_image.position != "static") { 197 //==== compatibilité Gally/LLGBO === 198 //--- passage relative ==> static ===/ 199 jQuery(Parent).css({ position: "static" } ); 200 jQuery("#imageToolBar").css({ position: "relative", top: "0px" }); 201 }; 202 } 203 } 204 // jQuery(window).resize(); 205 }); 206 //============================================================= 207 // $ = _$2; ; 208 }); 171 jQuery(window).load(function () { 172 //============================================================ 173 jQuery("#icon_gmaps").bind('click', function () { 174 175 jQuery('html,body').stop().scrollTop(0); 176 jQuery('html,body').stop().scrollLeft(0); 177 jQuery(".ui-widget-overlay").css("opacity", "0.75"); 178 179 l1 = (jQuery(window).width() - (jQuery(".gmapsPopup").width())) / 2; 180 h1 = (jQuery(window).height() - (jQuery(".gmapsPopup").height())) / 2; 181 182 jQuery(".gmapsPopup").css("left", l1 + "px"); 183 jQuery(".gmapsPopup").css("top", h1 + "px"); 184 }) 185 //============================================================= 186 if (typeof (Parent) == "undefined") 187 Parent = "#theImage"; 188 info_image = jQuery(Parent).infos(); 189 p0 = jQuery(Parent); 190 if (p0.length > 0) { 191 //====================================================== 192 if (info_image.position != "static") { 193 try { 194 if (theme.match("gally", "gi")) { 195 if (typeof gallyPP != "undefined") { 196 197 } else if (jQuery.isFunction(inittoolbar)) { 198 if (typeof (currentTab) == "undefined") inittoolbar(); 199 else initializeImageMode("resize"); 200 }; 201 //==== compatibilité Gally/LLGBO === 202 //--- passage relative ==> static ===/ 203 jQuery(Parent).css({ position: "static" }); 204 jQuery("#imageToolBar").css({ position: "relative", top: "0px" }); 205 206 } 207 } catch (e) { 208 } 209 210 } 211 } 212 // jQuery(window).resize(); 213 }); 214 //============================================================= 215 // $ = _$2; ; 216 }); 209 217 210 218 -
extensions/Autosize/js/jquery.dimensions.js
r8536 r8588 135 135 margin.top = jQuery(elem).Get_Val_int(Css.marginTop); 136 136 margin.bottom = jQuery(elem).Get_Val_int(Css.marginBottom); 137 138 137 try { 139 138 margin.margin = Css.margin; 140 141 139 } catch (e) { 142 140 margin.margin = '"' + margin.left + ' ' + margin.top + ' ' + margin.right + ' ' + margin.bottom + '"';
Note: See TracChangeset
for help on using the changeset viewer.