-
Notifications
You must be signed in to change notification settings - Fork 122
/
bukahiya.js
77 lines (63 loc) · 4.19 KB
/
bukahiya.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
vketik1=kalimat.innerHTML;kalimat.innerHTML = "";
vketik1b=kalimata.innerHTML;kalimata.innerHTML = "";
vketik2=kalimatb.innerHTML;kalimatb.innerHTML = "";
vketik2b=kalimatc.innerHTML;kalimatc.innerHTML = "";
var aa=0,vketik1;
function fmketik1(){
wallpaper.style="transform: scale(1.5);";
}
function mketik1() {wallpaper.style="transform: scale(1.5);";if(aa<vketik1.length){kalimat.innerHTML += vketik1.charAt(aa);aa++;setTimeout(mketik1,40);}}
var ab=0,vketik1b;
function fmketik2(){
wallpaper.style="transform: scale(1);";
fthilang();ftganti=1;setTimeout(ftmuncul,200);
kalimat.innerHTML="";
}
function mketik2() {if(ab<vketik1b.length){kalimata.innerHTML += vketik1b.charAt(ab);ab++;setTimeout(mketik2,55);}}
var ac=0,vketik2;
function fmketik3(){
wallpaper.style="transform: scale(1.5);";
fthilang();ftganti=2;setTimeout(ftmuncul,200);
kalimata.innerHTML="";
}
function mketik3() {if(ac<vketik2.length){kalimatb.innerHTML += vketik2.charAt(ac);ac++;setTimeout(mketik3,47);}}
var ad=0,vketik2b;
function fmketik4(){
wallpaper.style="transform: scale(1);";
fthilang();ftganti=3;setTimeout(ftmuncul,200);
}
function mketik4() {if(ad<vketik2b.length){kalimatc.innerHTML += vketik2b.charAt(ad);ad++;setTimeout(mketik4,43);} if(ad==vketik2b.length){tombol();}}
function dilanjut(){wallpaper.style="transform: scale(1.5);";setTimeout(otomatis2,300);fthilang();ftganti=10;setTimeout(ftmuncul,300);Tombol.style="opacity:0;transform: scale(.1);";jikatom=1;setTimeout(tombol,1000);}
function otomatis() {befanimkata();setTimeout(animkata,400);}
function befanimkata(){kalimat.style="transform:scale(.3);";kalimatb.style="transform:scale(.3);";kalimatc.style="transform:scale(.3);";}
function animkata() {kalimat.style="transform:scale(1);";kalimatb.style="transform:scale(1);";kalimatc.style="transform:scale(1);";}
function otomatis2() {
kalimat.innerHTML = kalimat2.innerHTML;kalimat.style="margin-left:0;margin-right:0";
kalimat.style="";kalimata.innerHTML="";
kalimatb.innerHTML="";kalimatc.innerHTML="";
}
function otomatis3() {befanimkata3();setTimeout(animkata3,700);}
function befanimkata3(){kalimat.style="";kalimatb.style="";kalimat.style="opacity:0";kalimatb.style="opacity:0";}
function animkata3() {kalimat.innerHTML = kalimat3.innerHTML + balasan;kalimatb.innerHTML = kalimatb3.innerHTML;kalimat.style="opacity:1;font-size:18px;transition:none";kalimatb.style="opacity:1;font-size:17px;font-weight:400;transition:none";}
function ftmuncul(){
if(ftganti==0){fotoakhir.style="display:inline-flex;transition:all .7s ease;opacity:1;transform:scale(1)";}
if(ftganti==1){fotoakhir.src = fotoakhir1.src;fotoakhir.style="display:inline-flex;opacity:1;transition:all .7s ease;transform:scale(1);";}
if(ftganti==2){fotoakhir.src = fotoakhir2.src;fotoakhir.style="display:inline-flex;opacity:1;transition:all .7s ease;transform:scale(1);";}
if(ftganti==3){fotoakhir.src = fotoakhir3.src;fotoakhir.style="display:inline-flex;opacity:1;transition:all .7s ease;transform:scale(1);";}
if(ftganti==10){fotoakhir.src = fotoAkhir.src;fotoakhir.style="display:inline-flex;opacity:1;transition:all .7s ease;transform:scale(1);";}
}
function memulai(){suratin.style="transition:all 1s ease;transform:scale(.1);opacity:0";ket.style="transition:all 1s ease;transform:scale(.1);opacity:0";setTimeout(mulaikonten,300)}
function fthilang(){fotoakhir.style="display:inline-flex;opacity:.5;transition:all .7s ease;transform:scale(.1)";}
function jjfoto(){fotoakhir.style.animation="rto .8s infinite alternate";}
function tombol(){Tombol.style="opacity:1;transform: scale(1);margin-top:15px";
if(jikatom==0){ftom=1;}
if(jikatom==1){tmbl.innerHTML=tmbl2.innerHTML;ftom=2;}}
function multifungsi(){if(ftom==1){dilanjut();} if(ftom==2){dibalas();} if(ftom==5){menuju();}}
async function dibalas(){
setInterval(createHeart,200);
wallpaper.style="transform: scale(1)";
Tombol.style="opacity:0;transform: scale(.1);";
Content.style = "transition:all 1s ease;opacity:1;margin-top:7vh;";
jawab();
}
function stakhir(){tmbl.innerHTML="💌 Kirim";Tombol.style="opacity:1;transform: scale(1)";ftom=5;fungsi=0;}