Snippets of the day – Friday, January 10, 2014

Posted on Posted in Snippets

orange-leatherman

Here are some of the most recently published snippets!

How to collapse a div in html

This code shows how to collapse a div using a simple Javascript method.
The div display option toggles between ‘none’ and ‘block’, hiding or showing its content.
In the example you can collapse the div clicking both on a link or on a div, using the onclick event.

Open the snippet

Author:    lbottaro

Java: How to create a log4j Logger Manager using Singleton

How to create a log4j Logger Manager using Singleton

Open the snippet

Author:    MarcoDeMagistris

Leave a Reply

Your email address will not be published. Required fields are marked *