Changeset 7740 for extensions/Autosize/js
- Timestamp:
- Nov 11, 2010, 10:29:02 AM (14 years ago)
- Location:
- extensions/Autosize/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r7737 r7740 26 26 27 27 jQuery(document).ready( 28 29 28 function (jQuery) { 30 31 32 33 29 jQuery(window).load(function () { 34 jQuery("#theImage").css({ 35 opacity: '0.0' 36 }); 30 37 31 //======= cl_conflit ====== 38 32 if (DEBUG == "false") { … … 244 238 Bandeau_bas = info_description; 245 239 246 jQuery("#Debug").css({ 240 jQuery("#Debug").css({ opacity: 0.5, 247 241 filter: 'alpha(opacity:50)', 248 242 position: "absolute", … … 253 247 jQuery("#Debug").text("Debug:Bandeau : " + Bandeau); 254 248 255 jQuery("#Debug1").css({ 249 jQuery("#Debug1").css({ opacity: 0.5, 256 250 filter: 'alpha(opacity:50)', 257 251 position: "absolute", … … 263 257 jQuery("#Debug1").text("Debug1:Bandeau_bas top : " + Bandeau_bas.top + " height:" + Bandeau_bas.height); 264 258 265 jQuery("#Debug2").css({ 259 jQuery("#Debug2").css({ opacity: 0.5, 266 260 filter: 'alpha(opacity:50)', 267 261 position: "absolute", … … 452 446 var info_pamoorama_inner = jQuery("#pamoorama_inner").infos(); 453 447 var info_pamoorama_footer = jQuery("#pamoorama_footer").infos(); 448 var info_pamoorama_frame = jQuery("#pamoorama_frame").infos(); 454 449 TheImg = jQuery("#pamoorama"); 450 451 var myPamoorama = this.myPamoorama; 452 // myPamoorama = pamoorama; 455 453 456 454 /* … … 584 582 if (typeof (myPamoorama.skipInit) == "undefined") return false; 585 583 if (myPamoorama.skipInit == false) { 586 // setTimeout("wait_Timer()",300);584 // setTimeout("wait_Timer()",300); 587 585 return false; 588 586 } … … 948 946 jQuery("#pamoorama_footer").css('width', new_width + "px"); 949 947 //==================================================== 950 951 //myPamoorama.continueInit(); 948 var info_pamoorama = jQuery("#pamoorama").infos(); 949 var info_pamoorama_outter = jQuery("#pamoorama_outter").infos(); 950 var info_pamoorama_inner = jQuery("#pamoorama_inner").infos(); 951 var info_pamoorama_footer = jQuery("#pamoorama_footer").infos(); 952 var info_pamoorama_frame = jQuery("#pamoorama_frame").infos(); 953 954 //myPamoorama.dragHandle.options.limit.x = { 0: 0, 1: 400 } 955 /* myPamoorama.frame.makeDraggable({ 956 modifiers: { x: 'left', y: false }, 957 limit: { x: [0, 200 - myPamoorama.frame.getStyle('width').toInt()] } 958 }); 959 */ 960 //myPamoorama.continueInit(); 952 961 //myPamoorama.skipInit = false; 962 //pamoorama_thumb 963 // img 964 info_frame = jQuery(myPamoorama.frame).infos(); 965 myPamoorama.ratio = new_width / 200; 966 jQuery("#pamoorama_frame").width(myPamoorama.ratio); 967 jQuery("#pamoorama_frame").css("width", myPamoorama.ratio + "px"); 968 953 969 954 970 jQuery("#linkNext").css({ width: "200px", overflow: "hidden" }); … … 1061 1077 var pos; 1062 1078 var set_p = false; 1079 1063 1080 fade_in = parseInt(fade_in); 1064 1065 jQuery("#theImage").animate( 1081 jQuery("#theImage").css({ opacity: 0, 1082 filter: 'alpha(opacity: 0)' 1083 1084 }); 1085 resize_ok = Resize(); 1086 1087 if (!resize_ok ) 1088 jQuery("#theImage").animate( 1066 1089 { opacity: 0 } 1067 1090 , 500, "swing", function () { 1068 if (Resize() == true) return; 1069 jQuery("#theImage").animate( 1070 { opacity: 0.0 } 1071 , fade_in, "swing", function () { 1072 if (Resize()) return 1073 opacite = set_opacite(1); 1074 jQuery("#theImage").animate( 1075 opacite 1076 , fade_in, "swing", function () { 1077 Resize(); 1091 resize_ok = Resize(); 1092 if (!resize_ok) 1093 jQuery("#theImage").animate( 1094 { opacity: 0 } 1095 , 1000, "swing", function () { 1096 resize_ok = Resize(); 1097 if (resize_ok) 1098 jQuery("#theImage").animate( 1099 { opacity: 1 } 1100 , 1000, "swing", function () { 1101 resize_ok = Resize(); 1102 }); 1103 }); 1104 1078 1105 }); 1079 });1080 });1106 1107 resize_ok = Resize(); 1081 1108 1082 1109 … … 1128 1155 1129 1156 } // function 1130 ); // ready1157 ); // ready 1131 1158 /* 1132 1159 * -
extensions/Autosize/js/conflit.js
r7736 r7740 8 8 var d1 = 0; 9 9 var init_tb = 0; 10 //$ = jQuery.noConflict(); 11 10 12 //=================================================== 11 13 function $(element, nc) { 14 12 15 return conflit(element, nc) 13 16 } 14 15 17 16 18 //=================================================== … … 36 38 return ret_element; 37 39 38 if (DEBUG=="true") 39 alert(retour); 40 return jQuery(element); 40 if (typeof (element) == "string") { 41 if (element.match("^#|.ui", "gi")) { 42 ret_element = jQuery(element); 43 return ret_element; 44 } 45 } else if (typeof (element) == "function") { 46 fn = element.toString(); 47 if (fn.match("#pwg", "gi")) { 48 ret_element = jQuery(element); 49 return ret_element; 50 } 51 } else if ( element==document) { 52 53 ret_element = jQuery(element); 54 return ret_element; 55 56 57 } 58 tp0 = typeof (element); 59 60 ret_element = jQuery(element); 61 if (DEBUG == "true") { 62 retour = (getStackTrace()); 63 alert("element : " + element + " retour : " + retour); 64 65 } 66 return ret_element ; 41 67 } 42 68 … … 48 74 return conflit(element, nc); 49 75 } 50 51 if (theme.match("gally", "gi")) 52 if (isFunction(inittoolbar)) { 53 if (typeof (currentTab) == "undefined") inittoolbar(); 54 else initializeImageMode("resize"); 55 }; 76 p0 = jQuery("#theImage"); 77 if (p0.length) { 78 if (theme.match("gally", "gi")) 79 if (isFunction(inittoolbar)) { 80 if (typeof (currentTab) == "undefined") inittoolbar(); 81 else initializeImageMode("resize"); 82 }; 56 83 57 84 p1 = jQuery("#theImage").css("position"); … … 59 86 //==== compatibilité Gally/LLGBO === 60 87 //--- passage relative ==> static ===/ 61 jQuery("#theImage").css( {position:"static",62 63 88 jQuery("#theImage").css({ position: "static", 89 opacity: '0', filter: 'alpha(opacity= 0)' 90 } 64 91 65 92 ); 66 93 jQuery("#imageToolBar").css({ position: "relative", top: "0px" }); 67 94 } 68 69 jQuery(window).resize();95 } 96 // jQuery(window).resize(); 70 97 71 98 }); … … 80 107 //========================================================= 81 108 (function ($2) { 109 ajax: function () {return jQuery.ajax; 110 } 111 return jQuery; 82 112 $2.fn.panorama2 = 83 113 function (height, width) { … … 91 121 92 122 jQuery.fn.extend({ 123 93 124 //---------------- luciano ------------------------------- 94 125 $Luciano: function (el, nc) { … … 246 277 return (""); 247 278 } 248 279 var fn1 = currentFunction.toString(); 249 280 currentFunction = currentFunction.caller; 250 281 //$family … … 268 299 } 269 300 //====================== 270 if (fn.match(RegExp("_footer|ie_ready|makeDraggable ", "gi"))) {301 if (fn.match(RegExp("_footer|ie_ready|makeDraggable|droppables", "gi"))) { 271 302 callstack = []; 272 303 callstack.push('paMOOramics');
Note: See TracChangeset
for help on using the changeset viewer.