I have multiple classes that use static methods. These functions connect to the database using
$mysqli = new mysqli(DB_SERVER, DB_USER, DB_P
This is the shortest version I could come up with for Bootstrap 3.
$(document).ready(function() { if (hash = window.location.hash) { $('.nav-tabs a[href="' + hash + '"]').tab('show'); } });