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 http://bitcoin.org/.

Anyway, that has nothing to do with this. The thing is that I decided to go for http://cacert.org/ certificates. Why?

  • They're free
  • They do the work; which is encrypting …