favicon fix

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

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