Archive > Tag: Javascript

HowTo: Change your css according to client's time

I am no fan of javascript. In fact, I despise it. But, recently, it occured to me that it would be cool to change the CSS theme according to the client's time.

Here's how:

function change_css_according_to_time() {
    var d = new Date();
    var h = d.getHours();

    if ( h >= 7 && h <= 19 ) {
        console …

Howto: Check if a browser has CACert installed as an authority

Well, I am working on a project to sell virtualization instances, a.k.a. vps, in <a href="http://bitcoin.org/">Bitcoin</a>.

Anyway, that has nothing to do with this. The thing is that I decided to go for <a href="http://cacert.org/">CACert.org</a>'s certificates …