Changeset 7805
- Timestamp:
- Nov 17, 2010, 5:04:11 PM (14 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 10 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r7741 r7805 131 131 * conflit ============================================= 132 132 */ 133 static public function cl_autosize_script_ 2($pictures)133 static public function cl_autosize_script_3() 134 134 { 135 global $template,$user,$conf,$picture;136 135 global $template,$user,$conf,$picture ,$page; 136 //userDefManage ?? 137 137 $my_path = basename(dirname(__FILE__)).'/' ; 138 138 $my_path = dirname(__FILE__).'/'; 139 $template->set_filenames( 139 $debug = isset($conf['debug']) ? $conf['debug'] : false ; 140 $cl_conflit = isset($conf['cl_conflit']) ? $conf['cl_conflit'] : 'false' ; 141 $template->set_filenames( 142 array('autosize_init'=>$my_path. "template/cl_conflit3.tpl" 143 ) 144 ); 145 146 147 $theme=$user['theme']; 148 149 $template->assign( 150 array( 151 'cl_conflit' => $cl_conflit , 152 'theme' => $theme , 153 'DEBUG' => $debug , 154 'AUTOSIZE_PATH' => AUTOSIZE_PATH) 155 ); 156 157 if( $page['body_id'] == 'theAdminPage' ) return ; 158 159 return $template->parse( 'autosize_init', false); 160 161 }// function cl_autosize_script_3 162 163 static public function cl_autosize_script_2() 164 { 165 global $template,$user,$conf,$picture ,$page; 166 //userDefManage ?? 167 $my_path = basename(dirname(__FILE__)).'/' ; 168 $my_path = dirname(__FILE__).'/'; 169 $debug = isset($conf['debug']) ? $conf['debug'] : false ; 170 $cl_conflit = isset($conf['cl_conflit']) ? $conf['cl_conflit'] : 'false' ; 171 $template->set_filenames( 140 172 array('autosize_init'=>$my_path. "template/cl_conflit.tpl" 141 173 ) 142 ); 174 ); 175 176 177 $theme=$user['theme']; 178 143 179 $template->assign( 144 array( 180 array('ma_page' => $page['body_id'], 181 'cl_conflit' => $cl_conflit , 182 'theme' => $theme , 145 183 'DEBUG' => $debug , 146 'AUTOSIZE_ ROOT' => AUTOSIZE_PATH)184 'AUTOSIZE_PATH' => AUTOSIZE_PATH) 147 185 ); 148 186 149 150 return $pictures; 151 } 187 if( $page['body_id'] == 'theAdminPage' ) return ; 188 189 return $template->parse( 'autosize_init', false); 190 191 }// function cl_autosize_script_2 152 192 //============================================================ 153 193 static public function cl_autosize_script() … … 158 198 $my_path = dirname(__FILE__).'/'; 159 199 $debug = isset($conf['debug']) ? $conf['debug'] : false ; 160 $template->func_known_script(array('id'=>'jquery', 'src'=>get_root_url().'themes/default/js/jquery.packed.js'), $smarty); 161 $template->func_known_script(array('id'=>'jquery', 'src'=>$my_path. '/js/jconflit.js'), $smarty); 162 163 164 165 166 $template->set_filenames( 200 $cl_conflit = isset($conf['cl_conflit']) ? $conf['cl_conflit'] : 'false' ; 201 $template->set_filenames( 167 202 array('autosize_init'=>$my_path. "template/conflit.tpl" 168 203 ) 169 ); 204 ); 205 206 170 207 $theme=$user['theme']; 208 171 209 $template->assign( 172 array('theme' => $theme , 210 array( 211 'cl_conflit' => $cl_conflit , 212 'theme' => $theme , 173 213 'DEBUG' => $debug , 174 'AUTOSIZE_ ROOT' => AUTOSIZE_PATH)214 'AUTOSIZE_PATH' => AUTOSIZE_PATH) 175 215 ); 216 176 217 if( $page['body_id'] == 'theAdminPage' ) return ; 218 177 219 return $template->parse( 'autosize_init', false); 178 220 … … 191 233 $data = array(); 192 234 235 193 236 194 237 return $content; -
extensions/Autosize/css/autosize.css
r7642 r7805 1 #theImage{opacity: 0.0 ; 2 filter: 'alpha(opacity:0)'; 1 #theImage{ 2 filter: 'alpha(opacity:0)'; 3 opacity: 0.0 ; 4 3 5 } 4 } 6 7 /* jQuery ui resizable */ 8 .ui-resizable { position: relative; } 9 .ui-wrapper { border: 0; } 10 .ui-wrapper input, .ui-wrapper textarea { border: 0; } 11 12 /* Global handle styles */ 13 .ui-resizable-handle { position: absolute; display: none; font-size: 0.1px; } 14 .ui-resizable .ui-resizable-handle { display: block; } 15 body .ui-resizable-disabled .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */ 16 body .ui-resizable-autohide .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */ 17 .ui-resizable-n { cursor: n-resize; height: 6px; width: 100%; top: 0px; left: 0px; background: transparent url(images/resizable-n.gif) no-repeat scroll center top; } 18 .ui-resizable-s { cursor: s-resize; height: 6px; width: 100%; bottom: 0px; left: 0px; background: transparent url(images/resizable-s.gif) no-repeat scroll center top; } 19 .ui-resizable-e { cursor: e-resize; width: 6px; right: 0px; top: 0px; height: 100%; background: transparent url(images/resizable-e.gif) no-repeat scroll right center; } 20 .ui-resizable-w { cursor: w-resize; width: 6px; left: 0px; top: 0px; height: 100%; background: transparent url(images/resizable-w.gif) no-repeat scroll right center; } 21 .ui-resizable-se { cursor: se-resize; width: 9px; height: 9px; right: 0px; bottom: 0px; background: transparent url(images/resizable-se.gif); } 22 .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: 0px; bottom: 0px; background: transparent url(images/resizable-sw.gif); } 23 .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: 0px; top: 0px; background: transparent url(images/resizable-nw.gif); } 24 .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: 0px; top: 0px; background: transparent url(images/resizable-ne.gif); } -
extensions/Autosize/js/Affiche_script.js
r7741 r7805 1 if (typeof jQuery == 'undefined') { 2 // jQuery n'est pas chargé 3 } else { 4 // jQuery est chargé 5 } 6 1 7 function Toggle_bp() { 2 8 cl_visible = !cl_visible; … … 13 19 jQuery('#bp_img_cla').attr('title', src_info); 14 20 jQuery('#bp_cla').attr('Stitle', src_info); 15 jQuery('#bp_cla').attr('Stip', " "); 16 17 jQuery(window).resize( );21 jQuery('#bp_cla').attr('Stip', " "); 22 jQuery().newResize(); 23 18 24 } 19 25 //================================================================================================= 20 21 function wait_Timer() { 22 23 jQuery(window).resize(); 24 26 new_width=0; 27 function Wait_Pamoorama() { 28 mypanorama = window.myPamoorama; 29 if (!mypanorama) setTimeout("Wait_Pamoorama()", 500); 30 if ( mypanorama.skipInit==false) setTimeout("Wait_Pamoorama()", 500); 31 32 if(! jQuery().newResize()) setTimeout("Wait_Pamoorama()", 500); 33 if ( myPamoorama.options.width == new_width ) return 25 34 } 35 36 37 //========================================================= 26 38 27 39 jQuery(document).ready( … … 35 47 jQuery("#Debug2").hide(); 36 48 } 37 var img_top = "0"; 38 39 var rapport = -1; 40 41 var llgboframe = jQuery("#gbo div:first"); 42 var marges_llgbo = 0; 49 50 img_top = "0"; 51 rapport = -1; 52 llgboframe = jQuery("#gbo div:first"); 53 marges_llgbo = 0; 54 pos = 0; 55 56 //========================================================= 57 43 58 if (llgboframe.length > 0) { 44 59 ll1 = jQuery(llgboframe).infos(); … … 46 61 marges_llgbo = (ll1.width - ll2.width) + ll2.borderwidth.left + ll2.borderwidth.right; 47 62 } 48 //========================================================= 49 50 63 51 64 //============================================================= 52 65 function cl_Timer() { … … 63 76 setTimeout("cl_Timer()", 500); 64 77 } 65 //============================================================= 66 function onPropertyChange(e) { 67 var el = e.srcElement; 68 var new_class = el.className; 69 ID = el.id; 70 Prop = e.propertyName.split("."); 71 Property = Prop[1]; 72 if (Property == "display") { 73 Valeur = parseInt(el.currentStyle[Property]); 74 if (Valeur == "block") { 75 76 77 } 78 } 79 return; 80 } 78 79 81 80 //============================================================ 82 81 /* … … 153 152 } 154 153 155 info_description.top = info_img.bottom + info_img.margin.bottom + info_img.borderwidth.bottom;154 info_description.top = Bandeau + info_img.top + info_img.bottom + info_img.margin.bottom + info_img.borderwidth.bottom; 156 155 //============================================================================= 157 156 info_gbo = jQuery("#gbo").infos(); … … 227 226 228 227 if (DEBUG == "true") { 229 230 /* jQuery("#Debug").text(jQuery("#Debug").text() + user_status); 231 232 233 info_description.width = "800"; 234 */ 235 jQuery("#Debug").css('display', 'block'); 228 jQuery("#Debug").css('display', 'block'); 229 jQuery("#Dragg").css('display', 'block'); 236 230 jQuery("#Debug1").show(); 237 jQuery("#Debug2").show(); 238 Bandeau_bas = info_description; 239 240 jQuery("#Debug").css({ opacity: 0.5, 231 jQuery("#Debug2").show(); 232 Bandeau_bas = info_description; 233 jQuery().affiche_debug({ debug: {texte:"Debug:Bandeau : " + Bandeau, 234 css:{ 235 opacity: 0.5, 241 236 filter: 'alpha(opacity:50)', 242 237 position: "absolute", 243 238 width: "800px", 244 239 border: "solid 1px green", 245 top: Bandeau + "px" 246 } );247 jQuery("#Debug").text("Debug:Bandeau : " + Bandeau);248 249 jQuery("#Debug1").css({opacity: 0.5,240 top: Bandeau + "px"} 241 }, 242 debug1:{ texte:"Debug1:Bandeau_bas top : " + Bandeau_bas.top + " height:" + Bandeau_bas.height, 243 css:{ 244 opacity: 0.5, 250 245 filter: 'alpha(opacity:50)', 251 246 position: "absolute", 252 247 border: "solid 1px green", 253 248 top: Bandeau_bas.top + "px", 254 width: ( 200) + "px",249 width: (800) + "px", 255 250 height: Bandeau_bas.height + "px" 256 }); 257 jQuery("#Debug1").text("Debug1:Bandeau_bas top : " + Bandeau_bas.top + " height:" + Bandeau_bas.height); 258 259 jQuery("#Debug2").css({ opacity: 0.5, 251 } 252 }, 253 debug2: { texte: "Debug2:Bandeau_bas bottom :" + Bandeau_bas.bottom , 254 css:{ 255 opacity: 0.5, 260 256 filter: 'alpha(opacity:50)', 261 257 position: "absolute", 262 258 left: '50px', 263 width: ( 300) + "px",259 width: (800) + "px", 264 260 border: "solid 1px green", top: Bandeau_bas.bottom + "px" 261 } 262 } 265 263 }); 266 jQuery("#Debug2").text("Debug2:Bandeau_bas bottom :" + Bandeau_bas.bottom); 264 267 265 268 266 } … … 283 281 */ 284 282 285 //============================================================//==286 jQuery("#pamoorama_outter").bind('resize', function () {287 // setTimeout("wait_Timer()", 200);288 289 })290 291 292 293 283 //============================================================ 294 jQuery("#iGMapsIcon").bind('resize', function () {295 jQuery().recentrage_widget();296 })297 jQuery("#icon_gmaps").bind('click', function () {298 jQuery().recentrage_widget();299 })300 301 302 303 304 305 284 306 285 /* jQuery */ 307 varimg_init = { height: img_height, width: img_width }; // taille initiale308 varimg_defaut = { height: scaled_height, width: scaled_width };309 varimg_reelle = { height: img_height, width: img_width };310 varimg_finale = { height: 0, width: 0 };311 varZone_Affichage = { height: 0, width: 0 };286 img_init = { height: img_height, width: img_width }; // taille initiale 287 img_defaut = { height: scaled_height, width: scaled_width }; 288 img_reelle = { height: img_height, width: img_width }; 289 img_finale = { height: 0, width: 0 }; 290 Zone_Affichage = { height: 0, width: 0 }; 312 291 313 292 //============================================================ 314 293 315 varInfo_the_page = jQuery("#the_page").infos();316 varZone_Affichage = jQuery("#theImage").infos();317 318 varBandeau = 0;319 varBandeau_t = Info_entete("theImage")294 Info_the_page = jQuery("#the_page").infos(); 295 Zone_Affichage = jQuery("#theImage").infos(); 296 297 Bandeau = 0; 298 Bandeau_t = Info_entete("theImage") 320 299 Bandeau = Bandeau_t.img_top; 321 varBandeau_bas = 0;300 Bandeau_bas = 0; 322 301 Bandeau_bas = Info_description("theImage"); 323 302 var old_window = { width: 0, height: 0 }; … … 331 310 332 311 jQuery(window).resize( 333 function (event, ui) { 334 if (event.type == "resize")335 336 337 myevent = arguments[0] = jQuery.event.fix(event || window.event);338 myevent.currentTarget = this;339 340 // Namespaced event handlers312 function (event, ui) { 313 event = event || window.event; 314 315 if (event.type == "resize") 316 { 317 myevent = arguments[0] = jQuery.event.fix(event || window.event); 318 myevent.currentTarget = this; 319 // Namespaced event handlers 341 320 var namespaces = myevent.type.split("."); 342 myevent.type = namespaces.shift(); 321 myevent.type = namespaces.shift(); 322 } 343 323 if (typeof (init_resize) == "undefined") init_resize = false; 344 324 … … 351 331 if (init_resize == false) 352 332 init_resize = Resize(); ; 353 354 355 356 333 }); 357 334 358 var chk = eval(user_status + "_enabled"); 359 function Resize(Force) { 360 361 if (!cl_visible == true) return true; 362 if (chk == "") return true; 335 //============== initialisation =================== 336 fade_in = parseInt(fade_in); 337 if (fade_in==0 ) 338 { 339 jQuery("#theImage").css({ 340 opacity: 1, 341 filter: 'alpha(opacity:100)'} 342 )}else{ 343 jQuery("#theImage").animate( 344 { opacity: 1 }, fade_in , "swing" 345 ); 346 } 347 348 var pos; 349 var set_p = false; 350 function Resize() { 351 352 jQuery().newResize(); 353 354 355 } 356 357 //=================================================== 358 elem=jQuery("#pamoorama").get(0) ; 359 if(elem) 360 { type="propertychange"; 361 handle=jQuery().onPropertyChange; 362 363 if (elem.addEventListener) {// Firefox, Opera, Google Chrome and Safari 364 elem.addEventListener('DOMAttrModified', handle, false); 365 } else if (elem.attachEvent) { 366 elem.attachEvent("on" + type, handle); 367 } 368 } 369 jQuery().newResize(); 370 371 372 }); // window.onload 373 /* Extension 374 * affiche_debug 375 376 * resize 377 * : 378 */ 379 //========================================================= 380 381 382 jQuery.fn.extend({ 383 //============================================================= 384 onPropertyChange: function (e) { 385 return ; 386 387 if(jQuery.browser.msie) 388 { var el = e.srcElement; 389 ID = el.id; 390 Prop = e.propertyName.split("."); 391 if(Prop.length < 2) return ; 392 Property = Prop[1]; 393 } 394 else 395 {ID =this.id ; 396 Prop = e.attrName ; 397 Property = e.newValue ; 398 } 399 jQuery().affiche_debug({ Dragg: {texte:"onPropertyChange : " + ID, 400 css:{ 401 opacity: 0.5, 402 filter: 'alpha(opacity:50)', 403 position: "absolute", 404 width: "500px", 405 border: "solid 1px green", 406 top: 130 + "px"} 407 } 408 }); 409 mypanorama = window.myPamoorama; 410 if (Property.match("width","gi")) { 411 412 413 if(!mypanorama) 414 setTimeout("wait_Pamoorama()", 500); 415 416 417 418 if(jQuery("#pamoorama_outter").length == 0) 419 { 420 elem=jQuery("#pamoorama").get(0); 421 type="propertychange"; 422 handle=jQuery().onPropertyChange; 423 424 if (elem.addEventListener) {// Firefox, Opera, Google Chrome and Safari 425 elem.addEventListener('DOMAttrModified', handle, false); 426 } else if (elem.attachEvent) { 427 elem.attachEvent("on" + type, handle); 428 } 429 setTimeout("wait_Timer()", 600); 430 } 431 else if( jQuery("#pamoorama_footer").length == 0) 432 setTimeout("wait_Pamoorama()", 600); 433 else if( jQuery("#pamoorama_frame").length == 0) 434 setTimeout("wait_Pamoorama()", 600); 435 } 436 return; 437 }, 438 /* 439 * recherche la plus grande image (hauteur ou largeur) 440 */ 441 Get_Img_Maxi: function (myobj) { 442 var w00 = 0; 443 var TheImg = null; 444 jQuery(myobj).each(function (i) { 445 w0 = img_reelle.width; 446 h0 = img_reelle.height; 447 if (h0 > w0) w0 = h0; 448 if (w0 > w00) { 449 if (!this.src.match(RegExp(".png", "g"))) 450 if (!this.src.match(RegExp(thumbnail, "g"))) { 451 TheImg = this; 452 w00 = w0; 453 } 454 455 } 456 }); 457 return TheImg; 458 }, 459 //============================================================ 460 affiche_debug: function (aff_infos) { 461 if (aff_infos.Dragg) { 462 jQuery("#Dragg").css( aff_infos.Dragg.css ); 463 jQuery("#Dragg").text(aff_infos.Dragg.texte); 464 } 465 if (aff_infos.debug) { 466 jQuery("#Debug").css( aff_infos.debug.css ); 467 jQuery("#Debug").text(aff_infos.debug.texte); 468 } 469 if (aff_infos.debug1) { 470 jQuery("#Debug1").css( aff_infos.debug1.css ); 471 jQuery("#Debug1").text(aff_infos.debug1.texte); 472 } 473 //=================================================== 474 if (aff_infos.debug2) { 475 jQuery("#Debug2").css( aff_infos.debug2.css ); 476 jQuery("#Debug2").text(aff_infos.debug2.texte); 477 } 478 }, 479 //==================================================== 480 newResize: function () { 481 482 //_____________________________________________________ 483 var chk = eval(user_status + "_enabled"); 484 if (!cl_visible == true) { return true; } 485 if (chk == "") { return true; } 486 363 487 //================================================================= 364 //var retour = (getStackTrace()); 365 // alert(retour); 366 //jQuery("#debug").text(retour); 367 // return 368 //================================================================= 369 488 370 489 var winwidth = jQuery(window).width(); 371 490 var winheight = jQuery(window).height(); … … 374 493 //=========================================================================== 375 494 376 495 377 496 var Type_Img = ""; 378 497 //====== détection du type d'images ====== … … 442 561 443 562 if (Type_Img == "pamoorama") { 444 var info_pamoorama = jQuery("#pamoorama").infos(); 563 564 mypanorama = window.myPamoorama; 565 //============================================================ 566 if (typeof (mypanorama) == "undefined") return false; 567 var myPamoorama = mypanorama; 568 if (typeof (myPamoorama.skipInit) == "undefined") return false; 569 // 570 571 if (myPamoorama.skipInit == false) { 572 setTimeout("Wait_Pamoorama()", 500); 573 return false; 574 } 575 576 var info_pamoorama = jQuery("#pamoorama").infos(); 445 577 var info_pamoorama_outter = jQuery("#pamoorama_outter").infos(); 446 578 var info_pamoorama_inner = jQuery("#pamoorama_inner").infos(); … … 448 580 var info_pamoorama_frame = jQuery("#pamoorama_frame").infos(); 449 581 TheImg = jQuery("#pamoorama"); 450 451 var myPamoorama = this.myPamoorama; 452 // myPamoorama = pamoorama; 582 obj = TheImg.get(0); 583 // myPamoorama = pamoorama; 453 584 454 585 /* … … 481 612 else IMG = Cadre; 482 613 483 TheImg2 = Get_Img_Maxi(IMG + " img");614 TheImg2 = jQuery().Get_Img_Maxi(IMG + " img"); 484 615 //================================================================= 485 616 if (TheImg2 == null) { … … 488 619 489 620 490 TheImg = Get_Img_Maxi("#theImage img");621 TheImg = jQuery().Get_Img_Maxi("#theImage img"); 491 622 } 492 623 } else { … … 522 653 // return; 523 654 524 525 TheImg = Get_Img_Maxi("#Panorama img");655 656 TheImg = jQuery().Get_Img_Maxi("#Panorama img"); 526 657 info_theImage = jQuery(TheImg).infos(); 527 658 info_the_page = jQuery("#the_page").infos(); … … 578 709 break 579 710 case "pamoorama": 580 //========================================================= 581 if (typeof (myPamoorama) == "undefined") return false; 582 if (typeof (myPamoorama.skipInit) == "undefined") return false; 583 if (myPamoorama.skipInit == false) { 584 // setTimeout("wait_Timer()",300); 585 return false; 586 } 711 712 img_reelle = { height: img_height, width: img_width }; 713 587 714 //========================================================= 588 715 img_reelle.height = myPamoorama.imageHeight; … … 672 799 673 800 674 801 675 802 img_top = Bandeau; 676 803 … … 866 993 jQuery(Cadre).width(Zone_Affichage.width); 867 994 868 //============= =================================================995 //============= Remise à l'échelle ======================= 869 996 870 997 img_finale.height = Image_height; … … 924 1051 } 925 1052 new_width = Zone_Affichage.width - marge_right - marge_left; 926 new_width -= 4;1053 927 1054 myPamoorama.options.width = new_width; 928 1055 info_theImage.height = img_reelle.height + info_pamoorama_footer.height … … 935 1062 }); 936 1063 jQuery("#pamoorama").width(new_width); 1064 937 1065 //==================================================== 938 jQuery("#pamoorama_outter").css({ 939 left: marge_left + "px", 940 height: myPamoorama.imageHeight + "px", 941 width: (new_width) + "px" 942 }); 943 jQuery("#pamoorama_outter").width(new_width); 944 //==================================================== 945 jQuery("#pamoorama_footer").width(new_width); 946 jQuery("#pamoorama_footer").css('width', new_width + "px"); 1066 info_pamoorama = jQuery("#pamoorama").infos(); 1067 img_finale.height=info_pamoorama.height-info_pamoorama_footer.height; 1068 img_finale.width=new_width; 1069 1070 jQuery("#pamoorama_outter").width(new_width) ; 1071 jQuery("#pamoorama_outter").height(info_pamoorama.height-info_pamoorama_footer.height); 1072 jQuery("#pamoorama_fouter").width(new_width) ; 1073 1074 jQuery("#pamoorama_outter").css({width:new_width+"px", 1075 height:info_pamoorama.height-info_pamoorama_footer.height+"px" 1076 } ); 1077 jQuery("#pamoorama_footer").css({width:new_width+"px"}) 947 1078 //==================================================== 948 1079 var info_pamoorama = jQuery("#pamoorama").infos(); … … 952 1083 var info_pamoorama_frame = jQuery("#pamoorama_frame").infos(); 953 1084 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();961 //myPamoorama.skipInit = false;962 //pamoorama_thumb963 // img964 1085 info_frame = jQuery(myPamoorama.frame).infos(); 965 1086 myPamoorama.ratio = new_width / 200; … … 970 1091 jQuery("#linkNext").css({ width: "200px", overflow: "hidden" }); 971 1092 jQuery("#linkPrev").css({ width: "200px", overflow: "hidden" }); 1093 1094 jQuery(TheImg).height(img_finale.height); 1095 jQuery(TheImg).width(img_finale.width); 1096 jQuery(TheImg).css("height", img_finale.height + "px "); 1097 jQuery(TheImg).css("width", img_finale.width + "px "); 1098 972 1099 zoom = Image_height / img_height; 973 1100 … … 979 1106 jQuery(TheImg).height(img_finale.height); 980 1107 jQuery(TheImg).width(img_finale.width); 981 jQuery(TheImg).css("height", img_finale.height + "px ");982 jQuery(TheImg).css("width", img_finale.width + "px ");1108 jQuery(TheImg).css("height", img_finale.height + "px "); 1109 jQuery(TheImg).css("width", img_finale.width + "px "); 983 1110 984 1111 } else { … … 986 1113 jQuery(TheImg).height(img_finale.height); 987 1114 jQuery(TheImg).width(img_finale.width); 988 jQuery(TheImg).css("height", img_finale.height + "px ");989 jQuery(TheImg).css("width", img_finale.width + "px ");1115 jQuery(TheImg).css("height", img_finale.height + "px "); 1116 jQuery(TheImg).css("width", img_finale.width + "px "); 990 1117 991 1118 } … … 993 1120 if (DEBUG == "true") { 994 1121 995 jQuery("#Debug1").css({ 996 position: "absolute", 997 top: Bandeau + "px", 998 textAlign: align_auto, 999 margin: "0px auto", 1000 1001 1002 border: "solid 1px red", 1003 1004 width: Image_width + "px", 1005 height: Image_height + "px" 1006 1122 jQuery().affiche_debug({ debug3: { texte: "Debug:Bandeau : " + Bandeau, 1123 css: { 1124 opacity: 0.5, 1125 filter: 'alpha(opacity:50)', 1126 position: "absolute", 1127 1128 } 1129 }, 1130 debug1: { texte: "Debug1:img_finale.height : " + img_finale.width + " height:" + img_finale.height, 1131 css: { 1132 opacity: 0.5, 1133 filter: 'alpha(opacity:50)', 1134 position: "absolute", 1135 1136 } 1137 }, 1138 debug2: { texte: "Debug2:Bandeau_bas bottom :" + Bandeau_bas.bottom, 1139 css: { 1140 opacity: 0.5, 1141 filter: 'alpha(opacity:50)', 1142 position: "absolute", 1143 1144 } 1145 } 1007 1146 }); 1008 jQuery("#Debug1").text("img_finale.heightt : " + img_finale.height); 1009 //=================================================== 1010 jQuery("#Debug2").css({ position: "absolute", 1011 left: Zone_Affichage.left + 'px', 1012 border: "solid 1px green", 1013 top: Zone_Affichage.top + "px", 1014 width: Zone_Affichage.width / 2 + "px", 1015 height: Zone_Affichage.height + "px" 1016 1017 }); 1018 jQuery("#Debug2").text("info_Cadre.height : " + info_Cadre.height); 1147 1019 1148 } 1020 1149 jQuery("#navThumbPrev").css({ overflow: "hidden" … … 1062 1191 1063 1192 } 1064 // 1065 if ( !pos) pos = jQuery("#copyright").infos();1193 // --- rglage de la hauteur de page en fonction du copyright----------- 1194 if (typeof (pos) == "undefined") pos = jQuery("#copyright").infos(); 1066 1195 if (pos != jQuery("#copyright").infos()) 1067 1196 pos = jQuery("#copyright").infos(); 1068 1197 if (pos.top > 100) jQuery("#the_page").height(pos.top); 1069 jQuery("#theImage").animate( 1070 { opacity: 1 } 1071 , fade_in, "swing" 1072 ); 1073 return true; 1074 1075 }; // Resize(); 1198 return true; 1199 1200 1201 1202 1203 1204 //_____________________________________________________ 1205 } // Resize(); 1206 1207 1076 1208 //====================================================================== 1077 var pos; 1078 var set_p = false; 1079 1080 fade_in = parseInt(fade_in); 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( 1089 { opacity: 0 } 1090 , 500, "swing", function () { 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 1105 }); 1106 1107 resize_ok = Resize(); 1108 1109 1110 1111 /* 1112 * recherche la plus grande image (hauteur ou largeur) 1113 */ 1114 1115 1116 function Get_Img_Maxi(myobj) { 1117 var w00 = 0; 1118 var TheImg = null; 1119 jQuery(myobj).each(function (i) { 1120 w0 = img_reelle.width; 1121 h0 = img_reelle.height; 1122 if (h0 > w0) w0 = h0; 1123 if (w0 > w00) { 1124 if (!this.src.match(RegExp(".png", "g"))) 1125 if (!this.src.match(RegExp(thumbnail, "g"))) { 1126 TheImg = this; 1127 w00 = w0; 1128 } 1129 1130 } 1131 }); 1132 return TheImg; 1133 } 1134 }); // window.onload 1135 /* Extension 1136 * recentrage_widget: 1137 * : 1138 */ 1139 //========================================================= 1140 jQuery.fn.extend({ 1141 recentrage_widget: function () { 1142 jQuery('html,body').stop().scrollTop(0); 1143 jQuery('html,body').stop().scrollLeft(0); 1144 jQuery(".ui-widget-overlay").css("opacity", "0.75"); 1145 1146 l1 = (jQuery(window).width() - (jQuery(".gmapsPopup").width())) / 2; 1147 h1 = (jQuery(window).height() - (jQuery(".gmapsPopup").height())) / 2; 1148 1149 jQuery(".gmapsPopup").css("left", l1 + "px"); 1150 jQuery(".gmapsPopup").css("top", h1 + "px"); 1151 1152 } 1153 //========================================================= 1209 1210 1154 1211 }); // fin extend 1155 1212 1156 1213 } // function 1157 ); // ready 1158 /* 1159 * 1160 */ 1161 jQuery.extend(jQuery.expr[':'], { 1162 // Nom du sélecteur personnalisé 1163 Description: function (a) { 1164 n = jQuery(a).infos(); 1165 return a; 1166 1167 } 1168 }); 1169 1170 function set_opacite(opac) { 1171 if (jQuery.browser.safari) { 1172 1173 return { opacity: opac }; 1174 1175 1176 } else if (jQuery.browser.msie) { 1177 return { opacity: opac }; 1178 Opacite = 'alpha(opacity=' + opac * 100 + ')'; 1179 return { filter: Opacite }; 1180 1181 } else if (jQuery.browser.opera) { 1182 return { opacity: opac }; 1183 1184 1185 } else if (jQuery.browser.mozilla) { 1186 1187 return { opacity: opac }; 1188 1189 } 1190 1191 1192 } 1214 ); 1215 -
extensions/Autosize/js/conflit.js
r7741 r7805 8 8 var d1 = 0; 9 9 var init_tb = 0; 10 //$ = jQuery.noConflict(); 11 10 var dom = {}; 11 if (typeof jQuery == 'undefined') { 12 alert(" jQuery n'est pas chargé"); 13 } else { 14 // jQuery est chargé 15 } 16 17 function $(element, nc0) { 18 a = conflit(element, nc0); 19 return a; 20 } 21 22 23 12 24 //=================================================== 13 function $(element, nc) { 14 15 return conflit(element, nc) 16 } 17 25 26 var time_out = 0; 18 27 //=================================================== 28 29 nbpa = 0; 30 var Fn; 19 31 function conflit(element, nc) { 20 var retour = (getStackTrace()); 21 22 var ret_element = ""; 23 if (retour.match(RegExp("jQuery", "gi"))) { 24 ret_element = jQuery(element); 25 } 32 //--- cl_conflit 33 var retour = (getStackTrace()); 34 Fn=retour.fn ; 35 retour=retour.state ; 36 37 n=document ; 38 v=window; 39 var ret_element = ""; 40 if (retour.match(RegExp("jQuery", "gi"))) { 41 ret_element = jQuery(element); 42 } 26 43 else if (retour.match(RegExp("rv_gmaps", "gi"))) { 27 44 ret_element = jQuery().$Prototype(element); … … 29 46 ret_element = jQuery(element); 30 47 } else if (retour.match(RegExp("pamooramics", "gi"))) { 31 ret_element = jQuery().$Pamoorama(element); 48 49 ret_element = jQuery().$Pamoorama(element); 50 51 if (retour.match(RegExp("init_", "gi"))) { 52 53 } 54 nbpa +=1 ; 55 32 56 } else if (retour.match(RegExp("luciano", "gi"))) { 33 57 ret_element = jQuery().$Luciano(element); … … 47 71 } else if (typeof (element) == "function") { 48 72 fn = element.toString(); 49 if (fn.match("#pwg ", "gi")) {73 if (fn.match("#pwg|open", "gi")) { 50 74 ret_element = jQuery(element); 51 75 return ret_element; … … 67 91 } 68 92 return ret_element ; 69 } 70 71 //============================================================ 93 } // conflit(element,nc) 94 95 96 97 98 72 99 jQuery(document).ready( 73 100 function (jQuery) { 74 101 jQuery(window).load(function () { 75 function $(element, nc) { 76 return conflit(element, nc); 102 //============================================================ 103 jQuery("#icon_gmaps").bind('click', function () { 104 105 jQuery('html,body').stop().scrollTop(0); 106 jQuery('html,body').stop().scrollLeft(0); 107 jQuery(".ui-widget-overlay").css("opacity", "0.75"); 108 109 l1 = (jQuery(window).width() - (jQuery(".gmapsPopup").width())) / 2; 110 h1 = (jQuery(window).height() - (jQuery(".gmapsPopup").height())) / 2; 111 112 jQuery(".gmapsPopup").css("left", l1 + "px"); 113 jQuery(".gmapsPopup").css("top", h1 + "px"); 114 }) 115 //============================================================= 116 function $(element, nc0) { 117 a = conflit(element, nc0); 118 return a; 77 119 } 78 120 p0 = jQuery("#theImage"); 79 121 if (p0.length) { 122 123 //====================================================== 80 124 if (theme.match("gally", "gi")) 81 if ( isFunction(inittoolbar)) {125 if (jQuery.isFunction(inittoolbar)) { 82 126 if (typeof (currentTab) == "undefined") inittoolbar(); 83 127 else initializeImageMode("resize"); … … 88 132 //==== compatibilité Gally/LLGBO === 89 133 //--- passage relative ==> static ===/ 90 jQuery("#theImage").css({ position: "static", 91 opacity: '0', filter: 'alpha(opacity= 0)' 134 jQuery("#theImage").css({ position: "static" 92 135 } 93 136 94 );137 ); 95 138 jQuery("#imageToolBar").css({ position: "relative", top: "0px" }); 96 139 } … … 99 142 100 143 }); 144 //============================================================= 145 146 // $ = _$2; ; 147 101 148 102 149 }) 103 150 ; 104 151 105 function isFunction(fn) { 106 tpfn = typeof (fn); 107 if (tpfn == "function") return true; 108 } 152 153 109 154 //========================================================= 110 (function ($2) { 111 ajax: function () {return jQuery.ajax; 112 } 113 return jQuery; 114 $2.fn.panorama2 = 115 function (height, width) { 116 var src =jQuery(this); 117 return ; 118 } 119 155 ; (function ($) { 120 156 121 157 })(jQuery); 158 //mootools 159 /* */ 160 _$2 = $; 161 162 function $defined(A) { 163 $= _$2 ; // ; 164 return A != undefined; 165 } 166 167 168 122 169 123 170 124 171 jQuery.fn.extend({ 125 126 //---------------- luciano ------------------------------- 127 $Luciano: function (el, nc) { 128 return document.id(el, nc, this.document); 129 }, 130 //=============== PaMOOramics =========================== 131 132 $Pamoorama: function (B) { 133 if (!B) { 134 if (typeof (B) == "boolean") return null; 135 136 } 172 173 //---------------- luciano ------------------------------- 174 $Luciano: function (el, nc) { 175 return document.id(el, nc, this.document); 176 }, 177 //=============== PaMOOramics =========================== 178 179 $Pamoorama: function (B) { 180 181 182 if (!B) { 183 if (typeof (B) == "boolean") return null; 184 185 } 137 186 138 139 140 141 142 187 try { 188 if (B.htmlElement) { 189 return Garbage.collect(B); 190 } 191 } catch (e) { 143 192 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 193 } 194 195 if ([window, document].contains(B)) { return B; } 196 var A = $type(B); 197 if (A == "string") { B = document.getElementById(B); A = (B) ? "element" : false; } 198 if (A != "element") { 199 return null; 200 } 201 if (B.htmlElement) { return Garbage.collect(B); } 202 if (["object", "embed"].contains(B.tagName.toLowerCase())) { return B; } 203 $extend(B, Element.prototype); 204 B.htmlElement = function () { }; 205 try { return Garbage.collect(B); } catch (e) { 206 return; 207 } 208 209 }, 210 //=================================================== 211 $Prototype: function (element) { 212 //======== prototype.js ===================== 213 if (arguments.length > 1) { 214 for (var i = 0, elements = [], length = arguments.length; i < length; i++) 215 elements.push($(arguments[i])); 216 return elements; 217 } 218 if (typeof element == "string") 219 element = document.getElementById(element); 220 221 return Element.extend(element); 222 223 try { 224 new_element = Element.extend(element); 225 } catch (e) { 226 return new_element; 227 } 228 return new_element; 229 } 230 //========================================================= 182 231 }); // fin extend 183 232 … … 202 251 var e_message = e.message; 203 252 var e_stack = e.stack; 204 if (e_stack) { //Firefox Opera 3.6205 //=== test fichier source =============206 var lines = e.stack.split("\n");207 for (var i = 0, len = lines.length; i < len; i++) {208 var Src_Match = lines[i];209 if (Src_Match.match(/conflit.js/)) {210 //211 } else {212 if (Src_Match.match(/^\s*[A-Za-z0-9\-_\$]+\(/)) {213 callstack.push(Src_Match); //php?214 } else {215 callstack.push(Src_Match);216 }217 if (Src_Match.match("GMaps|applyMap|markupMaps|applyMarkers")) {218 callstack.push("GMaps");219 isCallstackPopulated = true;220 break;221 }222 if (Src_Match.match("rv_gmaps", "gi")) {223 callstack.push("rv_gmaps");224 isCallstackPopulated = true;225 break;226 }227 if (Src_Match.match("paMOOramics")) {228 isCallstackPopulated = true;229 callstack.push("paMOOramics");230 break;231 }232 if (Src_Match.match("Luciano","gi")) {233 callstack.push("Luciano");234 isCallstackPopulated = true;235 break;236 }237 if (Src_Match.match("main")) {238 alert(Src_Match)239 callstack.push("main");240 isCallstackPopulated = true;241 break;242 }243 244 if (Src_Match.match("jQuery")) { 245 callstack.push("jQuery");246 isCallstackPopulated = true;247 break; 248 }249 }250 } 251 //callstack.shift();253 if (e_stack) { //Firefox Opera 3.6 254 //=== test fichier source ============= 255 var lines = e.stack.split("\n"); 256 for (var i = 0, len = lines.length; i < len; i++) { 257 var Src_Match = lines[i]; 258 if (Src_Match.match(/conflit.js/)) { 259 // 260 } else { 261 if (Src_Match.match(/^\s*[A-Za-z0-9\-_\$]+\(/)) { 262 callstack.push(Src_Match); //php? 263 } else { 264 callstack.push(Src_Match); 265 } 266 if (Src_Match.match("GMaps|applyMap|markupMaps|applyMarkers")) { 267 callstack.push("GMaps"); 268 isCallstackPopulated = true; 269 break; 270 } 271 if (Src_Match.match("rv_gmaps", "gi")) { 272 callstack.push("rv_gmaps"); 273 isCallstackPopulated = true; 274 break; 275 } 276 if (Src_Match.match("paMOOramics")) { 277 isCallstackPopulated = true; 278 callstack.push("paMOOramics"); 279 break; 280 } 281 if (Src_Match.match("Luciano","gi")) { 282 callstack.push("Luciano"); 283 isCallstackPopulated = true; 284 break; 285 } 286 if (Src_Match.match("main")) { 287 alert(Src_Match) 288 callstack.push("main"); 289 isCallstackPopulated = true; 290 break; 291 } 292 if (Src_Match.match("jQuery")) { 293 callstack.push("jQuery"); 294 isCallstackPopulated = true; 295 break; 296 } 297 } 298 } 299 //callstack.shift(); 300 isCallstackPopulated = false; 252 301 } 253 302 if (window.opera && e.message && isCallstackPopulated == false) { … … 264 313 } 265 314 callstack.push(entry); 266 isCallstackPopulated = true;315 //isCallstackPopulated = true; 267 316 } 268 317 } … … 276 325 callstack = []; 277 326 all_functions = []; 327 state = ""; 278 328 if (currentFunction == null) { 279 329 return (""); 280 330 } 281 var fn1 = currentFunction.toString(); 331 states = []; 332 var fn1 = currentFunction.toString(); // fonction d'appel local (conflit) 333 334 currentFunction = currentFunction.caller; 282 335 currentFunction = currentFunction.caller; 283 336 //$family 337 284 338 while (currentFunction) { 285 339 var fn = currentFunction.toString(); 286 287 288 var fname = fn.substring(fn.indexOf("function") + 8, fn.indexOf("(")) || " "; 289 if (fname != " $") { 340 all_functions.push(fn); 341 var fname = fn.substring(fn.indexOf("function") + 8, fn.indexOf("(")) || " "; 342 if (fname != " ") { 343 344 jQuery.noop; 345 if (states.length>0) break; 346 347 // if (fname != " $") callstack.push(fn); 348 } if (fname != "") { 349 jQuery.noop; 350 // if (fname != " $") callstack.push(fn); 351 } 290 352 callstack.push(fn); 291 // if (fname != " $") callstack.push(fn);353 292 354 if (fn.match(RegExp("jquery|switchmenu|switchTabs|switchInterface|gally|initializeImageMode", "gi"))) { 293 callstack = []; 294 callstack.push('jQuery'); 295 break; 355 states.push('jQuery'); 356 357 } 358 if (fn.match(RegExp("dialog..open", "gi"))) { 359 states.push('GMaps'); 360 296 361 } 297 362 if (fn.match(RegExp("GMaps|applyMap|markupMaps|applyMarkers", "gi"))) { 298 callstack = []; 299 callstack.push('GMaps'); 300 break; 363 states.push('GMaps'); 364 301 365 } 302 366 //====================== 303 367 if (fn.match(RegExp("_footer|ie_ready|makeDraggable|droppables", "gi"))) { 304 callstack = []; 305 callstack.push('paMOOramics');306 break;368 369 states.push('paMOOramics'); 370 307 371 } 308 372 if (fn.match(RegExp("observe|responder|stopobserving|fireContentLoadedEvent", "gi"))) { 309 callstack = []; 310 callstack.push('rv_gmaps'); 311 break; 373 states.push('rv_gmaps'); 374 312 375 } 313 376 //? bubble 314 Expression = new RegExp("\ $", "gi")377 Expression = new RegExp("\\$", "gi") 315 378 if (fn.match(Expression)) { 316 379 if (fn.match(RegExp("rateForm", "gi"))) { 317 callstack = []; 318 callstack.push('Luciano');319 break;380 381 states.push('Luciano'); 382 320 383 } 321 384 } 322 385 if (fn.match(RegExp("(splat|buildFrameWork|photoNext)", "gi"))) { //luciano 323 callstack = []; 324 callstack.push('Luciano'); 325 break; 326 } 327 328 } 386 387 states.push('Luciano'); 388 389 } 390 391 if (all_functions.length > 50) break; 392 329 393 330 394 currentFunction = currentFunction.caller; … … 332 396 333 397 } 334 335 return callstack.join('\n'); 336 } 398 state = states.join('\n'); 399 Fn = all_functions; 400 return { state:state , fn:callstack.join('\n') }; 401 } 402 //==================================== 403 jQuery(window).load(function () { 404 405 a= jQuery(':Description'); 406 407 408 }); 409 410 411 412 413 //============================================== 414 jQuery.extend(jQuery.expr[':'], { 415 // Nom du sélecteur personnalisé 416 Description: function (a) { 417 n = jQuery(a).infos(); 418 if (n.id != "") { 419 //alert("<" + n.nodeName +" id= " + n.id + " >") ; 420 } 421 if (n.nodeName == "SCRIPT") 422 if (a.src == "") { 423 Match = jQuery(a).html(); 424 /* 425 if ( Match.match(new RegExp("jQuery", "gi") )) { 426 alert(n.id + n.nodeName + a.outerHTML ) ; 427 } 428 if ( Match.match(new RegExp("ajax", "gi") )) { 429 alert(n.id + n.nodeName + a.outerHTML ) ; 430 } 431 */ 432 if (Match.match(new RegExp("\\$", "gi"))) { 433 434 if (Match.match(new RegExp("ajax", "gi"))) { 435 alert(n.id + n.nodeName + a.outerHTML); 436 437 } 438 } 439 if (Match.match(new RegExp("pamoorama", "ig"))) { 440 441 // alert(n.id + n.nodeName + a.innerHTML); 442 443 } 444 } 445 446 return a; 447 448 } 449 }); 450 451 jQuery("#pamoorama").bind("load", { foo: "bar" }, function release(event) { 452 //setTimeout("end_Timer()", 100); 453 454 // event.stopPropagation(); 455 }) 456 function end_Timer() { 457 alert("load pamoorama"); 458 459 } 460 jQuery().ajaxSuccess(function (evt, request, settings) { 461 alert("ok ajax"); 462 463 }); 464 function save_framework(page) { 465 466 _$2 = window.$; // Pour $.ajax sauvegarge ; 467 if (page == "theCategoryPage") 468 $ = jQuery; 469 else { 470 tpe = jQuery.browser.msie || false; 471 if (tpe == true) { 472 473 // $ = jQuery; // ---> ajax 474 }else{ 475 $ = jQuery; // ---> ajax 476 } 477 478 } 479 480 } -
extensions/Autosize/js/jquery.dimensions.js
r7702 r7805 96 96 borderwidth: borderwidth, 97 97 padding: padding, 98 margin: margin 98 margin: margin, id: "", nodeName: "" 99 99 }; 100 100 ; 101 101 if (elem) { 102 id = ""; nodeName = ""; 103 if (elem.id) id = elem.id; 104 if (elem.nodeName) nodeName = elem.nodeName; 105 102 106 if (elem == window) { 103 107 Position = { top: 0, left: 0 }; … … 113 117 width = jQuery(elem).outerWidth(); 114 118 height = jQuery(elem).outerHeight(); 115 116 117 118 borderwidth.left = jQuery(elem).Get_Val_int(jQuery(elem).css("borderLeftWidth"));119 borderwidth.right = jQuery(elem).Get_Val_int(jQuery(elem).css("borderRightWidth"));120 borderwidth.top = jQuery(elem).Get_Val_int(jQuery(elem).css("borderTopWidth"));121 borderwidth.bottom = jQuery(elem).Get_Val_int(jQuery(elem).css("borderBottomWidth"));122 try {123 borderwidth.width = jQuery(elem).Get_Val_int(jQuery(elem).css("borderWidth"));124 } catch (e) {125 borderwidth.width = '"' + borderwidth.left + ' ' + borderwidth.top + ' ' + borderwidth.right + ' ' + borderwidth.bottom + '"';126 }127 128 129 margin.left = jQuery(elem).Get_Val_int(jQuery(elem).css("marginLeft"));130 margin.right = jQuery(elem).Get_Val_int(jQuery(elem).css("marginRight"));131 margin.top = jQuery(elem).Get_Val_int(jQuery(elem).css("marginTop"));132 margin.bottom = jQuery(elem).Get_Val_int(jQuery(elem).css("marginBottom"));133 try {134 margin.margin = jQuery(elem).Get_Val_int(jQuery(elem).css("margin"));135 } catch (e) {136 margin.margin = '"' + margin.left + ' ' + margin.top + ' ' + margin.right + ' ' + margin.bottom + '"';137 }138 139 padding.left = jQuery(elem).Get_Val_int(jQuery(elem).css("paddingLeft"));140 padding.right = jQuery(elem).Get_Val_int(jQuery(elem).css("paddingRight"));141 padding.top = jQuery(elem).Get_Val_int(jQuery(elem).css("paddingTop"));142 padding.bottom = jQuery(elem).Get_Val_int(jQuery(elem).css("paddingBottom"));143 try { padding.padding = jQuery(elem).Get_Val_int(jQuery(elem).css("padding")); } catch (e) {144 padding.padding = '"' + padding.left + ' ' + padding.top + ' ' + padding.right + ' ' + padding.bottom + '"';145 }146 }119 120 121 122 borderwidth.left = jQuery(elem).Get_Val_int(jQuery(elem).css("borderLeftWidth")); 123 borderwidth.right = jQuery(elem).Get_Val_int(jQuery(elem).css("borderRightWidth")); 124 borderwidth.top = jQuery(elem).Get_Val_int(jQuery(elem).css("borderTopWidth")); 125 borderwidth.bottom = jQuery(elem).Get_Val_int(jQuery(elem).css("borderBottomWidth")); 126 try { 127 borderwidth.width = jQuery(elem).Get_Val_int(jQuery(elem).css("borderWidth")); 128 } catch (e) { 129 borderwidth.width = '"' + borderwidth.left + ' ' + borderwidth.top + ' ' + borderwidth.right + ' ' + borderwidth.bottom + '"'; 130 } 131 132 133 margin.left = jQuery(elem).Get_Val_int(jQuery(elem).css("marginLeft")); 134 margin.right = jQuery(elem).Get_Val_int(jQuery(elem).css("marginRight")); 135 margin.top = jQuery(elem).Get_Val_int(jQuery(elem).css("marginTop")); 136 margin.bottom = jQuery(elem).Get_Val_int(jQuery(elem).css("marginBottom")); 137 try { 138 margin.margin = jQuery(elem).Get_Val_int(jQuery(elem).css("margin")); 139 } catch (e) { 140 margin.margin = '"' + margin.left + ' ' + margin.top + ' ' + margin.right + ' ' + margin.bottom + '"'; 141 } 142 143 padding.left = jQuery(elem).Get_Val_int(jQuery(elem).css("paddingLeft")); 144 padding.right = jQuery(elem).Get_Val_int(jQuery(elem).css("paddingRight")); 145 padding.top = jQuery(elem).Get_Val_int(jQuery(elem).css("paddingTop")); 146 padding.bottom = jQuery(elem).Get_Val_int(jQuery(elem).css("paddingBottom")); 147 try { padding.padding = jQuery(elem).Get_Val_int(jQuery(elem).css("padding")); } catch (e) { 148 padding.padding = '"' + padding.left + ' ' + padding.top + ' ' + padding.right + ' ' + padding.bottom + '"'; 149 } 150 } 147 151 results = { 148 152 position: Position, … … 155 159 borderwidth: borderwidth, 156 160 margin: margin, 157 padding: padding 161 padding: padding, 162 id: id, 163 nodeName: nodeName 158 164 }; 159 165 -
extensions/Autosize/main.inc.php
r7740 r7805 15 15 $autosize_controler = new autosize_controler(); 16 16 17 add_event_handler('get_admin_plugin_menu_links', array(&$autosize_controler,'cl_autosize_admin') ); 18 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_affiche'), 40 ); 17 add_event_handler('get_admin_plugin_menu_links', array(&$autosize_controler,'cl_autosize_admin') ); 18 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_affiche'), 40 ); 19 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script'), EVENT_HANDLER_PRIORITY_NEUTRAL+20 , 2); 19 20 20 //====================================================================================================== 21 //add_event_handler('render_element_content', array(&$obj, 'paMOOramics_load'),41,2); 22 // add_event_handler('render_element_content', array(&$autosize_controler, 'cl_autosize_script'),42,2 ); 23 // add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script'),20 ); 21 add_event_handler('loc_end_page_tail',array(&$autosize_controler, 'cl_autosize_script_2'), EVENT_HANDLER_PRIORITY_NEUTRAL ); 24 22 25 //========================== en tete ============================================================== 26 add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script'),40 ); 23 //add_event_handler('loc_end_index',array(&$autosize_controler, 'cl_autosize_script_3'), EVENT_HANDLER_PRIORITY_NEUTRAL ); 24 25 //---- Categorie --gmapsMarkup.packed.js- 26 // if (k[c]) { p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]) } } 27 // p = p.replace(new RegExp("\\$", "ig"), "jQuery"); return p } 27 28 28 //---- Categorie --- 29 //add_event_handler('loc_begin_index', array(&$autosize_controler, 'cl_autosize_script'),51 ); 30 31 // add_event_handler('load_profile_in_template', array(&$autosize_controler,'cl_autosize_script'),40 ); 32 33 // add_event_handler('loc_end_index_thumbnails', array(&$autosize_controler,'cl_autosize_script'),40 ); 34 29 35 30 ?> -
extensions/Autosize/template/autosize.tpl
r7725 r7805 1 {* $Id: autosize/template/picture.tpl *} 2 3 {html_head} 4 <!-- autosize/template/picture.tpl --> 1 {html_head} {* $Id: autosize/template/autosize.tpl *} 2 <!-- autosize/template/autosize.tpl --> 5 3 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js" now=1} 6 {known_script id=" conflit_script" src=$AUTOSIZE_PATH|@cat:"js/conflit.js"}7 {known_script id="dimensions" src=$AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js"} 4 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} 5 {known_script id="dimensions" src=$AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js"} 8 6 9 {*jQuery is always available by default*}10 7 11 8 <script type="text/javascript"> 12 var fade_in = '{$fade_in}'; 13 9 var fade_in = '{$fade_in}'; 14 10 var cl_visible = "{$cl_visible}" =="true"; 15 11 var DEBUG = '{$DEBUG}'; … … 56 52 57 53 {known_script id="Affiche_script" src=$AUTOSIZE_PATH|@cat:"js/Affiche_script.js"} 58 59 <!-- << autosize/template/ picture.tpl -->54 <link href="{$AUTOSIZE_PATH}css/autosize.css" rel="stylesheet" type="text/css" /> 55 <!-- << autosize/template/autosize.tpl --> 60 56 {/html_head} 61 57 … … 63 59 {if $DEBUG == "true"} 64 60 {assign var="visible" value="block"} 65 66 67 68 <!--- autosize/template/picture.tpl body ---> 61 <!--- autosize/template/autosize.tpl body ---> 62 <div id="Dragg" align=center style="color:black;z-index:2000;position:absolute; background-color:Beige; top:100px;left:0px;width:300px;margin:auto;"></div> 69 63 <div id="Debug" align=center style="color:black;z-index:2000;position:absolute; background-color:Beige; top:0px;left:0px;width:800px;margin:auto;"></div> 70 64 <div id="Debug1" align=center style="color:black;z-index:2000;position:absolute; background-color:Beige; top:0px;left:0px;width:800px;margin:auto;"></div> 71 65 <div id="Debug2" align=center style="color:black;z-index:2000;position:absolute; background-color:Beige; top:0px;left:0px;width:800px;margin:auto;"></div> 72 66 {else} 73 {assign var="visible" value="none"} {/if}<!-- << autosize/template/ picture.tpl body -->67 {assign var="visible" value="none"} {/if}<!-- << autosize/template/autosize.tpl body --> -
extensions/Autosize/template/cl_conflit.tpl
r7669 r7805 1 1 {html_head} 2 <!--- autosize/cl_confilt.tpl (before) ---> 2 3 3 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js" } 4 4 {known_script id="conflit_script" src=$AUTOSIZE_PATH|@cat:"js/conflit.js"} 5 <!---FIN auto/cl_confilt.tpl (before) ---> {/html_head} 6 <script language=javascript type="text/javascript"> 7 function $(element, nc) {delim} 8 return conflit(element, nc) 9 } 5 {/html_head} 10 6 7 <!--- {$AUTOSIZE_PATH} template/cl_confilt.tpl (body) ---> 8 <script type="text/javascript"> 9 10 save_framework('{$ma_page}'); 11 11 12 </script> 12 13 <!---FIN {$AUTOSIZE_PATH} template/cl_confilt.tpl (body) ---> -
extensions/Autosize/template/conflit.tpl
r7740 r7805 1 1 {html_head} 2 <!--- Autosize/template/confilt.tpl (before) ---> 3 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js" } 4 {known_script id="conflit_script" src=$AUTOSIZE_ROOT|@cat:"js/conflit.js"} 5 <!---FIN Autosize/template/confilt.tpl (before) ---> 6 {/html_head} 2 <!--- Autosize/template/confilt.tpl (head) ---> 3 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js" now=1} 4 {known_script id="dimensions" src=$AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js"} 5 {if $cl_conflit == 'true'} 6 7 {known_script id="conflit_script" src=$AUTOSIZE_PATH|@cat:"js/conflit.js"} 8 {/if} 9 10 7 11 <script type="text/javascript"> 8 12 var DEBUG = '{$DEBUG}'; 9 13 var theme = '{$theme}'; 10 </script> 14 </script> 15 <!---FIN Autosize/template/confilt.tpl (/head) ---> 16 {/html_head} 17 <!--- Autosize/template/confilt.tpl (body) ---> 18 19 <!---FIN Autosize/template/confilt.tpl (body) ---> -
extensions/Autosize/template/picture.tpl
r7536 r7805 3 3 cursor:pointer; 4 4 } 5 navThumb{ldelim} 6 height:auto 7 } 5 8 6 body{ldelim} overflow:visible; overflow-x:visible; overflow-y:visible 9 7 }
Note: See TracChangeset
for help on using the changeset viewer.