Categories
Code Musings Opinion Personal Tech Web

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 source, and it makes it look so childish – I dread to think what the new CBBC sites would look like!

I realise this is only a beta, and may well change considerably, but without a bit of a shrink I won’t be likely to use it as a homepage tab.

Categories
Code Tech Tips Web

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.