Changeset 8587 for extensions/cl_conflit
- Timestamp:
- Jan 10, 2011, 4:57:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/cl_conflit/js/conflit.js
r8187 r8587 1 1 //==== cl_conflit remplace $(... avec jQuery( ==== 2 /*3 *[gmaps=id:1;width:800;height:640;]4 * Luciano rv_gmaps5 * pb : Gmaps llgbo pamooramics rv_map6 */7 var d1 = 0;8 var init_tb = 0;9 var dom = {};10 if (typeof jQuery == 'undefined') {11 // alert(" jQuery n'est pas chargé");12 } else {13 // jQuery est chargé14 }15 2 16 3 //=================================================== … … 19 6 //============================================================================== 20 7 browser = detect_browser(); 8 21 9 function detect_browser() { 22 10 mybrowser = { … … 90 78 //==================================================== 91 79 if (typeof (element) == "string") { 92 if (element.match("^#|.ui ", "gi")) {80 if (element.match("^#|.ui|html", "gi")) { 93 81 ret_element = jQuery(element); 94 82 return ret_element; … … 181 169 jQuery(document).ready( 182 170 function (jQuery) { 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 }); 222 217 223 218
Note: See TracChangeset
for help on using the changeset viewer.