Tag: js

  • BBC Homepage Beta Using jQuery

    The BBC Beta Homepage is using jQuery, but unfortunately it’s ugly. I should qualify that – I think it’s a good move to make the homepage more personalisable, but does it have to look so Web2.0? Big text was a fad a year ago, but it’s too informal for an internationally recognised and respected news…

  • JavaScript Bug – Modulo of small numbers

    It seems that there is a problem with the modulo function, ‘%’, in JavaScript. For example: 10 % 0.1 should equate to zero but comes out as 0.09999999999999945 probably due to some internal floating-point rounding errors. Easy solution (a hack really): Multiply both numbers by 1000 before using the modulo function.