芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/public/user/templates/js/main.min.js
"use strict";$(".success").on("click",(function(){$(".alert-animate").animate({opacity:"1",right:"20px"},200)})),document.querySelector("#switch").addEventListener("click",(function(){var wasDarkMode="1"===localStorage.getItem("dark");localStorage.setItem("dark",wasDarkMode?"0":"1"),localStorage.setItem("theme",wasDarkMode?"dark":"light"),document.documentElement.classList[wasDarkMode?"remove":"add"]("dark")})),"1"===localStorage.getItem("dark")?$("#flexSwitchCheckDefault").prop("checked",!0):$("#flexSwitchCheckDefault").prop("checked",!1),$(document).ready((function(){$(".notification-drop").on("click",(function(event){event.stopPropagation(),$(this).find(".open-notify").toggle()})),$(".open-notify").on("click",(function(event){event.stopPropagation()})),$(document).on("click",(function(){$(".open-notify").hide()}))}));var menu_btn=document.querySelector("#menu-btn"),sidebar=document.querySelector("#sidebar"),container=document.querySelector(".my-container");menu_btn.addEventListener("click",()=>{sidebar.classList.toggle("active-nav"),container.classList.toggle("active-cont")}),$(".containt-parent").on("click",(function(){$("#sidebar").addClass("active-nav")})),$(window).width()<992&&$(document).ready((function(){$(".input-btn").on("click",(function(event){event.stopPropagation(),$(".input-search").toggle()})),$(".input-search").on("click",(function(event){event.stopPropagation()})),$(document).on("click",(function(){$(".input-search").hide()}))})),$(document).ready((function(){$(".select2").select2()})),$(".list-parrent").on("change",(function(){$(this).closest(".param-ref").find(".select2-container .select2-selection--single").css("background","#F3F2FF")}));const selected=document.querySelector(".selected"),optionsContainer=document.querySelector(".options-container"),optionsList=document.querySelectorAll(".option");if(null!==selected&&(selected.addEventListener("click",()=>{optionsContainer.classList.toggle("active"),document.querySelector("#search").value="",document.querySelector("#search").dispatchEvent(new Event("keyup"))}),optionsList.forEach(option=>{option.addEventListener("click",()=>{selected.innerHTML=option.querySelector("label").innerHTML,optionsContainer.classList.remove("active")})})),null!==document.querySelector(".search-list")){var input=document.querySelector("#search"),items=document.querySelector(".search-list").getElementsByTagName("li");input.addEventListener("keyup",(function(ev){for(var text=ev.target.value,pat=new RegExp(text,"i"),i=0;i