'use strict'; (function ($) { $(document).on('click', '.layout-builder .layout-builder-toggle', function () { $('.layout-builder').toggleClass('show'); }); $(".edit_document_deparment").change(function() { var archId = $("input[name='arch_id']"); var currentArchId = archId.val(); var currentText = currentArchId.split("/")[1]; var selectedId = $(this).find('option:selected').val(); if(currentText.length) { archId.val(selectedId + "/" + currentText); } else { archId.val(selectedId + "/"); } }); $(window).on('load', function () { setTimeout(function () { $('.layout-builder').removeClass('show'); }, 500); }); $('.body').append(`
Customizer

Layout

Some theme options can not be displayed in case of combined when they are not relevant each other. For that reason, you are adviced to try all theme options seperately.
`); var site_layout = localStorage.getItem('site_layout'); $('body').addClass(site_layout); $('.layout-builder .layout-builder-body input[type="radio"][data-layout="' + $('body').attr('class') + '"]').prop('checked', true); $('.layout-builder .layout-builder-body input[type="radio"]').click(function () { var class_names = ''; $('.layout-builder .layout-builder-body input[type="radio"]:checked').each(function () { class_names += ' ' + $(this).data('layout'); }); localStorage.setItem('site_layout', class_names); window.location.href = (window.location.href).replace('#', ''); }); $(document).on('click', '#btn-layout-builder', function () { }); $(document).on('click', '#btn-layout-builder-reset', function () { localStorage.removeItem('site_layout'); localStorage.removeItem('site_layout_dark'); window.location.href = (window.location.href).replace('#', ''); }); $(window).on('load', function () { if ($('body').hasClass('horizontal-side-menu') && $(window).width() > 768) { if ($('body').hasClass('layout-container')) { $('.side-menu .side-menu-body').wrap('
'); } else { $('.side-menu .side-menu-body').wrap('
'); } setTimeout(function () { $('.side-menu .side-menu-body > ul').append('
  • Other
  • '); }, 100); $('.side-menu .side-menu-body > ul > li').each(function () { var index = $(this).index(), $this = $(this); if (index > 7) { setTimeout(function () { $('.side-menu .side-menu-body > ul > li:last-child > ul').append($this.clone()); $this.addClass('d-none'); }, 100); } }); } }); $(document).on('click', '[data-attr="layout-builder-toggle"]', function () { $('.layout-builder').toggleClass('show'); return false; }); })(jQuery);