Creating a Drop-Down list of Sub-sites in SharePoint 2013 using JavaScript

I created a web part a little while back as a farm solution that would display a drop-down listing of sub-sites that could then be used for quickly navigating to these areas. More recently I decided to revisit the solution and use it as an excuse to brush up on my JavaScript. Be warned, this most definitely isn’t the best code ever and for me it was mostly just a learning exercise.
Continue reading...