From d476787486a89d08dfa6069330b3733f20027f27 Mon Sep 17 00:00:00 2001 From: N0rdye Date: Tue, 3 Oct 2023 23:03:11 +0500 Subject: [PATCH] layer --- public/{img => }/favicon.ico | Bin views/project.ejs | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename public/{img => }/favicon.ico (100%) diff --git a/public/img/favicon.ico b/public/favicon.ico similarity index 100% rename from public/img/favicon.ico rename to public/favicon.ico diff --git a/views/project.ejs b/views/project.ejs index 6f91742..d10e6ca 100644 --- a/views/project.ejs +++ b/views/project.ejs @@ -441,7 +441,7 @@ let obj = document.getElementById(cur_obj); if(obj != null){ let cur_layer = obj.style.zIndex; - if (type == "up" && cur_layer < 99999){ + if (type == "up" && cur_layer < 9999){ objs[obj.classList[0]][obj.getAttribute("id")].layer = parseInt(cur_layer) + 1; obj.style.zIndex = parseInt(cur_layer) + 1; document.getElementById("layer_inp").value = parseInt(cur_layer) + 1; @@ -452,7 +452,7 @@ } else if ((type == "inp")){ let inp_val = parseInt(document.getElementById("layer_inp").value); - if(inp_val >= 0 && inp_val < 99999){ + if(inp_val >= 0 && inp_val < 9999){ objs[obj.classList[0]][obj.getAttribute("id")].layer = inp_val; obj.style.zIndex = inp_val; }