Changeset 8057 for extensions/Autosize/js
- Timestamp:
- Dec 9, 2010, 3:10:07 PM (13 years ago)
- Location:
- extensions/Autosize/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r8007 r8057 1311 1311 1312 1312 1313 1314 $(function () { 1315 1313 $(function () { 1316 1314 jQuery('#pamoorama').live('ON', function (e) { 1317 1315 jQuery(jQuery('.debug').get(1)).trigger('ON'); … … 1356 1354 1357 1355 // Add 10 testing debugs to start with 1358 1356 jQuery(window).load(function () { 1359 1357 if (DEBUG == "true") { 1360 1358 for (var i = 0; i < 10; i++) { … … 1364 1362 1365 1363 } 1366 //}); //on load1364 }); //on load 1367 1365 }); -
extensions/Autosize/js/conflit.js
r7962 r8057 1 //==== autosize remplace $(... avec jQuery( ==== 2 /* 3 *[gmaps=id:1;width:800;height:640;] 4 * Luciano rv_gmaps 5 * pb : Gmaps llgbo pamooramics rv_map 6 */ 7 var d1 = 0; 8 var init_tb = 0; 9 var dom = {}; 10 11 if (typeof jQuery == 'undefined') { 12 alert(" jQuery n'est pas chargé"); 13 } else { 14 // jQuery est chargé 15 } 16 17 try{ 18 if (DEBUG == "true") { 19 20 } 21 }catch(e) 22 { 23 DEBUG = "false"; 24 } 1 //==== cl_conflit remplace $(... avec jQuery( ==== 2 25 3 //=================================================== 26 4 var detect = navigator.userAgent.toLowerCase(); … … 87 65 netscape = mybrowser.netscape || false; 88 66 89 90 //========================================91 /*function $defined(A) {92 $ = _$2; // ;93 return A != undefined;94 }95 */96 97 67 var time_out = 0; 98 68 //=================================================== … … 114 84 else if (retour.match(RegExp("rv_gmaps", "gi"))) { 115 85 ret_element = jQuery().$Prototype(element); 116 } else if (retour.match(RegExp("GMaps", "gi"))) { 117 86 } else if (retour.match(RegExp("GMaps", "gi"))) { 118 87 119 88 ret_element = jQuery(element); … … 167 136 return ret_element; 168 137 } // conflit(element,nc) 169 170 171 172 173 138 //====================================================== 139 /* 140 * 141 * 142 */ 143 //====================================================== 174 144 jQuery(document).ready( 175 function (jQuery) {176 jQuery(window).load(function () {177 //============================================================178 jQuery("#icon_gmaps").bind('click', function () {145 function (jQuery) { 146 jQuery(window).load(function () { 147 //============================================================ 148 jQuery("#icon_gmaps").bind('click', function () { 179 149 180 150 jQuery('html,body').stop().scrollTop(0); … … 191 161 if (typeof(Parent)=="undefined") 192 162 Parent = "#theImage"; 193 194 info_image = jQuery(Parent).infos(); 195 p0 = jQuery(Parent); 196 if (p0.length > 0) { 197 198 //====================================================== 199 if (theme.match("gally", "gi")) 163 info_image = jQuery(Parent).infos(); 164 p0 = jQuery(Parent); 165 if (p0.length > 0) { 166 //====================================================== 167 if (theme.match("gally", "gi")) 200 168 if (jQuery.isFunction(inittoolbar)) { 201 169 if (typeof (currentTab) == "undefined") inittoolbar(); 202 else initializeImageMode("resize"); 203 204 205 if (info_image.position != "static") { 206 //==== compatibilité Gally/LLGBO === 207 //--- passage relative ==> static ===/ 208 jQuery(Parent).css({ position: "static" } ); 209 jQuery("#imageToolBar").css({ position: "relative", top: "0px" }); 210 }; 170 else initializeImageMode("resize"); 171 if (info_image.position != "static") { 172 //==== compatibilité Gally/LLGBO === 173 //--- passage relative ==> static ===/ 174 jQuery(Parent).css({ position: "static" } ); 175 jQuery("#imageToolBar").css({ position: "relative", top: "0px" }); 176 }; 177 } 211 178 } 212 }213 179 // jQuery(window).resize(); 214 215 180 }); 216 //============================================================= 217 218 // $ = _$2; ; 219 220 221 }) 222 ; 181 //============================================================= 182 // $ = _$2; ; 183 }); 223 184 224 185 … … 228 189 jQuery.fn.extend({ 229 190 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 191 //---------------- luciano ------------------------------- 192 $Luciano: function (el, nc) { 193 return document.id(el, nc, this.document); 194 }, 195 //=============== PaMOOramics =========================== 196 197 $Pamoorama: function (B) { 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 //========================================================= 288 249 }); // fin extend 289 250 … … 509 470 //==================================== 510 471 511 512 (function ($) {513 $(document).ready(function () {514 jQuery(window).load(function () {515 a = jQuery(':Description');516 });517 });518 //==============================================519 librairies=[];520 jQuery.extend(jQuery.expr[':'], {521 // Nom du sélecteur personnalisé522 Description: function (a) {523 n = jQuery(a).infos();524 if (n.id != "") {525 //alert("<" + n.nodeName +" id= " + n.id + " >") ;526 }527 if (n.nodeName == "SCRIPT")528 if (a.src == "") {529 Match = jQuery(a).html();530 /*531 if ( Match.match(new RegExp("jQuery", "gi") )) {532 alert(n.id + n.nodeName + a.outerHTML ) ;533 }534 if ( Match.match(new RegExp("ajax", "gi") )) {535 alert(n.id + n.nodeName + a.outerHTML ) ;536 }537 */538 if (Match.match(new RegExp("\\$", "gi"))) {539 540 if (Match.match(new RegExp("ajax", "gi"))) {541 // alert(n.id + n.nodeName + a.outerHTML);542 543 }544 }545 if (Match.match(new RegExp("pamoorama", "ig"))) {546 547 // alert(n.id + n.nodeName + a.innerHTML);548 549 }550 } else {551 552 if (a.src.match(RegExp("mootools|pamooramic|luciano", "gi"))) {553 jQuery.noop;554 librairies.push(a.src);555 }556 557 }558 559 return a;560 561 }562 }); //fin extend563 /*564 *565 */566 })(jQuery);567 568 569 472 570 473 $_0= $;
Note: See TracChangeset
for help on using the changeset viewer.