Skip to content

Commit

Permalink
snow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Jan 4, 2024
1 parent c91f0d9 commit cd8adbe
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@800&family=Roboto+Mono&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="https://fu.andcool.ru/favicon.ico">
</head>
<style>
body{
Expand Down
Binary file added web/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<title>File uploader</title>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@800&family=Roboto+Mono&display=swap" rel="stylesheet">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="login/script.js"></script>
Expand Down
1 change: 1 addition & 0 deletions web/login/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<link rel="stylesheet" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="script.js"></script>
<link rel="icon" type="image/x-icon" href="https://fu.andcool.ru/favicon.ico">
</head>
<script>
function register_page(){
Expand Down
18 changes: 8 additions & 10 deletions web/snowflakes.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,18 @@ class Circle{
function run_anim(){
let table = document.getElementById('canvas');
let vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0);
let count = 30//Math.round(vw * vh / 10000);
table.style.display = "block";
let count = 30

const date = new Date();
let day = date.getDate();
let month = date.getMonth() + 1;
if (!((month == 12 && day > 20) || (month == 1 && day < 15)) || vw < 900) {
let snow_btn = document.getElementById('snow_btn');
snow_btn.style.display = "none";
return;
}
if( localStorage.getItem("disable_snow") ){
return;
}
if (!((month == 12 && day > 20) || (month == 1 && day < 5)) || vw < 900) return;

if( localStorage.getItem("disable_snow"))return;

let snow_btn = document.getElementById('snow_btn');
snow_btn.style.display = "block";
table.style.display = "block";

for (let x = 0; x < count; x++){
var snowflake = document.createElement("p");
Expand Down
1 change: 1 addition & 0 deletions web/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ nav a:hover{
}

#snow_btn{
display: none;
position: absolute;
top: 0px;
left: 0px;
Expand Down

0 comments on commit cd8adbe

Please sign in to comment.