Changeset 11429 for extensions/Autosize/js
- Timestamp:
- Jun 19, 2011, 2:03:07 PM (13 years ago)
- Location:
- extensions/Autosize/js
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r11277 r11429 258 258 }); 259 259 260 jQuery(window).resize( 261 function (event, ui) { 262 List_autosize_resize(event, ui); 263 jQuery().newResize(); 264 }); 260 265 261 266 262 jQuery(window).load(function () { 267 263 if (typeof img_width == "undefined") { 268 269 264 if (List_autosize.length == 0) return; 270 265 for (i = 0; i < List_autosize.length; i++) { 271 266 Autosize_resize(jQuery(List_autosize[i])); 272 267 } 273 274 268 return; 275 269 } … … 351 345 //========================================================= 352 346 old_window = { width: 0, height: 0 }; 347 jQuery(window).resize( 348 function (event, ui) { 349 List_autosize_resize(event, ui); 350 jQuery().newResize(); 351 }); 353 352 354 353 jQuery.fn.extend({ … … 531 530 info_theImage = jQuery(theImg).infos(); 532 531 info_the_page = jQuery("#the_page").infos(); 532 jQuery("#theImage").height(info_theImage.height); 533 img_finale.height = info_theImage.height; 533 534 534 535 break … … 596 597 theImg = myPamoorama.image; 597 598 info_theImage = jQuery("#pamoorama").infos(); 598 info_theImage.height = img_reelle.height; 599 599 //img_finale.height = info_theImage.height; 600 //info_theImage.height = img_reelle.height; 601 602 info_theImage.height =info_theImage.height; 600 603 601 604 info_the_page = jQuery("#the_page").infos(); … … 714 717 //========================================================================== 715 718 h = 0; 719 Bandeau = 0; 716 720 717 721 h = (Zone_Affichage.padding.bottom + Zone_Affichage.padding.top + Zone_Affichage.margin.top + Zone_Affichage.margin.bottom); 718 Bandeau = Bandeau_t.img_top;722 if (typeof Bandeau_t != "undefined") Bandeau = Bandeau_t.img_top; 719 723 Zone_Affichage.height = winheight - Bandeau - Marge_Basse - correction - h; 720 724 //========================================================================= … … 782 786 } 783 787 widthmin -= marges; 784 widthmin -= (Bandeau_t.borderwidth.left + Bandeau_t.borderwidth.left); 785 Image_width -= (Bandeau_t.borderwidth.left + Bandeau_t.borderwidth.left); 788 if (typeof Bandeau_t != "undefined") { 789 widthmin -= (Bandeau_t.borderwidth.left + Bandeau_t.borderwidth.left); 790 Image_width -= (Bandeau_t.borderwidth.left + Bandeau_t.borderwidth.left); 791 } else { 792 793 jQuery().newResize(); 794 } 786 795 if (Image_width > widthmin) { 787 796 // Image_width largeur à atteindre … … 811 820 } 812 821 zoom = echelle; 813 if ( llgboframe.height > 0) {822 if (typeof (llgboframe) != "undefined" && llgboframe.height > 0) { 814 823 //=============LLGBO2 =========================== 815 824 t1 = llgboframe; 816 825 if (!theImg.src) { 817 theImg = jQuery( theImg).find("img").get(0)826 theImg = jQuery("#gbo").find("img").get(0) 818 827 if (!theImg.src) { 819 828 theImg = jQuery(Parent).find("div").get(0) … … 889 898 jQuery("area[rel=next]").attr({ coords: "'" + coord.x0 + "," + coord.y0 + "," + coord.x1 + "," + coord.y1 + "'" }); 890 899 } 900 jQuery("#theImage").height(heightgbo + marges_llgbo / 2); 891 901 } 892 902 } … … 913 923 // jQuery(Cadre).width(Zone_Affichage.width); 914 924 jQuery(Cadre).css("width", "auto"); 915 // jQuery(Cadre).height(Zone_Affichage.height); 925 if (Type_Img == "panorama" || Type_Img == "pamoorama") 926 img_finale.height = info_theImage.height; 927 Zone_Affichage.height = img_finale.height; 928 jQuery(Cadre).height(Zone_Affichage.height); 916 929 917 930 if (typeof (gmaps) != "undefined") { … … 1040 1053 1041 1054 1042 } else if (theImg .src) {1055 } else if (theImg != null && theImg.src) { 1043 1056 //--- background ?? --- 1044 1057 jQuery(theImg).height(img_finale.height); … … 1242 1255 1243 1256 function Info_entete(Parent) { 1244 if (typeof (marge_top) != "undefined") return result; 1257 1245 1258 info_imageToolBar = jQuery("#imageToolBar").infos(); 1246 1259 if (typeof (marge_top) != "undefined") return info_imageToolBar; 1247 1260 1248 1261 if (info_imageToolBar.position == "absolute") { … … 1301 1314 llgboh2 = jQuery("#gboh2").infos(); 1302 1315 result.img_top += llgboh2.height; 1316 1303 1317 return result; 1304 1318 -
extensions/Autosize/js/conflit.js
r11277 r11429 51 51 52 52 /* 53 53 54 */ 54 55 konqueror = mybrowser.konqueror || false; … … 119 120 120 121 if (ret_element != "") 121 122 return ret_element; 122 123 123 124 if (typeof (element) == "string") { … … 134 135 } else if (element == document) { 135 136 136 137 137 ret_element = jQuery(element); 138 return ret_element; 138 139 139 140 … … 165 166 function (jQuery) { 166 167 jQuery(window).load(function () { 168 167 169 //============================================================ 168 if (jQuery("#check_auto_w").length>0){169 var cl_visible = jQuery("#check_auto_w").get(0).checked;170 if (!cl_visible) {171 jQuery("#table0 :text[name*='_width'] ").hide();172 } else {173 jQuery("#table0 :text[name*='_width'] ").show();174 }170 if (jQuery("#check_auto_w").length > 0) { 171 var cl_visible = jQuery("#check_auto_w").get(0).checked; 172 if (!cl_visible) { 173 jQuery("#table0 :text[name*='_width'] ").hide(); 174 } else { 175 jQuery("#table0 :text[name*='_width'] ").show(); 176 } 175 177 } 176 178 //============================================================== … … 181 183 182 184 if (this.checked) 183 obj.css({ backgroundColor:"green",color:"white"});185 obj.css({ backgroundColor: "green", color: "white" }); 184 186 else 185 obj.css({ backgroundColor: "red",color:"white"});187 obj.css({ backgroundColor: "red", color: "white" }); 186 188 187 189 return; … … 205 207 jQuery("#icon_gmaps").bind('click', function () { 206 208 //jQuery("#iGMapsIconContent").dialog("open"); 207 if (Version_pwg > '2.2.0' 208 return;209 if (Version_pwg > '2.2.0') 210 return; 209 211 jQuery('html,body').stop().scrollTop(0); 210 212 jQuery('html,body').stop().scrollLeft(0); … … 232 234 this.detachEvent("on" + B, A); 233 235 } return this; 234 },236 }, 235 237 //---------------- luciano ------------------------------- 236 238 $Luciano: function (el, nc) { … … 364 366 state_ff = callstack.join('\n'); 365 367 isCallstackPopulated = false; 366 }368 } 367 369 if (window.opera && e.message && isCallstackPopulated == false) { 368 370 callstack = []; … … 527 529 if (jQuery('#browser').length > 0) { 528 530 jQuery('#browser').val(browser.browser); 529 } 530 if (typeof (Parent) == "undefined") 531 Parent = "#theImage"; 532 info_image = jQuery(Parent).infos(); 533 p0 = jQuery(Parent); 534 if (p0.length > 0) { 535 //====================================================== 536 if (info_image.position != "static") { 537 try { 538 if (theme.match("gally", "gi")) { 539 if (typeof gallyPP != "undefined") { 540 541 } else if (jQuery.isFunction(inittoolbar)) { 542 if (typeof (currentTab) == "undefined") inittoolbar(); 543 else initializeImageMode("resize"); 544 }; 545 //==== compatibilité Gally/LLGBO === 546 jQuery(Parent).css({ position: "static" }); 547 } 548 } catch (e) { 549 } 550 551 } 552 } 553 554 $_2 = $; 555 return 531 } 532 533 if (typeof (Parent) == "undefined") return; 534 535 info_image = jQuery(Parent).infos(); 536 p0 = jQuery(Parent); 537 if (p0.length > 0) { 538 //====================================================== 539 if (info_image.position != "static") { 540 try { 541 if (theme.match("gally", "gi")) { 542 if (typeof gallyPP != "undefined") { 543 544 } else if (jQuery.isFunction(inittoolbar)) { 545 if (typeof (currentTab) == "undefined") inittoolbar(); 546 else initializeImageMode("resize"); 547 }; 548 //==== compatibilité Gally/LLGBO === 549 jQuery(Parent).css({ position: "static" }); 550 } 551 } catch (e) { 552 } 553 554 } 555 } 556 557 $_2 = $; 558 return 556 559 } 557 560 558 561 (function ($) { 559 $(document).ready(function () { 560 //================================================= 561 if (typeof jQuery.fn.infos != "function") { 562 jQuery = myjQuery; 563 $ = my$; 564 } 565 566 567 568 }); 562 $(document).ready(function () { 563 //================================================= 564 if (typeof jQuery.fn.infos != "function") { 565 jQuery = myjQuery; 566 $ = my$; 567 } 568 }); 569 569 570 570 })(jQuery); 571 571 572 572 573 //-------------------------------------------------------------- 574 $_0 = $; 575 function $(element, nc0) { 576 if (typeof jQuery.fn.infos != "function") 577 if (typeof myjQuery != "undefined") 578 jQuery = myjQuery; 579 a = conflit(element, nc0); 580 return a; 581 } 582 //=== ajout des fonctions jQuery === 583 jQuery.extend($, jQuery); 573 //-------------------------------------------------------------- 574 $_0 = $; 575 576 //=== ajout des fonctions jQuery === 577 $ = jQuery.fn.$; 578 579 if (typeof $mootools != "undefined") 580 jQuery.extend($, $mootools); 581 582 jQuery.extend($, $_0); -
extensions/Autosize/js/conflit_2.js
r11277 r11429 1 if (typeof Type_Img ) {1 2 2 //=== ajout des fonctions jQuery === 3 if (typeof MooTools == "undefined" && typeof Prototype == "undefined") {3 if (typeof MooTools!= "undefined" && typeof Prototype == "undefined") { 4 4 $mootools = window.$; 5 5 } else { … … 8 8 if (typeof (gmaps) != "undefined") { 9 9 } 10 $ = jQuery.fn.$;10 if (jQuery.fn.$) $ = jQuery.fn.$; 11 11 jQuery.extend($, $mootools); 12 12 jQuery.extend($, jQuery.fn); 13 13 } else { 14 $ = jQuery.fn.$;15 jQuery.extend($, jQuery .fn);14 if (jQuery.fn.$) $ = jQuery.fn.$; 15 jQuery.extend($, jQuery); 16 16 } 17 17 } 18 18 } 19 }19 if (typeof Type_Img ) {}
Note: See TracChangeset
for help on using the changeset viewer.