From 08717e458367174b2e65f9f3562002a275ab2a92 Mon Sep 17 00:00:00 2001 From: N0rdye <dev@n0r.su> Date: Tue, 3 Oct 2023 22:56:52 +0500 Subject: [PATCH] favicon fix --- index.js | 3 +++ public/lib/inter.js | 7 +++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index bc5ddb6..5645b9f 100644 --- a/index.js +++ b/index.js @@ -431,6 +431,9 @@ app.get("/temp", (req,res) =>{try{ app.get("/htc/:hex",(req,res) =>{ res.send(CssFilterConverter.hexToFilter(`#${req.params["hex"]}`)); }) +app.get("/favicon.ico",(req,res) =>{ + res.redirect("public/img/Умничка лого с обводкой-02 1.png") +}) app.post("/color",(req,res) =>{ let inp = req.body; func.img_recolor(res,inp["img"],inp["hex"]); diff --git a/public/lib/inter.js b/public/lib/inter.js index 8e55ed4..77a8e3b 100644 --- a/public/lib/inter.js +++ b/public/lib/inter.js @@ -66,8 +66,8 @@ function create(clas,x,y,color = null,id,size,layer = 0){ if(id != "none"){obj.setAttribute("onclick",`obj_click("${id}")`);} // console.log(main_clas); if(main_clas.split("~p~").at(-1) == "Бизиборды"){ - obj.setAttribute("layer",99999); - obj.style.zIndex = 99999; + obj.setAttribute("layer",9999); + obj.style.zIndex = 9999; } else{ obj.setAttribute("layer",layer); @@ -84,8 +84,7 @@ function obj_click(id){ let cur_layer = obj.style.zIndex; cur_obj = id; - console.log(cur_layer,"99999"); - if(cur_layer=="99999"){ + if(cur_layer=="9999"){ document.getElementsByClassName("layer_changer")[0].style.pointerEvents = "none"; document.getElementById("layer_inp").value = "-"; }