Jquery not working in Chrome and Internet Explorer

Jquery not working in Chrome and Internet Explorer

I'm working on a Wordpress theme. On the header I check if this is the first visit (the user just entered the website).

If this is the first visit, an animation appears. Animation = a sidebar appears in the middle of the page, in some miliseconds it opens and the page appears. In the code, ub_sb_closed_on_hp is an option that sets only the sidebar to appear for the home page.

It works under Mozilla, but it doesn't work under Internet Explorer and Chrome. On IE and Chrome the animation appears on all the pages.


See the code here: http://paste.laravel.com/lFt


Here is the page Source Code viewed from the browser: http://paste.laravel.com/lFX