// ========================================================= // Light Bootstrap Dashboard - v2.0.1 // ========================================================= // // Product Page: https://www.creative-tim.com/product/light-bootstrap-dashboard // Copyright 2019 Creative Tim (https://www.creative-tim.com) // Licensed under MIT (https://github.com/creativetimofficial/light-bootstrap-dashboard/blob/master/LICENSE) // // Coded by Creative Tim // // ========================================================= // // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. var searchVisible = 0; var transparent = true; var transparentDemo = true; var fixedTop = false; var navbar_initialized = false; var mobile_menu_visible = 0, mobile_menu_initialized = false, toggle_initialized = false, bootstrap_nav_initialized = false, $sidebar, isWindows; $(document).ready(function() { window_width = $(window).width(); // check if there is an image set for the sidebar's background lbd.checkSidebarImage(); // Init navigation toggle for small screens if (window_width <= 991) { lbd.initRightMenu(); } // Activate the tooltips $('[rel="tooltip"]').tooltip(); // Activate regular switches if ($("[data-toggle='switch']").length != 0) { $("[data-toggle='switch']").bootstrapSwitch(); } $('.form-control').on("focus", function() { $(this).parent('.input-group').addClass("input-group-focus"); }).on("blur", function() { $(this).parent(".input-group").removeClass("input-group-focus"); }); // Fixes sub-nav not working as expected on IOS $('body').on('touchstart.dropdown', '.dropdown-menu', function(e) { e.stopPropagation(); }); }); // activate collapse right menu when the windows is resized $(window).resize(function() { if ($(window).width() <= 991) { lbd.initRightMenu(); } }); lbd = { misc: { navbar_menu_visible: 0 }, checkSidebarImage: function() { $sidebar = $('.sidebar'); image_src = $sidebar.data('image'); if (image_src !== undefined) { sidebar_container = '