[8187] | 1 | //==== cl_conflit remplace $(... avec jQuery( ==== |
---|
[7880] | 2 | //=================================================== |
---|
| 3 | var detect = navigator.userAgent.toLowerCase(); |
---|
[8926] | 4 | // $_SERVER['HTTP_USER_AGENT'] ; |
---|
[7914] | 5 | var OS, version; |
---|
[7880] | 6 | //============================================================================== |
---|
| 7 | browser = detect_browser(); |
---|
[8926] | 8 | function detect_browser() { |
---|
[8587] | 9 | |
---|
[7880] | 10 | mybrowser = { |
---|
| 11 | browser: "", |
---|
| 12 | konqueror: false, |
---|
| 13 | chrome: false, |
---|
| 14 | safari: false, |
---|
| 15 | omniWeb: false, |
---|
| 16 | opera: false, |
---|
| 17 | firefox: false, |
---|
| 18 | msie: false, |
---|
[8926] | 19 | netscape: false, |
---|
| 20 | seamonkey: false |
---|
[7880] | 21 | } |
---|
| 22 | if (checkIt('konqueror')) { mybrowser.Konqueror = true; lbrowser = "konqueror"; OS = "Linux"; } |
---|
[8926] | 23 | else if (checkIt('seamonkey')) { mybrowser.seamonkey = true; lbrowser = "seamonkey"; } |
---|
[7880] | 24 | else if (checkIt('chrome')) { mybrowser.chrome = true; lbrowser = "chrome"; } |
---|
| 25 | else if (checkIt('safari')) { mybrowser.safari = true; lbrowser = "safari"; } |
---|
| 26 | else if (checkIt('omniweb')) { mybrowser.omniweb = true; lbrowser = "omniWeb"; } |
---|
| 27 | else if (checkIt('opera')) { mybrowser.opera = true; lbrowser = "opera"; } |
---|
| 28 | else if (checkIt('firefox')) { mybrowser.firefox = true; lbrowser = "firefox"; } |
---|
| 29 | |
---|
| 30 | else if (checkIt('msie')) { mybrowser.msie = true; lbrowser = "msie"; } |
---|
[7914] | 31 | else if (checkIt('compatible')) { mybrowser.NetscapeNavigator = true; lmybrowser.browser = "NetscapeNavigator"; version = detect.charAt(8); } |
---|
[7880] | 32 | else lbrowser = "An unknown browser"; |
---|
[7914] | 33 | if (!version) version = detect.charAt(place + thestring.length); |
---|
[7880] | 34 | if (!OS) { |
---|
| 35 | if (checkIt('linux')) OS = "Linux"; |
---|
| 36 | else if (checkIt('x11')) OS = "Unix"; |
---|
| 37 | else if (checkIt('mac')) OS = "Mac"; |
---|
| 38 | else if (checkIt('win')) OS = "Windows"; |
---|
| 39 | else OS = "an unknown operating system"; |
---|
| 40 | } |
---|
[8926] | 41 | mybrowser.version = version; |
---|
[8740] | 42 | mybrowser.OS = OS; |
---|
[7880] | 43 | mybrowser.browser = lbrowser; |
---|
| 44 | return mybrowser |
---|
| 45 | }; |
---|
| 46 | function checkIt(string) { |
---|
| 47 | place = detect.indexOf(string) + 1; |
---|
| 48 | thestring = string; |
---|
| 49 | return place; |
---|
| 50 | } |
---|
[8926] | 51 | |
---|
[7880] | 52 | /* |
---|
| 53 | |
---|
| 54 | */ |
---|
| 55 | konqueror = mybrowser.konqueror || false; |
---|
| 56 | chrome = mybrowser.chrome || false; |
---|
| 57 | safari = mybrowser.safari || false; |
---|
| 58 | omniWeb = mybrowser.omniWeb || false; |
---|
| 59 | opera = mybrowser.opera || false; |
---|
| 60 | firefox = mybrowser.firefox || false; |
---|
| 61 | msie = mybrowser.msie || false; |
---|
| 62 | netscape = mybrowser.netscape || false; |
---|
| 63 | var time_out = 0; |
---|
| 64 | //=================================================== |
---|
| 65 | nbpa = 0; |
---|
| 66 | var Fn; |
---|
| 67 | function conflit(element, nc) { |
---|
[8187] | 68 | //--- cl_conflit |
---|
[8740] | 69 | if (typeof MooTools == "undefined" && typeof Prototype == "undefined") { |
---|
[8629] | 70 | ret_element = jQuery(element); |
---|
[8187] | 71 | return ret_element; |
---|
| 72 | } |
---|
| 73 | //==================================================== |
---|
| 74 | if (typeof (element) == "string") { |
---|
[8587] | 75 | if (element.match("^#|.ui|html", "gi")) { |
---|
[8187] | 76 | ret_element = jQuery(element); |
---|
| 77 | return ret_element; |
---|
| 78 | } |
---|
[8926] | 79 | |
---|
[8187] | 80 | } |
---|
| 81 | |
---|
[7880] | 82 | var retour = (getStackTrace()); |
---|
| 83 | Fn = retour.fn; |
---|
| 84 | retour = retour.state; |
---|
| 85 | |
---|
| 86 | var ret_element = ""; |
---|
| 87 | if (retour.match(RegExp("jQuery", "gi"))) { |
---|
| 88 | ret_element = jQuery(element); |
---|
| 89 | } |
---|
| 90 | else if (retour.match(RegExp("rv_gmaps", "gi"))) { |
---|
[8740] | 91 | try { |
---|
| 92 | ret_element = myjQuery().$Prototype(element); |
---|
[8187] | 93 | } |
---|
[8740] | 94 | catch (e) { |
---|
[7880] | 95 | |
---|
[8629] | 96 | ret_element = myjQuery().$Prototype(element); |
---|
[8187] | 97 | |
---|
| 98 | } |
---|
[8740] | 99 | } else if (retour.match(RegExp("GMaps", "gi"))) { |
---|
[8187] | 100 | |
---|
[7880] | 101 | ret_element = jQuery(element); |
---|
| 102 | } else if (retour.match(RegExp("pamooramics", "gi"))) { |
---|
| 103 | |
---|
| 104 | ret_element = jQuery().$Pamoorama(element); |
---|
| 105 | |
---|
| 106 | if (retour.match(RegExp("init_", "gi"))) { |
---|
| 107 | |
---|
| 108 | } |
---|
| 109 | |
---|
[8926] | 110 | |
---|
[7880] | 111 | } else if (retour.match(RegExp("luciano", "gi"))) { |
---|
| 112 | |
---|
[8926] | 113 | |
---|
[7880] | 114 | ret_element = jQuery().$Luciano(element, nc); |
---|
| 115 | |
---|
| 116 | } else if (retour.match(RegExp("jQuery", "gi"))) { |
---|
| 117 | ret_element = jQuery(element); |
---|
| 118 | } |
---|
| 119 | |
---|
| 120 | if (ret_element != "") |
---|
| 121 | return ret_element; |
---|
| 122 | |
---|
| 123 | if (typeof (element) == "string") { |
---|
| 124 | if (element.match("^#|.ui", "gi")) { |
---|
| 125 | ret_element = jQuery(element); |
---|
| 126 | return ret_element; |
---|
| 127 | } |
---|
| 128 | } else if (typeof (element) == "function") { |
---|
| 129 | fn = element.toString(); |
---|
| 130 | if (fn.match("#pwg|open", "gi")) { |
---|
| 131 | ret_element = jQuery(element); |
---|
| 132 | return ret_element; |
---|
| 133 | } |
---|
| 134 | } else if (element == document) { |
---|
| 135 | |
---|
| 136 | ret_element = jQuery(element); |
---|
| 137 | return ret_element; |
---|
| 138 | |
---|
| 139 | |
---|
[8187] | 140 | } else if (element == window) { |
---|
| 141 | |
---|
| 142 | ret_element = jQuery(element); |
---|
| 143 | return ret_element; |
---|
| 144 | |
---|
| 145 | |
---|
[7880] | 146 | } |
---|
| 147 | tp0 = typeof (element); |
---|
| 148 | |
---|
| 149 | ret_element = jQuery(element); |
---|
| 150 | if (DEBUG == "true") { |
---|
| 151 | retour = (getStackTrace()); |
---|
| 152 | alert("element : " + element + " retour : " + retour + "Fonctions:" + Fn); |
---|
| 153 | |
---|
| 154 | } |
---|
| 155 | return ret_element; |
---|
| 156 | } // conflit(element,nc) |
---|
[8187] | 157 | //====================================================== |
---|
| 158 | /* |
---|
| 159 | * |
---|
| 160 | * |
---|
| 161 | */ |
---|
| 162 | //====================================================== |
---|
[7880] | 163 | jQuery(document).ready( |
---|
[8629] | 164 | function (jQuery) { |
---|
| 165 | jQuery(window).load(function () { |
---|
| 166 | //============================================================ |
---|
| 167 | jQuery("#icon_gmaps").bind('click', function () { |
---|
[7880] | 168 | |
---|
[8629] | 169 | jQuery('html,body').stop().scrollTop(0); |
---|
| 170 | jQuery('html,body').stop().scrollLeft(0); |
---|
| 171 | jQuery(".ui-widget-overlay").css("opacity", "0.75"); |
---|
[7880] | 172 | |
---|
[8629] | 173 | l1 = (jQuery(window).width() - (jQuery(".gmapsPopup").width())) / 2; |
---|
| 174 | h1 = (jQuery(window).height() - (jQuery(".gmapsPopup").height())) / 2; |
---|
[7880] | 175 | |
---|
[8629] | 176 | jQuery(".gmapsPopup").css("left", l1 + "px"); |
---|
| 177 | jQuery(".gmapsPopup").css("top", h1 + "px"); |
---|
| 178 | }) |
---|
| 179 | //============================================================= |
---|
| 180 | // jQuery(window).resize(); |
---|
| 181 | }); |
---|
| 182 | // $ = _$2; ; |
---|
| 183 | }); |
---|
[7880] | 184 | //========================================================= |
---|
| 185 | jQuery.fn.extend({ |
---|
[8926] | 186 | $: function (el, nc) { |
---|
| 187 | a = conflit(el, nc); |
---|
| 188 | return a; |
---|
| 189 | }, |
---|
[7880] | 190 | |
---|
[8629] | 191 | //---------------- luciano ------------------------------- |
---|
| 192 | $Luciano: function (el, nc) { |
---|
| 193 | return document.id(el, nc, this.document); |
---|
| 194 | }, |
---|
| 195 | //=============== PaMOOramics =========================== |
---|
[7880] | 196 | |
---|
[8629] | 197 | $Pamoorama: function (B) { |
---|
[7880] | 198 | |
---|
| 199 | |
---|
| 200 | if (!B) { |
---|
| 201 | if (typeof (B) == "boolean") return null; |
---|
| 202 | |
---|
| 203 | } |
---|
| 204 | |
---|
| 205 | try { |
---|
| 206 | if (B.htmlElement) { |
---|
| 207 | return Garbage.collect(B); |
---|
| 208 | } |
---|
| 209 | } catch (e) { |
---|
| 210 | |
---|
| 211 | } |
---|
| 212 | |
---|
| 213 | if ([window, document].contains(B)) { return B; } |
---|
| 214 | var A = $type(B); |
---|
| 215 | if (A == "string") { B = document.getElementById(B); A = (B) ? "element" : false; } |
---|
| 216 | if (A != "element") { |
---|
| 217 | return null; |
---|
| 218 | } |
---|
| 219 | if (B.htmlElement) { return Garbage.collect(B); } |
---|
| 220 | if (["object", "embed"].contains(B.tagName.toLowerCase())) { return B; } |
---|
| 221 | $extend(B, Element.prototype); |
---|
| 222 | B.htmlElement = function () { }; |
---|
| 223 | try { return Garbage.collect(B); } catch (e) { |
---|
| 224 | return; |
---|
| 225 | } |
---|
| 226 | |
---|
| 227 | }, |
---|
| 228 | //=================================================== |
---|
| 229 | $Prototype: function (element) { |
---|
| 230 | //======== prototype.js ===================== |
---|
| 231 | if (arguments.length > 1) { |
---|
| 232 | for (var i = 0, elements = [], length = arguments.length; i < length; i++) |
---|
| 233 | elements.push($(arguments[i])); |
---|
| 234 | return elements; |
---|
| 235 | } |
---|
| 236 | if (typeof element == "string") |
---|
| 237 | element = document.getElementById(element); |
---|
| 238 | |
---|
| 239 | return Element.extend(element); |
---|
| 240 | |
---|
| 241 | try { |
---|
| 242 | new_element = Element.extend(element); |
---|
| 243 | } catch (e) { |
---|
| 244 | return new_element; |
---|
| 245 | } |
---|
| 246 | return new_element; |
---|
| 247 | } |
---|
| 248 | //========================================================= |
---|
| 249 | }); // fin extend |
---|
| 250 | |
---|
| 251 | |
---|
| 252 | |
---|
| 253 | /* |
---|
[7914] | 254 | * mootools.js version: "1.11" |
---|
[7880] | 255 | * pamoorama0.3.js |
---|
| 256 | * |
---|
| 257 | * main.js (google maps) |
---|
[7914] | 258 | * prototype.js(mootool version: "1.62") |
---|
[7880] | 259 | * windows.js |
---|
| 260 | * |
---|
| 261 | */ |
---|
| 262 | function getStackTrace() { |
---|
| 263 | var callstack = []; |
---|
| 264 | var isCallstackPopulated = false; |
---|
| 265 | try { |
---|
| 266 | i.dont.exist += 0; //doesn't exist- that's the point |
---|
| 267 | } catch (e) { |
---|
| 268 | var retcallstack = []; |
---|
| 269 | var e_message = e.message; |
---|
| 270 | var e_stack = e.stack; |
---|
[7895] | 271 | var state_ff = ""; |
---|
[7880] | 272 | if (e_stack) { //Firefox Opera 3.6 |
---|
| 273 | //=== test fichier source ============= |
---|
| 274 | var lines = e.stack.split("\n"); |
---|
| 275 | for (var i = 0, len = lines.length; i < len; i++) { |
---|
| 276 | var Src_Match = lines[i]; |
---|
| 277 | if (Src_Match.match(/conflit.js/)) { |
---|
| 278 | // |
---|
| 279 | } else { |
---|
| 280 | if (Src_Match.match(/^\s*[A-Za-z0-9\-_\$]+\(/)) { |
---|
| 281 | callstack.push(Src_Match); //php? |
---|
| 282 | } else { |
---|
| 283 | callstack.push(Src_Match); |
---|
| 284 | } |
---|
| 285 | if (Src_Match.match("GMaps|applyMap|markupMaps|applyMarkers")) { |
---|
| 286 | callstack.push("GMaps"); |
---|
| 287 | isCallstackPopulated = true; |
---|
| 288 | break; |
---|
| 289 | } |
---|
| 290 | if (Src_Match.match("rv_gmaps", "gi")) { |
---|
| 291 | callstack.push("rv_gmaps"); |
---|
| 292 | isCallstackPopulated = true; |
---|
| 293 | break; |
---|
| 294 | } |
---|
| 295 | if (Src_Match.match("paMOOramics")) { |
---|
| 296 | isCallstackPopulated = true; |
---|
| 297 | callstack.push("paMOOramics"); |
---|
| 298 | break; |
---|
| 299 | } |
---|
| 300 | if (Src_Match.match("Luciano", "gi")) { |
---|
| 301 | callstack.push("Luciano"); |
---|
| 302 | isCallstackPopulated = true; |
---|
| 303 | break; |
---|
| 304 | } |
---|
| 305 | if (Src_Match.match("main")) { |
---|
| 306 | |
---|
| 307 | callstack.push("main"); |
---|
| 308 | isCallstackPopulated = true; |
---|
| 309 | break; |
---|
| 310 | } |
---|
[7895] | 311 | if (Src_Match.match("jQuery", "gi")) { |
---|
[7880] | 312 | callstack.push("jQuery"); |
---|
| 313 | isCallstackPopulated = true; |
---|
[8926] | 314 | |
---|
[7880] | 315 | break; |
---|
| 316 | } |
---|
| 317 | } |
---|
| 318 | } |
---|
| 319 | //callstack.shift(); |
---|
[7895] | 320 | state_ff = callstack.join('\n'); |
---|
[7880] | 321 | isCallstackPopulated = false; |
---|
| 322 | } |
---|
| 323 | if (window.opera && e.message && isCallstackPopulated == false) { |
---|
| 324 | callstack = []; |
---|
| 325 | //Opera ================================= |
---|
| 326 | var lines = e.message.split("\n"); |
---|
| 327 | for (var i = 0, len = lines.length; i < len; i++) { |
---|
| 328 | if (lines[i].match(/^\s*[A-Za-z0-9\-_\$]+\(/)) { |
---|
| 329 | var entry = lines[i]; |
---|
| 330 | //Append next line also since it has the file info |
---|
| 331 | if (lines[i + 1]) { |
---|
| 332 | entry += " at " + lines[i + 1]; |
---|
| 333 | i++; |
---|
| 334 | } |
---|
| 335 | callstack.push(entry); |
---|
| 336 | //isCallstackPopulated = true; |
---|
| 337 | } |
---|
| 338 | } |
---|
| 339 | |
---|
| 340 | } |
---|
| 341 | //===== fin Opera====================================== |
---|
| 342 | } |
---|
| 343 | if (!isCallstackPopulated) { //IE and Safari |
---|
| 344 | var currentFunction = arguments.callee.caller; |
---|
| 345 | //next |
---|
| 346 | callstack = []; |
---|
| 347 | all_functions = []; |
---|
| 348 | state = ""; |
---|
| 349 | if (currentFunction == null) { |
---|
| 350 | return (""); |
---|
| 351 | } |
---|
| 352 | states = []; |
---|
| 353 | var fn1 = currentFunction.toString(); // fonction d'appel local (conflit) |
---|
| 354 | |
---|
| 355 | currentFunction = currentFunction.caller; |
---|
[7895] | 356 | var fn2 = currentFunction.toString(); // fonction d'appel local (conflit) |
---|
[7880] | 357 | currentFunction = currentFunction.caller; |
---|
| 358 | //$family |
---|
| 359 | |
---|
| 360 | while (currentFunction) { |
---|
| 361 | var fn = currentFunction.toString(); |
---|
| 362 | all_functions.push(fn); |
---|
| 363 | var fname = fn.substring(fn.indexOf("function") + 8, fn.indexOf("(")) || " "; |
---|
| 364 | if (fname != " ") { |
---|
| 365 | |
---|
| 366 | jQuery.noop; |
---|
| 367 | if (states.length > 0) break; |
---|
| 368 | |
---|
| 369 | // if (fname != " $") callstack.push(fn); |
---|
| 370 | } if (fname != "") { |
---|
| 371 | jQuery.noop; |
---|
| 372 | // if (fname != " $") callstack.push(fn); |
---|
| 373 | } |
---|
| 374 | callstack.push(fn); |
---|
| 375 | |
---|
| 376 | if (fn.match(RegExp("jquery|switchmenu|switchTabs|switchInterface|gally|initializeImageMode", "gi"))) { |
---|
| 377 | states.push('jQuery'); |
---|
[7895] | 378 | break; |
---|
[7880] | 379 | } |
---|
| 380 | if (fn.match(RegExp("dialog..open", "gi"))) { |
---|
| 381 | states.push('GMaps'); |
---|
[7895] | 382 | break; |
---|
[7880] | 383 | } |
---|
| 384 | if (fn.match(RegExp("GMaps|applyMap|markupMaps|applyMarkers", "gi"))) { |
---|
| 385 | states.push('GMaps'); |
---|
[7895] | 386 | break; |
---|
[7880] | 387 | } |
---|
| 388 | //====================== |
---|
[7944] | 389 | //? bubble |
---|
| 390 | Expression = new RegExp("\\$", "gi") |
---|
| 391 | if (fn.match(Expression)) { |
---|
| 392 | if (fn.match(RegExp("rateForm", "gi"))) { |
---|
| 393 | |
---|
| 394 | states.push('Luciano'); |
---|
| 395 | break; |
---|
| 396 | } |
---|
| 397 | } |
---|
| 398 | // "window.fireEvent('domready')" |
---|
| 399 | Expression = new RegExp("window.fireEvent", "gi") |
---|
| 400 | if (fn.match(Expression)) { //luciano |
---|
| 401 | // "window.fireEvent('domready')" |
---|
| 402 | Expression = new RegExp("window.fireEvent..domready..", "gi") |
---|
| 403 | if (fn.match(Expression)) { |
---|
| 404 | states.push('Luciano'); |
---|
| 405 | break; |
---|
| 406 | } |
---|
| 407 | } |
---|
| 408 | if (fn.match(RegExp("(splat|buildFrameWork|photoNext)", "gi"))) { //luciano |
---|
| 409 | |
---|
| 410 | states.push('Luciano'); |
---|
| 411 | break; |
---|
| 412 | } |
---|
| 413 | //====================== |
---|
[7880] | 414 | if (fn.match(RegExp("_footer|ie_ready|makeDraggable|droppables", "gi"))) { |
---|
| 415 | |
---|
| 416 | states.push('paMOOramics'); |
---|
[8629] | 417 | break; |
---|
| 418 | } |
---|
| 419 | //window_1290934905697_top |
---|
| 420 | if (fn.match(RegExp("window_..|WindowUtilities", "gi"))) { |
---|
| 421 | states.push('rv_gmaps'); |
---|
| 422 | break; |
---|
| 423 | } |
---|
| 424 | if (fn.match(RegExp("that.overlayOpacity", "gi"))) { |
---|
| 425 | states.push('rv_gmaps'); |
---|
| 426 | break; |
---|
| 427 | } |
---|
| 428 | if (fn.match(RegExp("For backward compatibility like win", "gi"))) { |
---|
| 429 | states.push('rv_gmaps'); |
---|
| 430 | break; |
---|
| 431 | } |
---|
| 432 | if (fn.match(RegExp("overlay_modal|HTMLDivElement|constraintPad", "gi"))) { |
---|
| 433 | states.push('rv_gmaps'); |
---|
| 434 | break; |
---|
| 435 | } |
---|
[7900] | 436 | |
---|
| 437 | if (fn.match(RegExp("__content|__method|observe|responder|stopobserving|fireContentLoadedEvent", "gi"))) { |
---|
[7880] | 438 | states.push('rv_gmaps'); |
---|
[7895] | 439 | break; |
---|
[7880] | 440 | } |
---|
| 441 | |
---|
| 442 | |
---|
[8629] | 443 | if (all_functions.length > 50) |
---|
| 444 | break; |
---|
[7880] | 445 | |
---|
| 446 | |
---|
| 447 | currentFunction = currentFunction.caller; |
---|
| 448 | } |
---|
| 449 | |
---|
| 450 | } |
---|
[8629] | 451 | // state_ff + "|" + |
---|
[7880] | 452 | state = states.join('\n'); |
---|
[7900] | 453 | if (state == "") { |
---|
[8926] | 454 | |
---|
[7900] | 455 | if (DEBUG == "true") { |
---|
| 456 | Fn = all_functions.join('\n'); |
---|
[7932] | 457 | try { |
---|
| 458 | alert(Conflit.name + Conflit.version + "\n Appel non trouvée:" + fn1 + "\n" + Fn + "\n Firefox(retour):" + state_ff); |
---|
| 459 | } catch (e) { |
---|
| 460 | } |
---|
[7900] | 461 | } |
---|
[7932] | 462 | |
---|
[8926] | 463 | |
---|
[7895] | 464 | state = state_ff; |
---|
[7900] | 465 | } |
---|
[7895] | 466 | |
---|
[7880] | 467 | Fn = all_functions; |
---|
[8629] | 468 | return { state: state, fn: callstack.join('\n'), fn1: fn2 }; |
---|
[7880] | 469 | } |
---|
| 470 | //==================================== |
---|
[8926] | 471 | |
---|
[8629] | 472 | librairies = new Array; |
---|
[8187] | 473 | $_ = $; |
---|
| 474 | function save_framework(page) { |
---|
[8629] | 475 | // theGategoryPage,theRegisterPage |
---|
| 476 | // thePicturePage |
---|
| 477 | // si admin.php page = "",theIdentificationPage |
---|
[8187] | 478 | try { |
---|
| 479 | Conflit = { version: cl_version, name: cl_plugin }; |
---|
| 480 | } catch (e) { |
---|
[7880] | 481 | |
---|
[8187] | 482 | } |
---|
[8740] | 483 | if (jQuery('#browser').length > 0) { |
---|
| 484 | jQuery('#browser').val(browser.browser); |
---|
| 485 | } |
---|
[8629] | 486 | if (typeof (Parent) == "undefined") |
---|
| 487 | Parent = "#theImage"; |
---|
| 488 | info_image = jQuery(Parent).infos(); |
---|
| 489 | p0 = jQuery(Parent); |
---|
| 490 | if (p0.length > 0) { |
---|
| 491 | //====================================================== |
---|
| 492 | if (info_image.position != "static") { |
---|
| 493 | try { |
---|
| 494 | if (theme.match("gally", "gi")) { |
---|
| 495 | if (typeof gallyPP != "undefined") { |
---|
| 496 | |
---|
| 497 | } else if (jQuery.isFunction(inittoolbar)) { |
---|
| 498 | if (typeof (currentTab) == "undefined") inittoolbar(); |
---|
| 499 | else initializeImageMode("resize"); |
---|
| 500 | }; |
---|
| 501 | //==== compatibilité Gally/LLGBO === |
---|
[8740] | 502 | jQuery(Parent).css({ position: "static" }); |
---|
[8629] | 503 | } |
---|
| 504 | } catch (e) { |
---|
| 505 | } |
---|
| 506 | |
---|
| 507 | } |
---|
| 508 | } |
---|
[8926] | 509 | |
---|
[8629] | 510 | $_2 = $; |
---|
[8187] | 511 | return |
---|
[8629] | 512 | } |
---|
[7880] | 513 | |
---|
[8187] | 514 | (function ($) { |
---|
[8629] | 515 | $(document).ready(function () { |
---|
| 516 | //================================================= |
---|
| 517 | if (typeof jQuery.fn.infos != "function") { |
---|
| 518 | jQuery = myjQuery; |
---|
| 519 | $ = my$; |
---|
| 520 | } |
---|
| 521 | }); |
---|
[7880] | 522 | |
---|
[8187] | 523 | })(jQuery); |
---|
[7880] | 524 | |
---|
[8926] | 525 | if (typeof MooTools == "undefined" && typeof Prototype == "undefined") { |
---|
| 526 | |
---|
| 527 | } else {} |
---|
[8629] | 528 | //-------------------------------------------------------------- |
---|
| 529 | $_0 = $; |
---|
| 530 | function $(element, nc0) { |
---|
| 531 | if (typeof jQuery.fn.infos != "function") |
---|
| 532 | if (typeof myjQuery != "undefined") |
---|
| 533 | jQuery = myjQuery; |
---|
| 534 | a = conflit(element, nc0); |
---|
| 535 | return a; |
---|
| 536 | } |
---|
[8926] | 537 | //=== ajout des fonctions jQuery === |
---|
| 538 | jQuery.extend($, jQuery); |
---|
[8629] | 539 | |
---|
[8793] | 540 | |
---|
[8926] | 541 | //-------------------------------------------------------------- |
---|
[8793] | 542 | |
---|