mirror of https://github.com/lukechilds/docs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
276 B
11 lines
276 B
6 years ago
|
switcherTab('uk-tab-instance');
|
||
|
|
||
|
function switcherTab(id){
|
||
|
$('#'+id+' a[href = "'+window.location.hash+'"]').parent('li').click();
|
||
|
|
||
|
$('#'+id+' a').click(function(){
|
||
|
var val = $(this).attr('href');
|
||
|
window.location.hash = val.replace("#", "");
|
||
|
});
|
||
|
}
|