new file: .gitignore

new file:   index.js
	new file:   package-lock.json
	new file:   package.json
	new file:   public/lib/functions.js
	new file:   public/lib/html2canvas.js
	new file:   public/lib/inter.js
	new file:   public/lib/inter_temp.js
	new file:   public/lib/interact.js
	new file:   public/lib/interact.js.map
	new file:   public/lib/jquery.cookie.js
	new file:   public/lib/jquery.js
	new file:   server.js
	new file:   views/condition/lvl-1.ejs
	new file:   views/condition/lvl-2.ejs
	new file:   views/condition/lvl-3.ejs
	new file:   views/condition/lvl-4.ejs
	new file:   views/condition/lvl-5.ejs
	new file:   views/consecution/lvl-1.ejs
	new file:   views/consecution/lvl-2.ejs
	new file:   views/consecution/lvl-3.ejs
	new file:   views/consecution/lvl-4.ejs
	new file:   views/consecution/lvl-5.ejs
	new file:   views/looping/lvl-1.ejs
	new file:   views/looping/lvl-2.ejs
	new file:   views/looping/lvl-3.ejs
	new file:   views/looping/lvl-4.ejs
	new file:   views/looping/lvl-5.ejs
	new file:   views/lvls/lvls_1.ejs
	new file:   views/lvls/lvls_2.ejs
	new file:   views/main.ejs
	new file:   views/old/condition/lvl-1.ejs
	new file:   views/old/condition/lvl-2.ejs
	new file:   views/old/condition/lvl-3.ejs
	new file:   views/old/condition/lvl-4.ejs
	new file:   views/old/condition/lvl-5.ejs
	new file:   views/old/consecution/lvl-1.ejs
	new file:   views/old/consecution/lvl-2.ejs
	new file:   views/old/consecution/lvl-3.ejs
	new file:   views/old/consecution/lvl-4.ejs
	new file:   views/old/consecution/lvl-5.ejs
	new file:   views/old/looping/lvl-1.ejs
	new file:   views/old/looping/lvl-2.ejs
	new file:   views/old/looping/lvl-3.ejs
	new file:   views/old/looping/lvl-4.ejs
	new file:   views/old/looping/lvl-5.ejs
	new file:   views/static/404.ejs
	new file:   views/static/end.ejs
	new file:   views/static/header.ejs
	new file:   views/static/start.ejs
This commit is contained in:
2023-11-14 02:32:19 +05:00
commit d245bc717b
50 changed files with 27719 additions and 0 deletions

6
views/static/404.ejs Normal file
View File

@ -0,0 +1,6 @@
<%- include('../static/start.ejs') %>
<h1 style="justify-content: space-around; display: flex;">oops</h1>
<script>goto("/")</script>
<%- include('../static/end.ejs') %>

9
views/static/end.ejs Executable file
View File

@ -0,0 +1,9 @@
<!-- <button onclick="
Object.entries(code).forEach(([key,value]) => {
answer[key] = key;
document.getElementById(`ask-${key}`).appendChild(document.getElementById(`ans-${key}`));
});
check_task();
">выполнить</button> -->
</body>
</html>

33
views/static/header.ejs Normal file
View File

@ -0,0 +1,33 @@
<style>
.header{
display: flex;
padding: 5px;
margin: 5px;
justify-content: space-evenly;
margin-top: 20px;
margin-bottom: 40px;
}
.title{
display: flex;
justify-content: space-evenly;
}
</style>
<div class="title">
<h1><%= theme_name %> уровень <%= lvl %> </h1>
</div>
<div class="header">
<button onclick="goto('/')">На главную</button>
<div class="header_btn1"></div>
<div class="header_btn2"></div>
<div class="header_btn3"></div>
</div>
<script>
if(parseInt("<%= lvl %>") > 1){
let next_btn = document.createElement("button")
next_btn.setAttribute("onclick",`goto('/<%= theme %>/<%= lvl-1 %>')`);
next_btn.innerText = "предыдущий уровень";
document.getElementsByClassName("header_btn1")[0].innerHTML="";
document.getElementsByClassName("header_btn1")[0].appendChild(next_btn);
}
</script>

43
views/static/start.ejs Executable file
View File

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="/lib/interact.js"></script>
<script src="/lib/jquery.js"></script>
<script src="/lib/functions.js"></script>
<script src="/lib/jquery.cookie.js"></script>
</head>
<body>
<style>
*{
user-select: none;
font-size: 16pt;
}
.main{
margin: auto auto;
display: block;
width: 90vw;
}
.header{
display: flex;
}
.header h1{
margin: auto;
}
li{
list-style-type: none;
}
ul{
padding: 0px;
}
button{
padding: 5px;
border: 1px cornflowerblue solid;
border-radius: 5px;
background-color: white;
cursor: pointer;
}
</style>