recentpopularlog in


« earlier   
[v4] Enable URL anchor links to automatically load NAV tabs · Issue #25220 · twbs/bootstrap
Here is a code that handles a) changing the url on tab click and b) switching to it:

$(document).ready(() => {
var url = window.location.href;
if (url.indexOf("#") > 0){
var activeTab = url.substring(url.indexOf("#") + 1);
$('.nav[role="tablist"] a[href="#'+activeTab+'"]').tab('show');

$('a[role="tab"]').on("click", function() {
var newUrl;
const hash = $(this).attr("href");
newUrl = url.split("#")[0] + hash;
history.replaceState(null, null, newUrl);
Indeed it would be great if it was a default and/or switchable feature (via Sass variables).
bootstrap  JQuery  UIDesign 
4 days ago by cnk
All The Apps That I Pay For
Maybe it helps some other devs out there (to find an idea or something to work on), but here are the services that I pay for to run my business: • Heroku (~$200/month): Running 3 different projects, and some with jobs servers as well • Upwork (~$1000/month): Freelancers. I especially use Upwork
business  reference  startup  bootstrap  entrepeneurship 
5 days ago by flannel

Copy this bookmark:

to read