favicon fix

This commit is contained in:
N0rdye 2023-10-03 22:56:52 +05:00
parent 0cb486d61f
commit 08717e4583
2 changed files with 6 additions and 4 deletions

View File

@ -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"]);

View File

@ -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 = "-";
}