MediaWiki:Common.js: Difference between revisions
From Buddha-Nature
((by SublimeText.Mediawiker)) |
((by SublimeText.Mediawiker)) |
||
Line 24: | Line 24: | ||
$('#bnw-resources-button-1').click(funtion(){ | $('#bnw-resources-button-1').click(funtion(){ | ||
$('#bnw-resource-item-1').addClass('show'); | $('#bnw-resource-item-1').addClass('show'); | ||
$('#bnw-resource-item-1').siblings('.bnw-resource-item').removeClass('show'); | |||
}); | |||
$('#bnw-resources-button-2').click(funtion(){ | |||
$('#bnw-resource-item-2').addClass('show'); | |||
$('#bnw-resource-item-2').siblings('.bnw-resource-item').removeClass('show'); | |||
}); | |||
$('#bnw-resources-button-3').click(funtion(){ | |||
$('#bnw-resource-item-3').addClass('show'); | |||
$('#bnw-resource-item-3').siblings('.bnw-resource-item').removeClass('show'); | |||
}); | |||
$('#bnw-resources-button-4').click(funtion(){ | |||
$('#bnw-resource-item-4').addClass('show'); | |||
$('#bnw-resource-item-4').siblings('.bnw-resource-item').removeClass('show'); | |||
}); | |||
$('#bnw-resources-button-5').click(funtion(){ | |||
$('#bnw-resource-item-5').addClass('show'); | |||
$('#bnw-resource-item-5').siblings('.bnw-resource-item').removeClass('show'); | |||
}); | |||
$('#bnw-resources-button-6').click(funtion(){ | |||
$('#bnw-resource-item-6').addClass('show'); | |||
$('#bnw-resource-item-6').siblings('.bnw-resource-item').removeClass('show'); | |||
}); | |||
$('#bnw-resources-button-7').click(funtion(){ | |||
$('#bnw-resource-item-7').addClass('show'); | |||
$('#bnw-resource-item-7').siblings('.bnw-resource-item').removeClass('show'); | |||
}); | |||
$('#bnw-resources-button-8').click(funtion(){ | |||
$('#bnw-resource-item-8').addClass('show'); | |||
$('#bnw-resource-item-8').siblings('.bnw-resource-item').removeClass('show'); | |||
}); | |||
$('#bnw-resources-button-9').click(funtion(){ | |||
$('#bnw-resource-item-9').addClass('show'); | |||
$('#bnw-resource-item-9').siblings('.bnw-resource-item').removeClass('show'); | |||
}); | |||
$('#bnw-resources-button-10').click(funtion(){ | |||
$('#bnw-resource-item-10').addClass('show'); | |||
$('#bnw-resource-item-10').siblings('.bnw-resource-item').removeClass('show'); | |||
}); | }); | ||
}); | }); |
Revision as of 17:02, 23 October 2017
mw.loader.load( 'https://fonts.googleapis.com/css?family=Crimson+Text:400,400i,700', 'text/css' );
mw.loader.load( 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css', 'text/css' );
mw.loader.load( 'https://use.fontawesome.com/bd289233d5.js' );
mw.loader.load( 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css', 'text/css' );
mw.loader.load( 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js' );
mw.loader.load( 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js' );
mw.loader.load( 'https://code.jquery.com/jquery-3.2.1.slim.min.js' );
// Safari 3.0+ "[object HTMLElementConstructor]"
var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || safari.pushNotification);
if (isSafari = true) {
$('#navbar-main').css('background','rgba(16, 55, 82, 0.62)')
}
$(document).ready(function(){
$('.bnw-resources-button').click(function(){
$(this).addClass("active");
$(this).siblings('.bnw-resources-button').removeClass("active");
});
$('#bnw-resources-button-1').click(funtion(){
$('#bnw-resource-item-1').addClass('show');
$('#bnw-resource-item-1').siblings('.bnw-resource-item').removeClass('show');
});
$('#bnw-resources-button-2').click(funtion(){
$('#bnw-resource-item-2').addClass('show');
$('#bnw-resource-item-2').siblings('.bnw-resource-item').removeClass('show');
});
$('#bnw-resources-button-3').click(funtion(){
$('#bnw-resource-item-3').addClass('show');
$('#bnw-resource-item-3').siblings('.bnw-resource-item').removeClass('show');
});
$('#bnw-resources-button-4').click(funtion(){
$('#bnw-resource-item-4').addClass('show');
$('#bnw-resource-item-4').siblings('.bnw-resource-item').removeClass('show');
});
$('#bnw-resources-button-5').click(funtion(){
$('#bnw-resource-item-5').addClass('show');
$('#bnw-resource-item-5').siblings('.bnw-resource-item').removeClass('show');
});
$('#bnw-resources-button-6').click(funtion(){
$('#bnw-resource-item-6').addClass('show');
$('#bnw-resource-item-6').siblings('.bnw-resource-item').removeClass('show');
});
$('#bnw-resources-button-7').click(funtion(){
$('#bnw-resource-item-7').addClass('show');
$('#bnw-resource-item-7').siblings('.bnw-resource-item').removeClass('show');
});
$('#bnw-resources-button-8').click(funtion(){
$('#bnw-resource-item-8').addClass('show');
$('#bnw-resource-item-8').siblings('.bnw-resource-item').removeClass('show');
});
$('#bnw-resources-button-9').click(funtion(){
$('#bnw-resource-item-9').addClass('show');
$('#bnw-resource-item-9').siblings('.bnw-resource-item').removeClass('show');
});
$('#bnw-resources-button-10').click(funtion(){
$('#bnw-resource-item-10').addClass('show');
$('#bnw-resource-item-10').siblings('.bnw-resource-item').removeClass('show');
});
});