фикс багов, сеттингов и т.д
This commit is contained in:
parent
f3b9702601
commit
d17712892e
3 changed files with 108 additions and 5 deletions
|
@ -489,7 +489,7 @@ button{
|
||||||
.submitPassword::before{
|
.submitPassword::before{
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background-image: url('./noise.png');
|
background-image: url('./image/noise.png');
|
||||||
background-repeat: repeat;
|
background-repeat: repeat;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -617,7 +617,7 @@ input {
|
||||||
.mainDiv::before{
|
.mainDiv::before{
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background-image: url('./noise.png');
|
background-image: url('./image/noise.png');
|
||||||
background-repeat: repeat;
|
background-repeat: repeat;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
|
@ -115,6 +115,109 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let leapYear = true
|
||||||
|
let nowMonth
|
||||||
|
async function lisinerMonth(event){
|
||||||
|
nowMonth = event.target.value
|
||||||
|
//console.log(nowMonth)
|
||||||
|
days = [];
|
||||||
|
switch(nowMonth){
|
||||||
|
case "01":
|
||||||
|
for (let i = 1; i <= 31; i++) {
|
||||||
|
let day = i.toString().padStart(2, '0');
|
||||||
|
days.push(day)}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "02":
|
||||||
|
console.log(leapYear, " проверка")
|
||||||
|
if(leapYear == true){
|
||||||
|
for (let i = 1; i <= 29; i++) {
|
||||||
|
let day = i.toString().padStart(2, '0');
|
||||||
|
days.push(day)}
|
||||||
|
} else if(leapYear == false){
|
||||||
|
for (let i = 1; i <= 28; i++) {
|
||||||
|
let day = i.toString().padStart(2, '0');
|
||||||
|
days.push(day)}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "03":
|
||||||
|
for (let i = 1; i <= 31; i++) {
|
||||||
|
let day = i.toString().padStart(2, '0');
|
||||||
|
days.push(day)}
|
||||||
|
break;
|
||||||
|
case "04":
|
||||||
|
for (let i = 1; i <= 30; i++) {
|
||||||
|
let day = i.toString().padStart(2, '0');
|
||||||
|
days.push(day)}
|
||||||
|
break;
|
||||||
|
case "05":
|
||||||
|
for (let i = 1; i <= 31; i++) {
|
||||||
|
let day = i.toString().padStart(2, '0');
|
||||||
|
days.push(day)}
|
||||||
|
break;
|
||||||
|
case "06":
|
||||||
|
for (let i = 1; i <= 30; i++) {
|
||||||
|
let day = i.toString().padStart(2, '0');
|
||||||
|
days.push(day)}
|
||||||
|
break;
|
||||||
|
case "07":
|
||||||
|
for (let i = 1; i <= 31; i++) {
|
||||||
|
let day = i.toString().padStart(2, '0');
|
||||||
|
days.push(day)}
|
||||||
|
break;
|
||||||
|
case "08":
|
||||||
|
for (let i = 1; i <= 31; i++) {
|
||||||
|
let day = i.toString().padStart(2, '0');
|
||||||
|
days.push(day)}
|
||||||
|
break;
|
||||||
|
case "09":
|
||||||
|
for (let i = 1; i <= 30; i++) {
|
||||||
|
let day = i.toString().padStart(2, '0');
|
||||||
|
days.push(day)}
|
||||||
|
break;
|
||||||
|
case "10":
|
||||||
|
for (let i = 1; i <= 31; i++) {
|
||||||
|
let day = i.toString().padStart(2, '0');
|
||||||
|
days.push(day)}
|
||||||
|
break;
|
||||||
|
case "11":
|
||||||
|
for (let i = 1; i <= 30; i++) {
|
||||||
|
let day = i.toString().padStart(2, '0');
|
||||||
|
days.push(day)}
|
||||||
|
break;
|
||||||
|
case "12":
|
||||||
|
for (let i = 1; i <= 31; i++) {
|
||||||
|
let day = i.toString().padStart(2, '0');
|
||||||
|
days.push(day)}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function lisinerYear(event){
|
||||||
|
let pickedYear = event.target.value
|
||||||
|
let leapYearChecker = pickedYear % 4
|
||||||
|
if(leapYearChecker != 0){
|
||||||
|
leapYear = false
|
||||||
|
if(nowMonth == "02"){
|
||||||
|
days = [];
|
||||||
|
for (let i = 1; i <= 28; i++) {
|
||||||
|
let day = i.toString().padStart(2, '0');
|
||||||
|
days.push(day)}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
leapYear = true
|
||||||
|
if(nowMonth == "02"){
|
||||||
|
days = [];
|
||||||
|
for (let i = 1; i <= 29; i++) {
|
||||||
|
let day = i.toString().padStart(2, '0');
|
||||||
|
days.push(day)}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
let rotated = false;
|
let rotated = false;
|
||||||
function rotate() {
|
function rotate() {
|
||||||
rotated = !rotated;
|
rotated = !rotated;
|
||||||
|
@ -199,7 +302,7 @@
|
||||||
{/each}
|
{/each}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="monthDropDown" bind:value={dateMonth}>
|
<select id="monthDropDown" bind:value={dateMonth} on:change={lisinerMonth}>
|
||||||
<option value="01">Январь</option>
|
<option value="01">Январь</option>
|
||||||
<option value="02">Февраль</option>
|
<option value="02">Февраль</option>
|
||||||
<option value="03">Март</option>
|
<option value="03">Март</option>
|
||||||
|
@ -214,7 +317,7 @@
|
||||||
<option value="12">Декабрь</option>
|
<option value="12">Декабрь</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="yearDropDown" bind:value={dateYear}>
|
<select id="yearDropDown" bind:value={dateYear} on:change={lisinerYear}>
|
||||||
{#each years as year}
|
{#each years as year}
|
||||||
<option value={year}>{year}</option>
|
<option value={year}>{year}</option>
|
||||||
{/each}
|
{/each}
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
if(codeExist == true){
|
if(codeExist == true){
|
||||||
code = window.location.hash.slice(6);
|
code = window.location.hash.slice(6);
|
||||||
verifAnswer = await VerificationEmail(token, code)
|
verifAnswer = await VerificationEmail(code,token)
|
||||||
if(verifAnswer == false){
|
if(verifAnswer == false){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue