-
Notifications
You must be signed in to change notification settings - Fork 0
/
gariox
89 lines (79 loc) · 2.98 KB
/
gariox
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
78
79
80
81
82
83
84
85
86
87
88
89
document.getElementById("loveIn").onclick = function() {
if(fungsiAwal==0){
audio.play();
loveIn.style="transition:all .8s ease;transform:scale(15);opacity:0";
ftAwal.style="opacity:0";
wallpaper.style="transform: scale(1);";
ket.style="display:none";
fungsiAwal=1;setTimeout(initengahan,300);setTimeout(bqmuncul,600)
}
}
aktigeser=0;thisgeser=1;
document.getElementById("bq").onclick = function() {
if(aktigeser==1){
setTimeout(kalimatakhir,400);hsementara();
}
}
function hsementara(){
ketlanjut.style="position:relative;";
thisgeser+=1;aktigeser=0;
}
function munculkembali(){
if(thisgeser<totalPesan){
ketlanjut.style="position:relative;opacity:.8";
aktigeser=1;
iden += 1;
pesanAkhir1 = inip[iden];
}
if(thisgeser==totalPesan){setTimeout(mulaiketikA,500);}
}
function aksiakhir(){
setTimeout(bqmuncul,400);
}
function initengahan(){
ftAwal.style="display:none";loveIn.style="display:none";ket.style="display:none";
Content.style = "opacity:1;margin-top:7vh";
}
function bqmuncul(){bq.style = "position:relative;opacity:1;visibility:visible;margin-top:15vh;transform: scale(1);";setTimeout(kalimatakhir,200);}
function tombol(){Tombol.style="opacity:1;transform: scale(1);";fungsi=1;}
document.getElementById("By").onclick = function() {
if(fungsi==1){Tombol.style="";menuju();fungsi=0;}
}
var i = 1;function defwp(){wallpaper.style="transform: scale(1)";}
function kalimatakhir(){
if(iden>1){
if(iden%2==0){wallpaper.style="transform: scale(1.5)";} else {wallpaper.style="transform: scale(1)";}
wallpaper.src = iniwp[iden];
}
kalimat.innerHTML="";
new TypeIt("#kalimat", {
strings: ["" + pesanAkhir1], startDelay: 10, speed: 50, cursor: true,
afterComplete: function(){
kalimat.innerHTML = pesanAkhir1;
munculkembali();
},}).go();
}
function mulaiketikA(){
setInterval(berjatuhan,250);
pesanAkhir.style="position:relative;opacity:1;visibility:visible;transform: scale(1)";
new TypeIt("#pesanAkhir", {
strings: ["" + pesanAkhir3], startDelay: 100, speed: 50, cursor: false, deleteSpeed: 20, breakLines: false, waitUntilVisible: true, lifelike: true,
afterComplete: function(){
pesanAkhir.style.animation="rto .8s infinite alternate";
setTimeout(tombol,700);
},}).go();
}
async function menuju(){
var { value: jawaban } = await swals.fire({
title: 'Message for Me 👉👈', input: 'text', allowOutsideClick: false, showCancelButton: false,
});
if(jawaban && jawaban.length < 100){
window.jawaban = jawaban;
pesanwhatsapp = jawaban;
await swals.fire('OK!', 'Send the answer to my WhatsApp, okay!', 'success');
window.location = "https://api.whatsapp.com/send?phone=&text=" + pesanwhatsapp;
tombol();
} else {
await swals.fire('Ups!', 'Answers cannot be empty or longer than 100 characters, OK!');jawab();
}
}