| 183 | | jQuery(window).load(function () { |
| 184 | | //============================================================ |
| 185 | | jQuery("#icon_gmaps").bind('click', function () { |
| 186 | | |
| 187 | | jQuery('html,body').stop().scrollTop(0); |
| 188 | | jQuery('html,body').stop().scrollLeft(0); |
| 189 | | jQuery(".ui-widget-overlay").css("opacity", "0.75"); |
| 190 | | |
| 191 | | l1 = (jQuery(window).width() - (jQuery(".gmapsPopup").width())) / 2; |
| 192 | | h1 = (jQuery(window).height() - (jQuery(".gmapsPopup").height())) / 2; |
| 193 | | |
| 194 | | jQuery(".gmapsPopup").css("left", l1 + "px"); |
| 195 | | jQuery(".gmapsPopup").css("top", h1 + "px"); |
| 196 | | }) |
| 197 | | //============================================================= |
| 198 | | if (typeof(Parent)=="undefined") |
| 199 | | Parent = "#theImage"; |
| 200 | | info_image = jQuery(Parent).infos(); |
| 201 | | p0 = jQuery(Parent); |
| 202 | | if (p0.length > 0) { |
| 203 | | //====================================================== |
| 204 | | if (theme.match("gally", "gi")) |
| 205 | | if (jQuery.isFunction(inittoolbar)) { |
| 206 | | if (typeof (currentTab) == "undefined") inittoolbar(); |
| 207 | | else initializeImageMode("resize"); |
| 208 | | if (info_image.position != "static") { |
| 209 | | //==== compatibilité Gally/LLGBO === |
| 210 | | //--- passage relative ==> static ===/ |
| 211 | | jQuery(Parent).css({ position: "static" } ); |
| 212 | | jQuery("#imageToolBar").css({ position: "relative", top: "0px" }); |
| 213 | | }; |
| 214 | | } |
| 215 | | } |
| 216 | | // jQuery(window).resize(); |
| 217 | | |
| 218 | | }); |
| 219 | | //============================================================= |
| 220 | | // $ = _$2; ; |
| 221 | | }); |
| | 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 | }); |