Changeset 12660 for extensions
- Timestamp:
- Nov 27, 2011, 1:06:59 PM (12 years ago)
- Location:
- extensions/Autosize/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r12652 r12660 760 760 case "embed": 761 761 // 762 762 if (info_img.width == 0) 763 info_img = jQuery("#thePicturePage").infos(); 764 if (info_img.width == 0) 765 info_img = jQuery("#the_page").infos(); 763 766 info_theImage = info_img; 764 767 info_the_page = jQuery("#the_page").infos(); 768 Bandeau_bas.height = Bandeau_bas.top; 769 770 iph1 = jQuery("#theImage div").infos(); 771 if ((winheight - iph1.bottom)>0) 772 Bandeau_bas.height =(winheight - iph1.bottom) + 50; 773 else 774 Bandeau_bas.height = 50; 775 765 776 766 777 if (rapport < 0) { 767 778 img_height = info_img.height; 768 779 img_width = info_img.width; 769 770 780 img_reelle.height = img_height; 771 781 img_reelle.width = img_width; 772 773 782 } 774 783 775 784 break 776 785 case "charlie": 777 778 779 786 info_theImage = info_img; 780 787 info_the_page = jQuery("#the_page").infos(); … … 787 794 } 788 795 break 796 797 789 798 case "pamoorama": 790 799 … … 842 851 843 852 img_reelle.width = parseInt(img_reelle.width); 844 // jQuery(Cadre).width(mini_width); 1.6.2845 846 853 847 854 if (img_reelle.width < mini_width) { … … 862 869 863 870 if (rapport < 0) { 864 865 871 img_init.height = parseInt(img_height); 866 872 img_init.width = parseInt(img_width); … … 913 919 } else if (theme.match(RegExp("gally", "g"))) { 914 920 correction += 0; //?? 915 921 } else if (theme.match(RegExp("os", "g"))) { 922 correction += 0; //?? 916 923 } 917 924 … … 1112 1119 img_finale.width = parseInt(img_finale.width); 1113 1120 //========================================================================= 1114 1115 1121 //=== cadre = theImage 1116 1122 jQuery(Cadre).css({ marginLeft: "auto" }); 1123 if (theme.match(RegExp("sobre", "gi")) || theme.match(RegExp("hr_", "gi")) || theme.match(RegExp("Mont", "gi"))) { 1124 jQuery(Cadre).css("width", "auto"); 1125 } else { 1117 1126 jQuery(Cadre).width(Zone_Affichage.width); //centrer simple black 1118 // jQuery(Cadre).css("width", "auto"); 1127 1128 } 1129 // ; 1119 1130 1120 1131 if (Type_Img == "panorama" || Type_Img == "pamoorama") { … … 1360 1371 } 1361 1372 zoom = img_finale.height / img_height; 1373 h0 = jQuery("#content").height(); 1374 if (h0 == null) { 1375 h0 = winheight - Zone_Affichage.top; 1376 } 1377 h1 = (h0 - img_finale.height) / 2; 1378 // jQuery(Parent).css({ marginTop: h1 + "px" }); 1362 1379 1363 1380 zoom = parseInt(zoom * 100); … … 1412 1429 info_theImageBox = jQuery(Parent).infos(); //theImage 1413 1430 } 1414 1415 1431 info_theImageBox.margin.margin = info_frame.margin.margin; 1416 1432 info_theImageBox.top = t1; -
extensions/Autosize/js/conflit.js
r12527 r12660 6 6 //============================================================================== 7 7 browser = detect_browser(); 8 image_w = 600; 9 image_h = 400 10 8 11 function detect_browser() { 9 12
Note: See TracChangeset
for help on using the changeset viewer.