2014-03-13 22:04:34 -07:00
|
|
|
$(function() {
|
2015-08-14 08:40:12 +02:00
|
|
|
// Initialize the tabs (Sass/SCSS) with jQuery-ui
|
|
|
|
$( ".slides ul" ).parent().tabs();
|
2014-03-13 22:04:34 -07:00
|
|
|
|
2015-08-14 08:20:00 +02:00
|
|
|
// Switch ALL the tabs (Sass/SCSS) together
|
|
|
|
var
|
|
|
|
noRecursion = false,
|
|
|
|
jqA = $( "a.ui-tabs-anchor" ),
|
|
|
|
jqASass = jqA.filter( ":contains('Sass')" ).click(function() {
|
|
|
|
if ( !noRecursion ) {
|
|
|
|
noRecursion = true;
|
|
|
|
jqASass.not( this ).click();
|
|
|
|
noRecursion = false;
|
|
|
|
}
|
|
|
|
}),
|
|
|
|
jqASCSS = jqA.filter( ":contains('SCSS')" ).click(function() {
|
|
|
|
if ( !noRecursion ) {
|
|
|
|
noRecursion = true;
|
|
|
|
jqASCSS.not( this ).click();
|
|
|
|
noRecursion = false;
|
|
|
|
}
|
|
|
|
})
|
|
|
|
;
|
2014-03-13 22:04:34 -07:00
|
|
|
});
|