Changeset 17545
- Timestamp:
- Aug 11, 2012, 10:45:29 AM (12 years ago)
- Location:
- extensions/Autosize
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r17503 r17545 76 76 if(isset($page['body_id']) && $page['body_id'] == 'theAdminPage' ) return ; 77 77 if (!isset($_COOKIE['autosize_reload'])){ 78 $autoscript="<script type='text/javascript' src='themes/default/js/jquery.min.js'></script> <script type='text/javascript' src='plugins/ autosize/js/autosizeDetect.js'></script>78 $autoscript="<script type='text/javascript' src='themes/default/js/jquery.min.js'></script> <script type='text/javascript' src='plugins/Autosize/js/autosizeDetect.js'></script> 79 79 <script type='text/javascript' src='plugins/Autosize/js/autosize.cookie.js'></script> 80 80 <body onload=on_load() style='background-color:black;color :white;font-size:30px ' > -
extensions/Autosize/js/Affiche_script.js
r17538 r17545 172 172 jQuery('#bp_cla span').text(zoom_cl + "% "); 173 173 color_back = jQuery('#imageToolBar').css("backgroundColor"); 174 if (color_back.match(new RegExp("rgb", "gi"))) { 175 color_back = color_back.split("(")[1].split(")")[0].split(","); 176 color_back = "rgb(" + Math.abs(255 - color_back[0]) + "," 174 try { 175 if (color_back.match(new RegExp("rgb", "gi"))) { 176 color_back = color_back.split("(")[1].split(")")[0].split(","); 177 color_back = "rgb(" + Math.abs(255 - color_back[0]) + "," 177 178 + Math.abs(255 - color_back[1]) + "," 178 179 + Math.abs(255 - color_back[2]) + ")"; 179 } 180 else if (color_back.match(new RegExp("#", "gi"))) 181 color_back = Math.abs("#65536" - color_back); 182 else 183 color_back = jQuery('body').css("color"); 184 jQuery('#bp_cla span').css({ color: color_back, aling: "center" }); 180 } 181 else if (color_back.match(new RegExp("#", "gi"))) 182 color_back = Math.abs("#65536" - color_back); 183 else 184 color_back = jQuery('body').css("color"); 185 jQuery('#bp_cla span').css({ color: color_back, aling: "center" }); 186 } catch (e) { 187 188 } 185 189 if (options.src_deriv) { 186 190 jQuery('.auto_details').text(" (" + Zone_image.image.width + " x " + Zone_image.image.height + ") " + options.src_deriv); … … 317 321 318 322 if (infos_imageComment.visible = true && infos_imageComment.general.bottom > infos_theMainImage.bottom) { 319 h02 = infos_imageComment.general.bottom - infos_theMainImage.bottom;323 h02 = infos_imageComment.general.bottom - infos_theMainImage.bottom; 320 324 } 321 325 if (infos_Licence.visible = true && infos_Licence.general.bottom > infos_theMainImage.bottom) { … … 326 330 if (test_theme("simple")) { 327 331 options.marge_basse += info_comments1.general.height; 328 332 329 333 } else { 330 334 options.marge_basse += Math.max(h01, h02); 331 335 if (test_theme("blanc , pure, hr_ ")) { 332 options.marge_gauche += 10;333 options.marge_droite += 10;334 335 336 336 options.marge_gauche += 10; 337 options.marge_droite += 10; 338 } 339 } 340 } 337 341 Zone_image = { image_init: { 338 342 width: infos_theMainImage.width, … … 391 395 infos_menubar = jQuery("#menubar").infos(true); 392 396 if (infos_menubar.visible == true) { 393 jQuery(theImage_id).width(infos_window.width - infos_imageInfos.general.width - infos_menubar.general.width -20);397 jQuery(theImage_id).width(infos_window.width - infos_imageInfos.general.width - infos_menubar.general.width - 20); 394 398 infos_theImage = jQuery(theImage_id).infos(true); 395 399 … … 432 436 433 437 434 infos_llgbo = jQuery(llgbo_id).infos( );435 infos_llgboh2 = jQuery("#llgboh2").infos( );438 infos_llgbo = jQuery(llgbo_id).infos(true); 439 infos_llgboh2 = jQuery("#llgboh2").infos(true); 436 440 marges_llgbo = 0; 437 441 //========================================================================================== … … 1583 1587 + Math.ceil(infos_theMainImage.general.marges.height); 1584 1588 retrait_img.height += 2; 1585 1589 1586 1590 //=============================================================== 1587 1591 retrait_img.width = Math.ceil(infos_theMainImage.general.marges.width); // borderwidth+padding 1588 1592 retrait_img.width += Math.ceil(options.marges_llgbo || 0); 1589 1593 retrait_img.width += 2; 1590 1594 1591 1595 1592 1596 //================== Limite Format Image ===================== … … 1812 1816 options.marges_llgbo = 0; 1813 1817 if (jQuery(llgbo_id).length > 0) { 1814 infos_llgbo = jQuery(llgbo_id).infos( );1818 infos_llgbo = jQuery(llgbo_id).infos(true); 1815 1819 if (infos_llgbo.visible == true) { 1816 1820 if (infos_llgbo.height > 0) { … … 1950 1954 //_______________________ init_gen _______________________ 1951 1955 1952 }); // ready1956 }); // ready 1953 1957 1954 1958
Note: See TracChangeset
for help on using the changeset viewer.