Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

Drupal - JS condition for frontpage and not

0 votes
23 views
added Nov 14 in Drupal by LC Marshal Lieutenant (14,830 points)
if ($('body').hasClass('front')) {
 // do something
}
else {
 // do something else
}

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...