added footer small text checkbox in demo control sidebar

pull/2256/head
REJack 2019-09-20 10:51:21 +02:00
parent acd65cf524
commit 6c2104dc2d
No known key found for this signature in database
GPG Key ID: 9F3976CC630CC888
1 changed files with 15 additions and 0 deletions

15
dist/js/demo.js vendored
View File

@ -101,6 +101,21 @@
var $text_sm_sidebar_container = $('<div />', {'class': 'mb-1'}).append($text_sm_sidebar_checkbox).append('<span>Sidebar nav small text</span>')
$container.append($text_sm_sidebar_container)
var $text_sm_footer_checkbox = $('<input />', {
type : 'checkbox',
value : 1,
checked: $('.main-footer').hasClass('text-sm'),
'class': 'mr-1'
}).on('click', function () {
if ($(this).is(':checked')) {
$('.main-footer').addClass('text-sm')
} else {
$('.main-footer').removeClass('text-sm')
}
})
var $text_sm_footer_container = $('<div />', {'class': 'mb-1'}).append($text_sm_footer_checkbox).append('<span>Footer small text</span>')
$container.append($text_sm_footer_container)
var $flat_sidebar_checkbox = $('<input />', {
type : 'checkbox',
value : 1,