File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/yogi/documentation/js/custom.js
Back
$(function() { "use strict"; $(".preloader").fadeOut(); // ============================================================== // Theme options // ============================================================== // ============================================================== // sidebar-hover // ============================================================== $(".left-sidebar").hover( function() { $(".navbar-header").addClass("expand-logo"); }, function() { $(".navbar-header").removeClass("expand-logo"); } ); // this is for close icon when navigation open in mobile view $(".nav-toggler").on('click', function() { $("#main-wrapper").toggleClass("show-sidebar"); $(".nav-toggler i").toggleClass("ti-menu"); }); $(".nav-lock").on('click', function() { $("body").toggleClass("lock-nav"); $(".nav-lock i").toggleClass("mdi-toggle-switch-off"); $("body, .page-wrapper").trigger("resize"); }); $(".search-box a, .search-box .app-search .srh-btn").on('click', function() { $(".app-search").toggle(200); $(".app-search input").focus(); }); // ============================================================== // Right sidebar options // ============================================================== $(function() { $(".service-panel-toggle").on('click', function() { $(".customizer").toggleClass('show-service-panel'); }); $('.page-wrapper').on('click', function() { $(".customizer").removeClass('show-service-panel'); }); }); // ============================================================== // This is for the floating labels // ============================================================== $('.floating-labels .form-control').on('focus blur', function(e) { $(this).parents('.form-group').toggleClass('focused', (e.type === 'focus' || this.value.length > 0)); }).trigger('blur'); // ============================================================== //tooltip // ============================================================== $(function() { $('[data-toggle="tooltip"]').tooltip() }) // ============================================================== //Popover // ============================================================== $(function() { $('[data-toggle="popover"]').popover() }) // ============================================================== // Perfact scrollbar // ============================================================== $('.message-center, .customizer-body, .scrollable').perfectScrollbar({ wheelPropagation: !0 }); // ============================================================== // Resize all elements // ============================================================== $("body, .page-wrapper").trigger("resize"); $(".page-wrapper").delay(20).show(); // ============================================================== // To do list // ============================================================== $(".list-task li label").click(function() { $(this).toggleClass("task-done"); }); // ============================================================== // Collapsable cards // ============================================================== $('a[data-action="collapse"]').on('click', function(e) { e.preventDefault(); $(this).closest('.card').find('[data-action="collapse"] i').toggleClass('ti-minus ti-plus'); $(this).closest('.card').children('.card-body').collapse('toggle'); }); // Toggle fullscreen $('a[data-action="expand"]').on('click', function(e) { e.preventDefault(); $(this).closest('.card').find('[data-action="expand"] i').toggleClass('mdi-arrow-expand mdi-arrow-compress'); $(this).closest('.card').toggleClass('card-fullscreen'); }); // For Custom File Input $('.custom-file-input').on('change',function(){ //get the file name var fileName = $(this).val(); //replace the "Choose a file" label $(this).next('.custom-file-label').html(fileName); }) });
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings