Add navbar border checkbox

pull/1882/head v3.0.0-alpha
Abdullah Almsaeed 7 years ago
parent 0ba5f1c3ad
commit 65f370e23e

21
dist/js/demo.js vendored

@ -60,6 +60,26 @@
$container.append($navbar_variants)
var $checkbox_container = $('<div />', {
'class': 'mb-4'
})
var $navbar_border = $('<input />', {
type : 'checkbox',
value : 1,
checked: $('.main-header').hasClass('border-bottom'),
'class': 'mr-1'
}).on('click', function () {
if ($(this).is(':checked')) {
$('.main-header').addClass('border-bottom')
} else {
$('.main-header').removeClass('border-bottom')
}
console.log($(this).is(':checked'), 'hi')
})
$checkbox_container.append($navbar_border)
$checkbox_container.append('<span>Navbar border</span>')
$container.append($checkbox_container)
var sidebar_colors = [
'bg-primary',
@ -116,7 +136,6 @@
console.log('added ' + sidebar_class)
}))
var logo_skins = navbar_all_colors
$container.append('<h6>Brand Logo Variants</h6>')
var $logo_variants = $('<div />', {

Loading…
Cancel
Save