diff --git a/dist/js/demo.js b/dist/js/demo.js index ea13c61f7..ae4c79d05 100644 --- a/dist/js/demo.js +++ b/dist/js/demo.js @@ -223,9 +223,24 @@ $('.brand-link').removeClass('text-sm') } }) - var $text_sm_brand_container = $('
', { class: 'mb-4' }).append($text_sm_brand_checkbox).append('Brand small text') + var $text_sm_brand_container = $('
', { class: 'mb-1' }).append($text_sm_brand_checkbox).append('Brand small text') $container.append($text_sm_brand_container) + var $dark_mode_checkbox = $('', { + type: 'checkbox', + value: 1, + checked: $('body').hasClass('dark-mode'), + class: 'mr-1' + }).on('click', function () { + if ($(this).is(':checked')) { + $('body').addClass('dark-mode') + } else { + $('body').removeClass('dark-mode') + } + }) + var $dark_mode_container = $('
', { class: 'mb-4' }).append($dark_mode_checkbox).append('Dark Mode') + $container.append($dark_mode_container) + $container.append('
Navbar Variants
') var $navbar_variants = $('
', {