Ignore:
Timestamp:
May 6, 2011, 12:16:37 PM (13 years ago)
Author:
cljosse
Message:

[extensions] autosize compatiblity with gmaps(Version 1.3.0a)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/js/Affiche_script.js

    r10561 r10787  
    1 
    2 
    31Parent = "#theImage";
    4 
    52function Toggle_bp() {
    63    cl_visible = !cl_visible;
     
    296293
    297294         Zone_Affichage = { height: 0, width: 0 };
    298          //============================================================       
     295         //============================================================
    299296         jQuery("#the_page").css({ top: "0px" });
    300297         Info_the_page = jQuery("#the_page").infos();
     
    304301
    305302         Zone_Affichage = jQuery(Parent).infos();
    306          //   
     303         //
    307304         var old_window = { width: 0, height: 0 };
    308305         Bandeau_bas = Info_Description_f(Parent);
     
    316313         jQuery().newResize();
    317314
    318          //=================================================================== 
     315         //===================================================================
    319316         /*
    320317         * window .resize
     
    366363         //====================================================
    367364         newResize: function () {
    368            // 
     365           //
    369366           //if (options.imageAutosize) return true ;stripped
    370367           if (DEBUG == "true") {
     
    440437             } else if (info_ToolBar.width > 0) {
    441438               marge = (info_the_page.width - info_ToolBar.width) / 2;
    442              
     439
    443440               marge_right = marge + info_the_page.left;
    444441               marge_left = marge;
     
    635632           img_reelle.height = parseInt(img_reelle.height);
    636633           if (img_reelle.height < parseInt(mini_height)) return true;
    637            //==================================================================================   
     634           //==================================================================================
    638635           if (rapport < 0) {
    639636
     
    764761             Image_width -= (Bandeau_t.borderwidth.left + Bandeau_t.borderwidth.left);
    765762             if (Image_width > widthmin) {
    766                //   Image_width largeur à atteindre 
    767                //  Calcul du rapport d'agrandissement 
     763               //   Image_width largeur à atteindre
     764               //  Calcul du rapport d'agrandissement
    768765               var echelle_w = parseFloat((widthmin) / img_reelle.width, 3);
    769766               if (echelle_w > echelle_max) { echelle_w = echelle_max; }
     
    884881           if (jQuery("#slideshow").infos().width > 0) {
    885882
    886              
     883
    887884           } else {
    888              
     885
    889886           }
    890887           //=== cadre = theImage
     
    901898             }
    902899           }
    903            //============= flv,mov,mpg  ok 
     900           //============= flv,mov,mpg  ok
    904901           /* wmv nok
    905902           * avi nok
     
    990987             jQuery("#pamoorama_outter").css({ width: new_width + "px" });
    991988             jQuery("#pamoorama_footer").css({ width: new_width + "px" });
    992              //     
     989             //
    993990             //====================================================
    994991             info_pamoorama = jQuery("#pamoorama").infos();
     
    12781275    }
    12791276    // jQuery(Parent + " p:not(:contains(' ')) ").remove();
    1280     // jQuery(Parent + " p:(:contains('')) ").remove(); 
     1277    // jQuery(Parent + " p:(:contains('')) ").remove();
    12811278    llgboframe = jQuery("#gbo").infos();
    12821279    marges_llgbo = 0;
    12831280
    12841281    if (llgboframe.height > 0) {
    1285  ll2 = jQuery("#gbo div:last").infos(); 
     1282 ll2 = jQuery("#gbo div:last").infos();
    12861283        ll1 = jQuery("#gbo div:first").infos();
    12871284        ll2 ="" ;
    12881285        jQuery("#gbo div").each(function (i) {
    1289        
     1286
    12901287         if (  this.id=="") return ;
    12911288ll2=this ;
    12921289        });
    1293        ll2 = jQuery(ll2).infos(); 
     1290       ll2 = jQuery(ll2).infos();
    12941291        ll1 = ll1.width;
    12951292        ll2 = ll2.width - ll2.borderwidth.left - ll2.borderwidth.right;
     
    13031300    info_theImgContainer = jQuery("#" + "theImgContainer").infos();
    13041301    info_description = jQuery("#" + "description").infos();
    1305     //=============================================================================         
     1302    //=============================================================================
    13061303    //   jQuery(Parent + " p").css({ padding: "0px", margin: "0px "    });
    13071304    if (theme.match(RegExp("simple", "gi"))) {
     
    14181415                                    info_description.borderwidth.top +
    14191416                                    info_description.borderwidth.bottom +
    1420                                       options.imageAutosizeMargin*2 + 
     1417                                      options.imageAutosizeMargin*2 +
    14211418                                    (marges_llgbo / 2)+4;
    14221419
    14231420        } else {
    1424        
    1425        
     1421
     1422
    14261423            info_description.top = info_theImageBox.bottom +
    14271424                        jQuery("#content").infos().top +
     
    14331430           if (msie == true) info_description.bottom -= 4;
    14341431        };
    1435         check_desc_v = true; 
     1432        check_desc_v = true;
    14361433
    14371434    } else {
     
    14401437        // info_description.bottom -= info_img.top;
    14411438    }
    1442     // 
     1439    //
    14431440
    14441441    info_description.height = info_description.bottom - info_description.top;
     
    14931490        jQuery("[id ^='Debug']").show();
    14941491        /*
    1495         Debug2  background-color:yellow 
    1496         Debug3 background-color:blue 
    1497         Debug4 background-color:green 
    1498         Debug5 background-color:red 
     1492        Debug2  background-color:yellow
     1493        Debug3 background-color:blue
     1494        Debug4 background-color:green
     1495        Debug5 background-color:red
    14991496
    15001497        */
     
    15361533    });
    15371534
    1538     // Custom Event, ON to turn on a debug. 
     1535    // Custom Event, ON to turn on a debug.
    15391536    jQuery('.debug').live('ON', function (e) {
    15401537
     
    15611558    });
    15621559
    1563     // Add another debug to the DOM 
     1560    // Add another debug to the DOM
    15641561    jQuery('#adddebugs').click(function () {
    15651562        jQuery('<div></div>')
     
    15791576        }
    15801577    }); //on load
    1581 }); 
     1578});
Note: See TracChangeset for help on using the changeset viewer.