Ignore:
Timestamp:
Nov 11, 2010, 10:29:02 AM (13 years ago)
Author:
cljosse
Message:

[Autosize][beta] save

Location:
extensions/Autosize/js
Files:
2 edited

Legend:

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

    r7737 r7740  
    2626
    2727jQuery(document).ready(
    28 
    2928     function (jQuery) {
    30 
    31 
    32 
    3329         jQuery(window).load(function () {
    34              jQuery("#theImage").css({
    35                  opacity: '0.0'
    36              });
     30
    3731             //======= cl_conflit ======
    3832             if (DEBUG == "false") {
     
    244238                     Bandeau_bas = info_description;
    245239
    246                      jQuery("#Debug").css({
     240                     jQuery("#Debug").css({ opacity: 0.5,
    247241                         filter: 'alpha(opacity:50)',
    248242                         position: "absolute",
     
    253247                     jQuery("#Debug").text("Debug:Bandeau : " + Bandeau);
    254248
    255                      jQuery("#Debug1").css({
     249                     jQuery("#Debug1").css({ opacity: 0.5,
    256250                         filter: 'alpha(opacity:50)',
    257251                         position: "absolute",
     
    263257                     jQuery("#Debug1").text("Debug1:Bandeau_bas top : " + Bandeau_bas.top + " height:" + Bandeau_bas.height);
    264258
    265                      jQuery("#Debug2").css({
     259                     jQuery("#Debug2").css({ opacity: 0.5,
    266260                         filter: 'alpha(opacity:50)',
    267261                         position: "absolute",
     
    452446                     var info_pamoorama_inner = jQuery("#pamoorama_inner").infos();
    453447                     var info_pamoorama_footer = jQuery("#pamoorama_footer").infos();
     448                     var info_pamoorama_frame = jQuery("#pamoorama_frame").infos();
    454449                     TheImg = jQuery("#pamoorama");
     450                     
     451                  var myPamoorama = this.myPamoorama;
     452                   //  myPamoorama = pamoorama;
    455453
    456454                     /*
     
    584582                         if (typeof (myPamoorama.skipInit) == "undefined") return false;
    585583                         if (myPamoorama.skipInit == false) {
    586                             // setTimeout("wait_Timer()",300);
     584                             // setTimeout("wait_Timer()",300);
    587585                             return false;
    588586                         }
     
    948946                     jQuery("#pamoorama_footer").css('width', new_width + "px");
    949947                     //====================================================
    950 
    951                     //myPamoorama.continueInit();
     948                     var info_pamoorama = jQuery("#pamoorama").infos();
     949                     var info_pamoorama_outter = jQuery("#pamoorama_outter").infos();
     950                     var info_pamoorama_inner = jQuery("#pamoorama_inner").infos();
     951                     var info_pamoorama_footer = jQuery("#pamoorama_footer").infos();
     952                     var info_pamoorama_frame = jQuery("#pamoorama_frame").infos();
     953
     954                     //myPamoorama.dragHandle.options.limit.x = { 0: 0, 1: 400 }
     955                     /*   myPamoorama.frame.makeDraggable({
     956                     modifiers: { x: 'left', y: false },
     957                     limit: { x: [0, 200 - myPamoorama.frame.getStyle('width').toInt()] }
     958                     });
     959                     */
     960                     //myPamoorama.continueInit();
    952961                     //myPamoorama.skipInit = false;
     962                     //pamoorama_thumb
     963                     //               img
     964                     info_frame = jQuery(myPamoorama.frame).infos();
     965                     myPamoorama.ratio = new_width / 200;
     966                     jQuery("#pamoorama_frame").width(myPamoorama.ratio);
     967                     jQuery("#pamoorama_frame").css("width", myPamoorama.ratio + "px");
     968
    953969
    954970                     jQuery("#linkNext").css({ width: "200px", overflow: "hidden" });
     
    10611077             var pos;
    10621078             var set_p = false;
     1079
    10631080             fade_in = parseInt(fade_in);
    1064 
    1065              jQuery("#theImage").animate(
     1081             jQuery("#theImage").css({ opacity: 0,
     1082                 filter: 'alpha(opacity: 0)'
     1083
     1084             });
     1085             resize_ok = Resize();
     1086
     1087            if (!resize_ok )
     1088           jQuery("#theImage").animate(
    10661089                { opacity: 0 }
    10671090             , 500, "swing", function () {
    1068                  if (Resize() == true) return;
    1069                  jQuery("#theImage").animate(
    1070                 { opacity: 0.0 }
    1071              , fade_in, "swing", function () {
    1072                  if (Resize()) return
    1073                  opacite = set_opacite(1);
    1074                  jQuery("#theImage").animate(
    1075                 opacite
    1076              , fade_in, "swing", function () {
    1077                  Resize();
     1091                 resize_ok = Resize();
     1092                 if (!resize_ok)
     1093                    jQuery("#theImage").animate(
     1094                        { opacity: 0 }
     1095                        , 1000, "swing", function () {
     1096                            resize_ok = Resize();
     1097                            if (resize_ok)
     1098                                jQuery("#theImage").animate(
     1099                                { opacity: 1 }
     1100                                , 1000, "swing", function () {
     1101                                    resize_ok = Resize();
     1102                                    });
     1103                                });
     1104
    10781105             });
    1079              });
    1080              });
     1106              
     1107             resize_ok = Resize();
    10811108
    10821109
     
    11281155
    11291156     } // function
    1130 );                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             // ready
     1157);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   // ready
    11311158    /*
    11321159*
  • extensions/Autosize/js/conflit.js

    r7736 r7740  
    88var d1 = 0;
    99var init_tb = 0;
     10//$ = jQuery.noConflict();
     11
    1012//===================================================
    1113function $(element, nc) {
     14
    1215        return conflit(element, nc)
    1316    }
    14 
    1517
    1618//===================================================
     
    3638    return ret_element;
    3739
    38 if (DEBUG=="true")
    39     alert(retour);
    40                        return jQuery(element);
     40if (typeof (element) == "string") {
     41    if (element.match("^#|.ui", "gi")) {
     42        ret_element = jQuery(element);
     43        return ret_element;
     44    }
     45} else if (typeof (element) == "function") {
     46    fn = element.toString();
     47    if (fn.match("#pwg", "gi")) {
     48        ret_element = jQuery(element);
     49        return ret_element;
     50    }
     51} else if ( element==document) {
     52 
     53        ret_element = jQuery(element);
     54        return ret_element;
     55   
     56     
     57    }
     58tp0 = typeof (element);
     59
     60 ret_element = jQuery(element);
     61if (DEBUG == "true") {
     62     retour = (getStackTrace());
     63     alert("element : " + element + " retour : " + retour);
     64   
     65}
     66 return  ret_element ;
    4167}
    4268
     
    4874                return conflit(element, nc);
    4975            }
    50 
    51             if (theme.match("gally", "gi"))
    52                 if (isFunction(inittoolbar)) {
    53                     if (typeof (currentTab) == "undefined") inittoolbar();
    54                     else initializeImageMode("resize");
    55                 };
     76            p0 = jQuery("#theImage");
     77            if (p0.length) {
     78                if (theme.match("gally", "gi"))
     79                    if (isFunction(inittoolbar)) {
     80                        if (typeof (currentTab) == "undefined") inittoolbar();
     81                        else initializeImageMode("resize");
     82                    };
    5683
    5784                p1 = jQuery("#theImage").css("position");
     
    5986                    //==== compatibilité Gally/LLGBO ===
    6087                    //--- passage relative ==> static ===/
    61                     jQuery("#theImage").css( {position:"static",
    62                          opacity: '0', filter: 'alpha(opacity= 0)'
    63                      }
     88                    jQuery("#theImage").css({ position: "static",
     89                        opacity: '0', filter: 'alpha(opacity= 0)'
     90                    }
    6491
    6592                   );
    6693                    jQuery("#imageToolBar").css({ position: "relative", top: "0px" });
    6794                }
    68 
    69             jQuery(window).resize();
     95            }
     96            //   jQuery(window).resize();
    7097
    7198        });
     
    80107//=========================================================
    81108(function ($2) {
     109ajax: function () {return jQuery.ajax;
     110}
     111return jQuery;
    82112$2.fn.panorama2 =
    83113function (height, width) {               
     
    91121
    92122jQuery.fn.extend({
     123     
    93124    //---------------- luciano -------------------------------
    94125    $Luciano: function (el, nc) {
     
    246277        return ("");
    247278    }
    248 
     279    var fn1 = currentFunction.toString();
    249280    currentFunction = currentFunction.caller;
    250281    //$family
     
    268299                }
    269300                //======================
    270                 if (fn.match(RegExp("_footer|ie_ready|makeDraggable", "gi"))) {
     301                if (fn.match(RegExp("_footer|ie_ready|makeDraggable|droppables", "gi"))) {
    271302                    callstack = [];
    272303                    callstack.push('paMOOramics');
Note: See TracChangeset for help on using the changeset viewer.