Get height/width numbers & console logs not showing

Get height/width numbers & console logs not showing

Can't figure out what to do - with jquery1.8 a few things are now broken:

  1. $(function() {
  2.       if ("Yes" == "Yes") {
  3.         $('.contentbutton_searcher_stack-its_showbutton').css({"display": "block"});
  4.         var butht = parseFloat($('div.butwrap_searcher_stack-its_showbutton').css('height'));
  5.         console.log('Button Ht: ' + butht);
  6.         if ("center" == "center") {
  7.           $('.butwrap_searcher_stack-its_showbutton').each(function() {
  8.             var fullinitwd = $(this).closest('div[class^="searchercustomcontent"]').width();
  9.             var fullwd = parseFloat(fullinitwd);
  10.             console.log('Full Width: ' + fullwd);
  11.             var butinitwd = parseFloat($('div.butwrap_searcher_stack-its_showbutton').css('width')); /* in percentage */
  12.             var butpxwd = (butinitwd/100) * fullwd; /* converted to pixels */
  13.             var butwd = Math.round(butpxwd);
  14.             console.log('Button Width: ' + butwd);
  15.             var butmarinitlt = (fullwd - butwd)/2;
  16.             var butmarlt = Math.round(butmarinitlt);
  17.             console.log('Button Center Offset: ' + butmarlt);
  18.             $(this).css({'left': + butmarlt + 'px'});
  19.           });  
  20.         }
  21.       }
  22. });

- On line #6, button height keeps coming out as NaN, but I parsefloated it which worked in the past.
- I'm not seeing any of the console logs after line #7, not sure why.

Thanks,  Bill