MIF_E31220215/public/assets_admin/assets/js/script.min.js

1 line
5.3 KiB
JavaScript

// "use strict";$(document).ready(function(){$(".card-header-right .close-card").on("click",function(){var a=$(this);a.parents(".card").animate({opacity:"0","-webkit-transform":"scale3d(.3, .3, .3)",transform:"scale3d(.3, .3, .3)"});setTimeout(function(){a.parents(".card").remove()},800)});$(".card-header-right .reload-card").on("click",function(){var a=$(this);a.parents(".card").addClass("card-load");a.parents(".card").append('<div class="card-loader"><i class="fa fa-circle-o-notch rotate-refresh"></div>');setTimeout(function(){a.parents(".card").children(".card-loader").remove();a.parents(".card").removeClass("card-load")},3000)});$(".card-header-right .card-option .open-card-option").on("click",function(){var a=$(this);if(a.hasClass("fa-times")){a.parents(".card-option").animate({width:"30px",});$(this).removeClass("fa-times").fadeIn("slow");$(this).addClass("fa-wrench").fadeIn("slow")}else{a.parents(".card-option").animate({width:"140px",});$(this).addClass("fa-times").fadeIn("slow");$(this).removeClass("fa-wrench").fadeIn("slow")}});$(".card-header-right .minimize-card").on("click",function(){var d=$(this);var a=$(d.parents(".card"));var c=$(a).children(".card-block").slideToggle();$(this).toggleClass("fa-minus").fadeIn("slow");$(this).toggleClass("fa-plus").fadeIn("slow")});$(".card-header-right .full-card").on("click",function(){var c=$(this);var a=$(c.parents(".card"));a.toggleClass("full-card");$(this).toggleClass("fa-window-restore")});$("#more-details").on("click",function(){$(".more-details").slideToggle(500)});$(".mobile-options").on("click",function(){$(".navbar-container .nav-right").slideToggle("slow")});$(".search-btn").on("click",function(){$(".main-search").addClass("open");$(".main-search .form-control").animate({width:"200px",})});$(".search-close").on("click",function(){$(".main-search .form-control").animate({width:"0",});setTimeout(function(){$(".main-search").removeClass("open")},300)});$(document).ready(function(){$(".header-notification").click(function(){$(this).find(".show-notification").slideToggle(500);$(this).toggleClass("active")})});$(document).on("click",function(c){var a=$(".header-notification");if(a!==c.target&&!a.has(c.target).length){$(".show-notification").slideUp(300);$(".header-notification").removeClass("active")}});$.mCustomScrollbar.defaults.axis="yx";$("#styleSelector .style-cont").slimScroll({setTop:"1px",height:"calc(100vh - 320px)",});$(".main-menu").mCustomScrollbar({setTop:"1px",setHeight:"calc(100% - 56px)",});var b=$(window).height()-80;$(".main-friend-list").slimScroll({height:b,allowPageScroll:false,wheelStep:5,color:"#1b8bf9"});$("#search-friends").on("keyup",function(){var a=$(this).val().toLowerCase();$(".userlist-box .media-body .chat-header").each(function(){var c=$(this).text().toLowerCase();$(this).closest(".userlist-box")[c.indexOf(a)!==-1?"show":"hide"]()})});$(".displayChatbox").on("click",function(){var a=$(".pcoded").attr("vertical-placement");if(a=="right"){var c={direction:"left"}}else{var c={direction:"right"}}$(".showChat").toggle("slide",c,500)});$(".userlist-box").on("click",function(){var a=$(".pcoded").attr("vertical-placement");if(a=="right"){var c={direction:"left"}}else{var c={direction:"right"}}$(".showChat_inner").toggle("slide",c,500)});$(".back_chatBox").on("click",function(){var a=$(".pcoded").attr("vertical-placement");if(a=="right"){var c={direction:"left"}}else{var c={direction:"right"}}$(".showChat_inner").toggle("slide",c,500);$(".showChat").css("display","block")});$(".back_friendlist").on("click",function(){var a=$(".pcoded").attr("vertical-placement");if(a=="right"){var c={direction:"left"}}else{var c={direction:"right"}}$(".p-chat-user").toggle("slide",c,500);$(".showChat").css("display","block")});$('[data-toggle="tooltip"]').tooltip();Waves.init();Waves.attach(".flat-buttons",["waves-button"]);Waves.attach(".float-buttons",["waves-button","waves-float"]);Waves.attach(".float-button-light",["waves-button","waves-float","waves-light"]);Waves.attach(".flat-buttons",["waves-button","waves-float","waves-light","flat-buttons"]);$(".form-control").on("blur",function(){if($(this).val().length>0){$(this).addClass("fill")}else{$(this).removeClass("fill")}});$(".form-control").on("focus",function(){$(this).addClass("fill")})});$(document).ready(function(){$(".theme-loader").animate({opacity:"0"},1000);setTimeout(function(){$(".theme-loader").remove()},1000)});function toggleFullScreen(){var b=$(window).height()-10;if(!document.fullscreenElement&&!document.mozFullScreenElement&&!document.webkitFullscreenElement){if(document.documentElement.requestFullscreen){document.documentElement.requestFullscreen()}else{if(document.documentElement.mozRequestFullScreen){document.documentElement.mozRequestFullScreen()}else{if(document.documentElement.webkitRequestFullscreen){document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}}}}else{if(document.cancelFullScreen){document.cancelFullScreen()}else{if(document.mozCancelFullScreen){document.mozCancelFullScreen()}else{if(document.webkitCancelFullScreen){document.webkitCancelFullScreen()}}}}}$("body").append('<div class="fixed-button active"><a href="https://codedthemes.com/item/flash-able-bootstrap-admin-template/" target="_blank" class="btn btn-md btn-primary"><i class="fa fa-shopping-cart" aria-hidden="true"></i> Upgrade To Pro</a> </div>');var $window=$(window),nav=$(".fixed-button");