-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
198 lines (187 loc) · 4.89 KB
/
script.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
//Onay Başla
function onayli() {
Swal.fire({
icon: 'success',
title: 'Başarılı!',
text: 'Yaptığın İşlem Başarıyla Tamamlandı!',
confirmButtonColor:"#11bdac",
confirmButtonText: "Tamamdır"
})
}
//Onay Bitir
//Red Başla
function redli() {
Swal.fire({
icon: 'error',
title: 'Hopp!',
text: 'Hatalı işlem uygulandı!',
confirmButtonColor:"#11bdac",
confirmButtonText: "Tamamdır"
})
}
//Red Bitir
//Soru Başla
function sorulu() {
Swal.fire({
icon: 'question',
title: 'Bir Saniye',
text: 'Devam Etmek İstiyor Musun?',
confirmButtonColor:"#11bdac",
confirmButtonText: "Evet"
})
}
//Soru Bitir
function ayakli() {
Swal.fire({
title: 'Webmaster',
text: 'Slipknot#2494 (discord)',
confirmButtonColor:"#11bdac",
confirmButtonText: "Napim",
footer: 'Design By Slip_Bey'
})
}
function bilgili() {
Swal.fire({
icon: 'info',
title: 'Dikkat!',
text: 'Buradan sonrası hazır değil.',
confirmButtonColor:"#11bdac",
confirmButtonText: "Devam Et"
})
}
function evthyr() {
Swal.fire({
title: 'Bir Saniye',
text: "Hangisini Tercih Ediyorsun?",
icon: 'question',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Sil',
cancelButtonText: 'Silme!'
}).then((result) => {
if (result.isConfirmed) {
Swal.fire({
icon: 'success',
title: 'Başarılı!',
text: 'Yaptığın İşlem Başarıyla Tamamlandı!',
confirmButtonColor:"#11bdac",
confirmButtonText: "Tamamdır"
})
}
})
}
function resimli() {
Swal.fire({
title: 'Penguenler Hakkında',
text: 'Penguenler Bir Dinazordur(!)',
imageUrl: 'https://cdn.discordapp.com/attachments/580471932043001866/820989447638089748/9k.png',
imageWidth: 400,
imageHeight: 200,
imageAlt: 'Custom image',
confirmButtonColor: '#11bdac',
confirmButtonText: 'Tamam',
})
}
function sorulumu() {
Swal.mixin({
input: 'text',
confirmButtonText: 'İlerle →',
showCancelButton: true,
progressSteps: ['1', '2', '3']
}).queue([
{
title: 'Soru 1',
text: 'Adın Ne'
},
{
title: 'Soru 2',
text: 'Yaşın kaç'
},
{
title: 'Soru 3',
text: 'Mesleğin ne'
}
]).then((result) => {
if (result.value) {
const answers = JSON.stringify(result.value)
Swal.fire({
icon: success,
title: 'Başarılı!',
html: `
Cevapların:
<pre><code>${answers}</code></pre>
`,
confirmButtonColor: '#3085d6',
confirmButtonText: 'Tamamdır',
cancelButtonText: 'Silme!',
cancelButtonColor: '#d33'
})
}
})
}
function ipadres() {
const ipAPI = '//api.ipify.org?format=json'
Swal.queue([{
title: 'IP Adresini Görmek ister misin ?',
confirmButtonColor: '#3085d6',
confirmButtonText: 'Gör',
text: 'Görmek İstersen Tıkla!',
showLoaderOnConfirm: true,
preConfirm: () => {
return fetch(ipAPI)
.then(response => response.json())
.then(data => Swal.insertQueueStep(data.ip))
.catch(() => {
Swal.insertQueueStep({
icon: 'error',
title: 'İşlem Başarısız!',
text: 'IP Adresinizi Çekemedim!',
confirmButtonColor:"#11bdac",
confirmButtonText: "Tamamdır"
})
})
}
}])
}
function tikla() {
Swal.fire('Öylesine Bir Mesaj')
}
function cssile() {
Swal.fire('Öylesine Bir Mesaj')
}
function success() {
Swal.fire({
icon: 'success',
confirmButtonColor:"#11bdac",
confirmButtonText: "Tamam."
})
}
function error() {
Swal.fire({
icon: 'error',
confirmButtonColor:"#11bdac",
confirmButtonText: "Tamam."
})
}
function warning() {
Swal.fire({
icon: 'warning',
confirmButtonColor:"#11bdac",
confirmButtonText: "Tamam."
})
}
function info() {
Swal.fire({
icon: 'info',
confirmButtonColor:"#11bdac",
confirmButtonText: "Tamam."
})
}
function question() {
Swal.fire({
icon: 'question',
confirmButtonColor:"#11bdac",
confirmButtonText: "Tamam."
})
}