Changeset 7805


Ignore:
Timestamp:
Nov 17, 2010, 5:04:11 PM (13 years ago)
Author:
cljosse
Message:

[Autosize][beta] save

Location:
extensions/Autosize
Files:
10 added
10 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/autosize.inc.php

    r7741 r7805  
    131131 * conflit =============================================
    132132 */
    133  static public function cl_autosize_script_2($pictures)
     133 static public function cl_autosize_script_3()
    134134 {
    135            global  $template,$user,$conf,$picture ;
    136 
     135           global  $template,$user,$conf,$picture ,$page;
     136           //userDefManage ??
    137137                $my_path =  basename(dirname(__FILE__)).'/' ;
    138138            $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
     157if(     $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(
    140172                     array('autosize_init'=>$my_path. "template/cl_conflit.tpl" 
    141173                         )
    142                       );                 
     174                      );               
     175                         
     176                       
     177                          $theme=$user['theme'];
     178                         
    143179                $template->assign(
    144                                                 array(
     180                                                array('ma_page' =>      $page['body_id'],
     181                                                'cl_conflit' => $cl_conflit  ,
     182                                                'theme' => $theme  ,
    145183                                                'DEBUG' => $debug   ,
    146                                                 'AUTOSIZE_ROOT' => AUTOSIZE_PATH)
     184                                                'AUTOSIZE_PATH' => AUTOSIZE_PATH)
    147185                                                 );
    148186
    149                  
    150                 return $pictures;
    151  }
     187if(     $page['body_id'] == 'theAdminPage' ) return ;
     188
     189                   return $template->parse( 'autosize_init', false);
     190
     191 }// function cl_autosize_script_2
    152192 //============================================================
    153193        static public function cl_autosize_script()
     
    158198            $my_path = dirname(__FILE__).'/';
    159199                        $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(
    167202                     array('autosize_init'=>$my_path. "template/conflit.tpl" 
    168203                         )
    169                       );                 
     204                      );               
     205                         
     206                       
    170207                          $theme=$user['theme'];
     208                         
    171209                $template->assign(
    172                                                 array('theme' => $theme  ,
     210                                                array(
     211                                                'cl_conflit' => $cl_conflit  ,
     212                                                'theme' => $theme  ,
    173213                                                'DEBUG' => $debug   ,
    174                                                 'AUTOSIZE_ROOT' => AUTOSIZE_PATH)
     214                                                'AUTOSIZE_PATH' => AUTOSIZE_PATH)
    175215                                                 );
     216
    176217if(     $page['body_id'] == 'theAdminPage' ) return ;
     218
    177219                   return $template->parse( 'autosize_init', false);
    178220
     
    191233                        $data = array();
    192234                       
     235                         
    193236
    194237 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     
    35       }
    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; }
     15body .ui-resizable-disabled .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */
     16body .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  
     1if (typeof jQuery == 'undefined') { 
     2    // jQuery n'est pas chargé
     3} else {
     4    // jQuery est chargé
     5}
     6 
    17function Toggle_bp() {
    28    cl_visible = !cl_visible;
     
    1319    jQuery('#bp_img_cla').attr('title', src_info);
    1420    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   
    1824}
    1925//=================================================================================================
    20 
    21 function wait_Timer() {
    22 
    23     jQuery(window).resize();
    24 
     26new_width=0;
     27function 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
    2534}
     35 
     36 
     37//=========================================================
    2638
    2739jQuery(document).ready(
     
    3547                 jQuery("#Debug2").hide();
    3648             }
    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
    4358             if (llgboframe.length > 0) {
    4459                 ll1 = jQuery(llgboframe).infos();
     
    4661                 marges_llgbo = (ll1.width - ll2.width) + ll2.borderwidth.left + ll2.borderwidth.right;
    4762             }
    48              //=========================================================
    49 
    50 
     63                   
    5164             //=============================================================
    5265             function cl_Timer() {
     
    6376                 setTimeout("cl_Timer()", 500);
    6477             }
    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           
    8180             //============================================================
    8281             /*
     
    153152                 }
    154153
    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;
    156155                 //=============================================================================
    157156                 info_gbo = jQuery("#gbo").infos();
     
    227226
    228227                 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');
    236230                     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,
    241236                         filter: 'alpha(opacity:50)',
    242237                         position: "absolute",
    243238                         width: "800px",
    244239                         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,
    250245                         filter: 'alpha(opacity:50)',
    251246                         position: "absolute",
    252247                         border: "solid 1px green",
    253248                         top: Bandeau_bas.top + "px",
    254                          width: (200) + "px",
     249                         width: (800) + "px",
    255250                         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,
    260256                         filter: 'alpha(opacity:50)',
    261257                         position: "absolute",
    262258                         left: '50px',
    263                          width: (300) + "px",
     259                         width: (800) + "px",
    264260                         border: "solid 1px green", top: Bandeau_bas.bottom + "px"
     261                         }
     262                         }
    265263                     });
    266                      jQuery("#Debug2").text("Debug2:Bandeau_bas bottom :" + Bandeau_bas.bottom);
     264
    267265
    268266                 }
     
    283281             */
    284282
    285              //============================================================//==
    286              jQuery("#pamoorama_outter").bind('resize', function () {
    287                  //   setTimeout("wait_Timer()", 200);
    288 
    289              })
    290 
    291 
    292 
    293283             //============================================================
    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 
    305284
    306285             /* jQuery */
    307              var img_init = { height: img_height, width: img_width };  // taille initiale
    308              var img_defaut = { height: scaled_height, width: scaled_width };
    309              var img_reelle = { height: img_height, width: img_width };
    310              var img_finale = { height: 0, width: 0 };
    311              var Zone_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 };
    312291
    313292             //============================================================
    314293
    315              var Info_the_page = jQuery("#the_page").infos();
    316              var Zone_Affichage = jQuery("#theImage").infos();
    317 
    318              var Bandeau = 0;
    319              var Bandeau_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")
    320299             Bandeau = Bandeau_t.img_top;
    321              var Bandeau_bas = 0;
     300             Bandeau_bas = 0;
    322301             Bandeau_bas = Info_description("theImage");
    323302             var old_window = { width: 0, height: 0 };
     
    331310
    332311             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 handlers
     312               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
    341320                   var namespaces = myevent.type.split(".");
    342                    myevent.type = namespaces.shift();
     321                     myevent.type = namespaces.shift();
     322                   }
    343323                   if (typeof (init_resize) == "undefined") init_resize = false;
    344324
     
    351331                   if (init_resize == false)
    352332                       init_resize = Resize(); ;
    353 
    354 
    355 
    356333               });
    357334
    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) ;
     359if(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               
    363487                 //=================================================================
    364                  //var retour = (getStackTrace());
    365                  //   alert(retour);
    366                  //jQuery("#debug").text(retour);
    367                  //  return
    368                  //=================================================================
    369 
     488                 
    370489                 var winwidth = jQuery(window).width();
    371490                 var winheight = jQuery(window).height();
     
    374493                 //===========================================================================
    375494
    376 
     495                 
    377496                 var Type_Img = "";
    378497                 //====== détection du type d'images ======
     
    442561
    443562                 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();
    445577                     var info_pamoorama_outter = jQuery("#pamoorama_outter").infos();
    446578                     var info_pamoorama_inner = jQuery("#pamoorama_inner").infos();
     
    448580                     var info_pamoorama_frame = jQuery("#pamoorama_frame").infos();
    449581                     TheImg = jQuery("#pamoorama");
    450                      
    451                   var myPamoorama = this.myPamoorama;
    452                    //  myPamoorama = pamoorama;
     582                     obj = TheImg.get(0);             
     583                     //  myPamoorama = pamoorama;
    453584
    454585                     /*
     
    481612                     else IMG = Cadre;
    482613
    483                      TheImg2 = Get_Img_Maxi(IMG + " img");
     614                     TheImg2 = jQuery().Get_Img_Maxi(IMG + " img");
    484615                     //=================================================================
    485616                     if (TheImg2 == null) {
     
    488619
    489620
    490                              TheImg = Get_Img_Maxi("#theImage img");
     621                             TheImg = jQuery().Get_Img_Maxi("#theImage img");
    491622                         }
    492623                     } else {
     
    522653                         // return;
    523654
    524 
    525                          TheImg = Get_Img_Maxi("#Panorama img");
     655                       
     656                         TheImg = jQuery().Get_Img_Maxi("#Panorama img");
    526657                         info_theImage = jQuery(TheImg).infos();
    527658                         info_the_page = jQuery("#the_page").infos();
     
    578709                         break
    579710                     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
    587714                         //=========================================================
    588715                         img_reelle.height = myPamoorama.imageHeight;
     
    672799
    673800
    674 
     801                 
    675802                 img_top = Bandeau;
    676803
     
    866993                 jQuery(Cadre).width(Zone_Affichage.width);
    867994
    868                  //==============================================================
     995                 //============= Remise à l'échelle =======================
    869996
    870997                 img_finale.height = Image_height;
     
    9241051                     }
    9251052                     new_width = Zone_Affichage.width - marge_right - marge_left;
    926                      new_width -= 4;
     1053                     
    9271054                     myPamoorama.options.width = new_width;
    9281055                     info_theImage.height = img_reelle.height + info_pamoorama_footer.height
     
    9351062                     });
    9361063                     jQuery("#pamoorama").width(new_width);
     1064
    9371065                     //====================================================
    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"})
    9471078                     //====================================================
    9481079                     var info_pamoorama = jQuery("#pamoorama").infos();
     
    9521083                     var info_pamoorama_frame = jQuery("#pamoorama_frame").infos();
    9531084
    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_thumb
    963                      //               img
    9641085                     info_frame = jQuery(myPamoorama.frame).infos();
    9651086                     myPamoorama.ratio = new_width / 200;
     
    9701091                     jQuery("#linkNext").css({ width: "200px", overflow: "hidden" });
    9711092                     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
    9721099                     zoom = Image_height / img_height;
    9731100
     
    9791106                     jQuery(TheImg).height(img_finale.height);
    9801107                     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 ");
    9831110
    9841111                 } else {
     
    9861113                     jQuery(TheImg).height(img_finale.height);
    9871114                     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 ");
    9901117
    9911118                 }
     
    9931120                 if (DEBUG == "true") {
    9941121
    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                         }
    10071146                     });
    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
    10191148                 }
    10201149                 jQuery("#navThumbPrev").css({ overflow: "hidden"
     
    10621191
    10631192                 }
    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();
    10661195                 if (pos != jQuery("#copyright").infos())
    10671196                     pos = jQuery("#copyright").infos();
    10681197                 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
    10761208             //======================================================================
    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
    11541211         });            // fin extend
    11551212
    11561213     } // 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  
    88var d1 = 0;
    99var init_tb = 0;
    10 //$ = jQuery.noConflict();
    11 
     10var dom = {};
     11if (typeof jQuery == 'undefined') {
     12    alert(" jQuery n'est pas chargé");
     13} else {
     14    // jQuery est chargé
     15}
     16 
     17function $(element, nc0) {
     18     a = conflit(element, nc0);
     19    return a;
     20            }
     21
     22         
     23         
    1224//===================================================
    13 function $(element, nc) {
    14 
    15         return conflit(element, nc)
    16     }
    17 
     25
     26    var time_out = 0;
    1827//===================================================
     28
     29    nbpa = 0;
     30    var Fn;
    1931function 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        }
    2643        else if (retour.match(RegExp("rv_gmaps", "gi"))) {
    2744        ret_element = jQuery().$Prototype(element);
     
    2946        ret_element = jQuery(element);
    3047    } 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
    3256} else if (retour.match(RegExp("luciano", "gi"))) {
    3357    ret_element = jQuery().$Luciano(element);
     
    4771} else if (typeof (element) == "function") {
    4872    fn = element.toString();
    49     if (fn.match("#pwg", "gi")) {
     73    if (fn.match("#pwg|open", "gi")) {
    5074        ret_element = jQuery(element);
    5175        return ret_element;
     
    6791}
    6892 return  ret_element ;
    69 }
    70 
    71 //============================================================
     93} // conflit(element,nc)
     94
     95
     96
     97
     98
    7299jQuery(document).ready(
    73100    function (jQuery) {
    74101        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;
    77119            }
    78120            p0 = jQuery("#theImage");
    79121            if (p0.length) {
     122
     123                //======================================================
    80124                if (theme.match("gally", "gi"))
    81                     if (isFunction(inittoolbar)) {
     125                    if (jQuery.isFunction(inittoolbar)) {
    82126                        if (typeof (currentTab) == "undefined") inittoolbar();
    83127                        else initializeImageMode("resize");
     
    88132                    //==== compatibilité Gally/LLGBO ===
    89133                    //--- passage relative ==> static ===/
    90                     jQuery("#theImage").css({ position: "static",
    91                         opacity: '0', filter: 'alpha(opacity= 0)'
     134                    jQuery("#theImage").css({ position: "static"
    92135                    }
    93136
    94                    );
     137                    );
    95138                    jQuery("#imageToolBar").css({ position: "relative", top: "0px" });
    96139                }
     
    99142
    100143        });
     144        //=============================================================       
     145
     146         //  $ = _$2; ;
     147
    101148
    102149    })
    103150;
    104151
    105 function isFunction(fn) {
    106     tpfn = typeof (fn);
    107     if (tpfn == "function") return true;
    108 }
     152
     153
    109154//=========================================================
    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 ($) {
    120156
    121157})(jQuery);
     158//mootools
     159/* */
     160_$2 = $;
     161 
     162function $defined(A) {
     163    $= _$2  ; //   ;
     164    return A != undefined;
     165}
     166 
     167 
     168
    122169
    123170
    124171jQuery.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) {
     175return document.id(el, nc, this.document);
     176},
     177//=============== PaMOOramics ===========================
     178
     179$Pamoorama: function (B) {
     180   
     181
     182if (!B) {
     183if (typeof (B) == "boolean") return null;
     184
     185}
    137186       
    138             try {
    139                 if (B.htmlElement) {
    140                     return Garbage.collect(B);
    141                 }
    142             } catch (e) {
     187try {
     188if (B.htmlElement) {
     189return Garbage.collect(B);
     190}
     191} catch (e) {
    143192           
    144             }
    145 
    146         if ([window, document].contains(B)) { return B; }
    147         var A = $type(B);
    148         if (A == "string") { B = document.getElementById(B); A = (B) ? "element" : false; }
    149         if (A != "element") {
    150             return null;
    151         }
    152         if (B.htmlElement) { return Garbage.collect(B); }
    153         if (["object", "embed"].contains(B.tagName.toLowerCase())) { return B; }
    154         $extend(B, Element.prototype);
    155         B.htmlElement = function () { };
    156         try { return Garbage.collect(B); } catch (e) {
    157             return;
    158         }
    159 
    160     },
    161     //===================================================
    162     $Prototype: function (element) {
    163         //======== prototype.js =====================
    164         if (arguments.length > 1) {
    165             for (var i = 0, elements = [], length = arguments.length; i < length; i++)
    166                 elements.push($(arguments[i]));
    167             return elements;
    168         }
    169         if (typeof element == "string")
    170             element = document.getElementById(element);
    171 
    172         return Element.extend(element);
    173 
    174         try {
    175             new_element = Element.extend(element);
    176         } catch (e) {
    177             return new_element;
    178         }
    179         return new_element;
    180     }
    181     //=========================================================
     193}
     194
     195if ([window, document].contains(B)) { return B; }
     196var A = $type(B);
     197if (A == "string") { B = document.getElementById(B); A = (B) ? "element" : false; }
     198if (A != "element") {
     199return null;
     200}
     201if (B.htmlElement) { return Garbage.collect(B); }
     202if (["object", "embed"].contains(B.tagName.toLowerCase())) { return B; }
     203$extend(B, Element.prototype);
     204B.htmlElement = function () { };
     205try { return Garbage.collect(B); } catch (e) {
     206return;
     207}
     208
     209},
     210//===================================================
     211$Prototype: function (element) {
     212//======== prototype.js =====================
     213if (arguments.length > 1) {
     214for (var i = 0, elements = [], length = arguments.length; i < length; i++)
     215elements.push($(arguments[i]));
     216return elements;
     217}
     218if (typeof element == "string")
     219element = document.getElementById(element);
     220
     221return Element.extend(element);
     222
     223try {
     224new_element = Element.extend(element);
     225} catch (e) {
     226return new_element;
     227}
     228return new_element;
     229}
     230//=========================================================
    182231});    // fin extend
    183232
     
    202251        var e_message = e.message;
    203252        var  e_stack = e.stack;
    204 if (e_stack) { //Firefox Opera 3.6
    205 //=== 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;
    252301}
    253302if (window.opera && e.message && isCallstackPopulated == false) {
     
    264313}
    265314callstack.push(entry);
    266  isCallstackPopulated = true;
     315 //isCallstackPopulated = true;
    267316}
    268317}
     
    276325    callstack = [];
    277326    all_functions = [];
     327    state = "";
    278328    if (currentFunction == null) {
    279329        return ("");
    280330    }
    281     var fn1 = currentFunction.toString();
     331    states = [];
     332    var fn1 = currentFunction.toString(); // fonction d'appel local (conflit)
     333   
     334    currentFunction = currentFunction.caller;
    282335    currentFunction = currentFunction.caller;
    283336    //$family
     337
    284338    while (currentFunction) {
    285339        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        }
    290352            callstack.push(fn);
    291             // if (fname != " $") callstack.push(fn);
     353           
    292354                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                   
    296361                }
    297362                if (fn.match(RegExp("GMaps|applyMap|markupMaps|applyMarkers", "gi"))) {
    298                     callstack = [];
    299                     callstack.push('GMaps');
    300                     break;
     363                    states.push('GMaps');
     364                     
    301365                }
    302366                //======================
    303367                if (fn.match(RegExp("_footer|ie_ready|makeDraggable|droppables", "gi"))) {
    304                     callstack = [];
    305                     callstack.push('paMOOramics');
    306                     break;
     368
     369                    states.push('paMOOramics');
     370                   
    307371                }
    308372                if (fn.match(RegExp("observe|responder|stopobserving|fireContentLoadedEvent", "gi"))) {
    309                     callstack = [];
    310                     callstack.push('rv_gmaps');
    311                     break;
     373                    states.push('rv_gmaps');
     374                     
    312375                }
    313376                //? bubble 
    314                 Expression = new RegExp("\$", "gi")
     377                Expression = new RegExp("\\$", "gi")
    315378                if (fn.match(Expression)) {
    316379                    if (fn.match(RegExp("rateForm", "gi"))) {
    317                         callstack = [];
    318                         callstack.push('Luciano');
    319                         break;
     380
     381                        states.push('Luciano');
     382                       
    320383                    }
    321384                }
    322385                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
    329393         
    330394        currentFunction = currentFunction.caller;
     
    332396 
    333397}
    334    
    335     return callstack.join('\n');
    336 }
     398state = states.join('\n');
     399Fn = all_functions;
     400    return { state:state , fn:callstack.join('\n') };
     401}
     402//====================================
     403jQuery(window).load(function () {
     404
     405a= jQuery(':Description');
     406
     407     
     408});
     409           
     410
     411
     412
     413//==============================================
     414jQuery.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 
     451jQuery("#pamoorama").bind("load", { foo: "bar" }, function release(event) { 
     452//setTimeout("end_Timer()", 100);
     453 
     454  //  event.stopPropagation();
     455})
     456function end_Timer() {   
     457alert("load pamoorama");
     458 
     459}
     460jQuery().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  
    9696                borderwidth: borderwidth,
    9797                padding: padding,
    98                 margin: margin
     98                margin: margin, id: "", nodeName: ""
    9999            };
    100100            ;
    101101            if (elem) {
     102                id = ""; nodeName = "";
     103                if (elem.id) id = elem.id;
     104                if (elem.nodeName) nodeName = elem.nodeName;
     105
    102106                if (elem == window) {
    103107                    Position = { top: 0, left: 0 };
     
    113117                    width = jQuery(elem).outerWidth();
    114118                    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                }
    147151                results = {
    148152                    position: Position,
     
    155159                    borderwidth: borderwidth,
    156160                    margin: margin,
    157                     padding: padding
     161                    padding: padding,
     162                    id: id,
     163                    nodeName: nodeName
    158164                };
    159165
  • extensions/Autosize/main.inc.php

    r7740 r7805  
    1515$autosize_controler = new autosize_controler();
    1616
    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 );
     17add_event_handler('get_admin_plugin_menu_links', array(&$autosize_controler,'cl_autosize_admin')  );
     18add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_affiche'), 40 );
     19add_event_handler('loc_after_page_header', array(&$autosize_controler, 'cl_autosize_script'),  EVENT_HANDLER_PRIORITY_NEUTRAL+20 ,  2);
    1920
    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 );
    2422
    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 }
    2728
    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 
    3530?>
  • 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  -->
    53    {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"} 
    86
    9 {*jQuery is always available by default*}
    107
    118 <script type="text/javascript">
    12      var fade_in = '{$fade_in}';
    13 
     9    var fade_in = '{$fade_in}';
    1410    var cl_visible = "{$cl_visible}" =="true";
    1511    var DEBUG = '{$DEBUG}';
     
    5652
    5753{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   -->
    6056{/html_head} 
    6157
     
    6359{if $DEBUG == "true"}
    6460  {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>
    6963  <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>
    7064   <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>
    7165  <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>
    7266 {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  
    11{html_head}
    2 <!--- autosize/cl_confilt.tpl (before) --->
     2
    33{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js" }
    44{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}
    106
     7<!--- {$AUTOSIZE_PATH} template/cl_confilt.tpl (body) --->
     8  <script type="text/javascript">
     9     
     10      save_framework('{$ma_page}');
     11 
    1112</script>
    12    
     13    <!---FIN  {$AUTOSIZE_PATH} template/cl_confilt.tpl (body) --->
  • extensions/Autosize/template/conflit.tpl

    r7740 r7805  
    11{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
    711<script type="text/javascript">
    812    var DEBUG = '{$DEBUG}';
    913    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  
    33  cursor:pointer;
    44}
    5 navThumb{ldelim}
    6     height:auto
    7 }
     5 
    86body{ldelim} overflow:visible; overflow-x:visible; overflow-y:visible
    97}
Note: See TracChangeset for help on using the changeset viewer.