jquery - Typography gets pixileted in online version -


i'm working on site www.runebs.dk , have problem typography. when site on localhost typography looks fine when upload server gets pixelated.

i have tried change typography doesn't work. might think in script underneath because it's in divs script displays, typography pixilated. typography looks fine on rest of site.

is because script prints content twice or?

here online version http://imgur.com/czwjiez , here local version http://imgur.com/v6jgiry

i hope in here can point me in right direction..

the html...

<div id="subheadline">    <h3 class="h3 title"></h3>    <h3><div class="year"></div></h3>    <h3><div class="description"></div></h3>    <h3 class="showhide">(–)</h3> </div>  <header class="article-header">    <h3 class="h3 title">title text</h3>  <div class="year">     <h3>year text</h3> </div>  <div class="description">    description text </div>      <h3 class="showhide"></h3> 

the css..

.article-header { display: none;}  #subheadline {position:fixed; top:0px; left: 0; margin-left: 22px; padding-top: 64px; height:   auto; width: 600px; z-index:1; }  #subheadline .description { display: block; width: 255px; position: relative; margin-top: 28px;}  #subheadline .showhide  { display: none; width: 255px; position: relative; margin-top: 28px; cursor: pointer;} .year {display: block; margin-top: -19px;} 

and jquery...

function toggleinfo () {  $('.showhide').on('click',function(){  $(this).toggleclass('active');  $( '#subheadline .description' ).slidetoggle(200);  var currentstate = $(this).text();  console.log('state: ', currentstate);  if($(this).hasclass('active')) {     $('.showhide').empty();     $(this).text('(+)'); } else {   $(this).text('(–)'); } }); }  $(document).ready(function(){      // firing toggleinfo when doc ready      toggleinfo();  var $window = $(window);  $window.trigger('scroll'); // init value  $window.on('scroll', function(){  var pos = $('#subheadline').offset();   $('.article-header').each(function(){       if (pos.top <= $(this).offset().top && pos.top >= $(this).next().offset().top) {         var desc = $('.description', this).text();         var title = $('.h3', this).text();         var year = $('.year', this).text();         var button = $('.showhide', this).text();           $('#subheadline .title').text(title);           $('#subheadline .year').text(year);           $('#subheadline .description').text(desc);           $('#subheadline .showhide').show();           return;       }   }); }); 


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

jquery - Keeping Kendo Datepicker in min/max range -