// Make all tables striped by default. $("table").addClass("table table-striped"); // Handle searches. // Relies on document having 'meta' element with name 'search-domain'. function google_search() { var query = document.getElementById("google-search").value; var domain = $("meta[name=search-domain]").attr("value"); window.open("https://www.google.com/search?q=" + query + "+site:" + domain); }