Couper, M. P, Tourangeau, R., Conrad, F. & Crawford, S. (2004). What they see is what we get: Response options for web surveys. Social Science Computer Review, 22, 111-127.
var url = document.location.toString();
if (url.match('#')) {
$('.nav-tabs a[href="#' + url.split('#')[1] + '"]').tab('show');
}
// Change hash for page-reload
$('.nav-tabs a').on('shown.bs.tab', function (e) {
window.location.hash = e.target.hash;
});
});