subnet calculator @
javascript subnet calculator
The funny thing about a JavaScript Subnet Calculator is that JavaScript integers are only 16 bit. In order to do easy bit shifting you need 32 bit integers. This code weaves it's way through that issue by storing IP address octets in arrays with 4 integers. View source to see/grab the code.
You can use CIDR Netmask in the Network IP field (eg: Change the network class, network IP, subnet mask, or number of hosts to trigger calculations. This code does work on most browsers including FireFox, Safari, iPhone, iTouch, Android, Blackberry and even IE.
Changed layout to use Bootstrap 3.
if you have suggestions or comments, you can find me over here.