favicon fix
This commit is contained in:
parent
0cb486d61f
commit
08717e4583
3
index.js
3
index.js
|
@ -431,6 +431,9 @@ app.get("/temp", (req,res) =>{try{
|
||||||
app.get("/htc/:hex",(req,res) =>{
|
app.get("/htc/:hex",(req,res) =>{
|
||||||
res.send(CssFilterConverter.hexToFilter(`#${req.params["hex"]}`));
|
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) =>{
|
app.post("/color",(req,res) =>{
|
||||||
let inp = req.body;
|
let inp = req.body;
|
||||||
func.img_recolor(res,inp["img"],inp["hex"]);
|
func.img_recolor(res,inp["img"],inp["hex"]);
|
||||||
|
|
|
@ -66,8 +66,8 @@ function create(clas,x,y,color = null,id,size,layer = 0){
|
||||||
if(id != "none"){obj.setAttribute("onclick",`obj_click("${id}")`);}
|
if(id != "none"){obj.setAttribute("onclick",`obj_click("${id}")`);}
|
||||||
// console.log(main_clas);
|
// console.log(main_clas);
|
||||||
if(main_clas.split("~p~").at(-1) == "Бизиборды"){
|
if(main_clas.split("~p~").at(-1) == "Бизиборды"){
|
||||||
obj.setAttribute("layer",99999);
|
obj.setAttribute("layer",9999);
|
||||||
obj.style.zIndex = 99999;
|
obj.style.zIndex = 9999;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
obj.setAttribute("layer",layer);
|
obj.setAttribute("layer",layer);
|
||||||
|
@ -84,8 +84,7 @@ function obj_click(id){
|
||||||
let cur_layer = obj.style.zIndex;
|
let cur_layer = obj.style.zIndex;
|
||||||
|
|
||||||
cur_obj = id;
|
cur_obj = id;
|
||||||
console.log(cur_layer,"99999");
|
if(cur_layer=="9999"){
|
||||||
if(cur_layer=="99999"){
|
|
||||||
document.getElementsByClassName("layer_changer")[0].style.pointerEvents = "none";
|
document.getElementsByClassName("layer_changer")[0].style.pointerEvents = "none";
|
||||||
document.getElementById("layer_inp").value = "-";
|
document.getElementById("layer_inp").value = "-";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user