ya_sir
commited on
Create index.html
Browse files- index.html +3 -635
index.html
CHANGED
@@ -4,6 +4,7 @@
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
|
|
|
7 |
<script type='text/javascript'>
|
8 |
window.smartlook||(function(d) {
|
9 |
var o=smartlook=function(){ o.api.push(arguments)},h=d.getElementsByTagName('head')[0];
|
@@ -20,400 +21,7 @@
|
|
20 |
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8419334759638161"
|
21 |
crossorigin="anonymous"></script>
|
22 |
<title>AI Image Creator</title>
|
23 |
-
<style>
|
24 |
-
html, body {
|
25 |
-
margin: 0;
|
26 |
-
padding: 0;
|
27 |
-
box-sizing: border-box;
|
28 |
-
overflow-x: hidden !important;
|
29 |
-
}
|
30 |
-
body {
|
31 |
-
background-color: #000000;
|
32 |
-
margin: 0;
|
33 |
-
}
|
34 |
-
#main {
|
35 |
-
display: flex;
|
36 |
-
flex-direction: column;
|
37 |
-
margin: 50px;
|
38 |
-
margin: auto;
|
39 |
-
}
|
40 |
-
#cont {
|
41 |
-
background-color: #030303;
|
42 |
-
padding: 0px;
|
43 |
-
border-radius: 12px;
|
44 |
-
box-shadow: 8px 8px 16px #050505, -8px -8px 16px #080808;
|
45 |
-
display: flex;
|
46 |
-
align-items: center;
|
47 |
-
background: linear-gradient(black, black) padding-box,
|
48 |
-
linear-gradient(to left, cyan, purple) border-box;
|
49 |
-
border-radius: 12px;
|
50 |
-
border: 2.5px solid transparent;
|
51 |
-
width: 70%;
|
52 |
-
height: 9vh;
|
53 |
-
margin: auto;
|
54 |
-
margin-top: 5%;
|
55 |
-
margin-bottom: 20px;
|
56 |
-
}
|
57 |
-
#inp {
|
58 |
-
flex-grow: 1;
|
59 |
-
padding: 10px;
|
60 |
-
margin: 10px;
|
61 |
-
background: transparent;
|
62 |
-
border: none;
|
63 |
-
border-radius: 8px;
|
64 |
-
box-shadow: linear-gradient(145deg, rgb(0, 249, 153), #ff002b);
|
65 |
-
color: #fff;
|
66 |
-
outline: none;
|
67 |
-
min-height:40px;
|
68 |
-
}
|
69 |
-
#cont button {
|
70 |
-
padding: 2.5vh 4.6vh;
|
71 |
-
margin: 1vh;
|
72 |
-
background: linear-gradient(155deg, rgb(0, 149, 249), #9D00FF, rgb(255, 0, 43));
|
73 |
-
border: none;
|
74 |
-
border-radius: 8px;
|
75 |
-
color: #fff;
|
76 |
-
cursor: pointer;
|
77 |
-
}
|
78 |
-
#cont button:hover {
|
79 |
-
background: linear-gradient(145deg, #00ffab, rgb(255, 0, 43));
|
80 |
-
}
|
81 |
-
#as {
|
82 |
-
display: flex;
|
83 |
-
flex-direction: row;
|
84 |
-
width: 70%;
|
85 |
-
margin: auto;
|
86 |
-
justify-content: space-between;
|
87 |
-
}
|
88 |
-
#as button {
|
89 |
-
background-color: #0a0a0a;
|
90 |
-
border: none;
|
91 |
-
padding: 3vh 4.5vh;
|
92 |
-
font-size: 15px;
|
93 |
-
color: #ffffff;
|
94 |
-
cursor: pointer;
|
95 |
-
border-radius: 12px;
|
96 |
-
transition: box-shadow 0.3s ease-in-out;
|
97 |
-
}
|
98 |
-
#model{
|
99 |
-
background-color: #181717;
|
100 |
-
border: none;
|
101 |
-
padding: 3vh 4.5vh;
|
102 |
-
font-size: 15px;
|
103 |
-
color: #ffffff;
|
104 |
-
cursor: pointer;
|
105 |
-
border-radius: 12px;
|
106 |
-
transition: box-shadow 0.3s ease-in-out;
|
107 |
-
|
108 |
-
padding: 0px 0px 0px 20px ;
|
109 |
-
}
|
110 |
-
#as button:hover {
|
111 |
-
box-shadow: 15px 15px 30px #0d0d0d, -15px -15px 30px #1a1a1a; /* Adjusted shadow and highlight on hover */
|
112 |
-
}
|
113 |
-
@media only screen and (max-width: 600px) {
|
114 |
-
#cont {
|
115 |
-
width: 90%;
|
116 |
-
margin-bottom: 20px;
|
117 |
-
}
|
118 |
-
#main{
|
119 |
-
width: 90%;
|
120 |
-
}
|
121 |
-
#cont button {
|
122 |
-
padding: 15px 15px; /* Adjust button padding for smaller screens */
|
123 |
-
}
|
124 |
-
#as{
|
125 |
-
width: 88%;
|
126 |
-
}
|
127 |
-
#as button{
|
128 |
-
|
129 |
-
padding: 15px 20px; /* Adjust button padding for smaller screens */
|
130 |
-
}
|
131 |
-
.mod{
|
132 |
-
|
133 |
-
}
|
134 |
-
}
|
135 |
-
@media only screen and (max-width: 365px){
|
136 |
-
#cont{
|
137 |
-
width: 94%;
|
138 |
-
}
|
139 |
-
#main{
|
140 |
-
width: 94%;
|
141 |
-
}
|
142 |
-
#as{
|
143 |
-
width: 94%;
|
144 |
-
}
|
145 |
-
}
|
146 |
-
dialog{
|
147 |
-
background: rgba(29, 29, 29, 1);
|
148 |
-
border-radius: 16px;
|
149 |
-
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
|
150 |
-
margin-top: 20px;
|
151 |
-
border: 1px solid rgba(14, 13, 13, 0.3);
|
152 |
-
z-index: 100;
|
153 |
-
background: "Black";
|
154 |
-
}
|
155 |
-
#sli{
|
156 |
-
display: flex;
|
157 |
-
flex-direction: row;
|
158 |
-
align-items: center;
|
159 |
-
color: #eeeeee;
|
160 |
-
}
|
161 |
-
label{
|
162 |
-
font-family: 'Barlow Condensed';
|
163 |
-
|
164 |
-
font-size: 21px;
|
165 |
-
margin-right: 10px;
|
166 |
-
}
|
167 |
-
#sli input{
|
168 |
-
border: 1px solid rgb(137, 9, 223);
|
169 |
-
outline: none;
|
170 |
-
border-radius: 5px;
|
171 |
-
padding: 7px 20px;
|
172 |
-
background-color: transparent ;
|
173 |
-
color: white;
|
174 |
-
font-family: 'Barlow Condensed';
|
175 |
-
}
|
176 |
-
#Apply{
|
177 |
-
background-color: rgb(0, 247, 173);
|
178 |
-
padding: 5px 10px;
|
179 |
-
border: none;
|
180 |
-
color: #000000;
|
181 |
-
font-weight:500;
|
182 |
-
font-family: Arial, Helvetica, sans-serif;
|
183 |
-
font-size: 15px;
|
184 |
-
border-radius: 4px;
|
185 |
-
}
|
186 |
-
#close{
|
187 |
-
float: right;background-color: rgb(223, 7, 79); padding: 5px 10px;
|
188 |
-
border: none;
|
189 |
-
color: #000000;
|
190 |
-
font-weight:500;
|
191 |
-
font-family: Arial, Helvetica, sans-serif;
|
192 |
-
font-size: 15px;
|
193 |
-
border-radius: 4px;
|
194 |
-
}
|
195 |
-
#styles{
|
196 |
-
display: flex;
|
197 |
-
flex-direction: row;
|
198 |
-
gap: 6px;
|
199 |
-
color: white;
|
200 |
-
font-family: 'Barlow Condensed';
|
201 |
-
font-size: 20px;
|
202 |
-
flex-wrap: wrap;
|
203 |
-
|
204 |
-
}
|
205 |
-
|
206 |
-
|
207 |
-
@media screen and (min-width: 500px) and (max-width: 720px) {
|
208 |
-
dialog{
|
209 |
-
|
210 |
-
max-width: 420px;
|
211 |
-
}
|
212 |
-
|
213 |
-
#cont{
|
214 |
-
height: 7vh;
|
215 |
-
}
|
216 |
-
}
|
217 |
-
#styles{
|
218 |
-
align-items: center;
|
219 |
-
justify-content: center;
|
220 |
-
}
|
221 |
-
@media screen and (max-width: 500px) {
|
222 |
-
.ad{
|
223 |
-
display: flex;
|
224 |
-
flex-direction: row;
|
225 |
-
}
|
226 |
-
dialog {
|
227 |
-
max-width: 300px;
|
228 |
-
}
|
229 |
-
|
230 |
-
|
231 |
-
#jd {
|
232 |
-
font-size: 14px;
|
233 |
-
}
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
#styles{
|
238 |
-
align-items: center;
|
239 |
-
justify-content: center;
|
240 |
-
}
|
241 |
-
}
|
242 |
-
#jd{
|
243 |
-
margin: 10px;
|
244 |
-
padding: 5px;
|
245 |
-
background-color: transparent;
|
246 |
-
color: #eeeeee;
|
247 |
-
margin-right: 0;
|
248 |
-
margin-left: 0;
|
249 |
-
background: linear-gradient(black, rgb(0, 0, 0)) padding-box,
|
250 |
-
linear-gradient(to right, rgb(1, 255, 234),#ff0055) border-box;
|
251 |
-
border-radius: 20px;
|
252 |
-
border: 2.5px solid transparent;
|
253 |
-
border-radius: 7px;
|
254 |
-
margin-left: 0px;
|
255 |
-
font-family: 'Barlow Condensed';
|
256 |
-
font-size: 18px;
|
257 |
-
color: white;
|
258 |
-
}
|
259 |
-
#jd:hover{
|
260 |
-
background: linear-gradient(black, black) padding-box,
|
261 |
-
linear-gradient(to right, blue,#00ffdd) border-box;
|
262 |
-
border-radius: 10px;
|
263 |
-
border: 2.5px solid transparent;
|
264 |
-
}
|
265 |
-
#ow{
|
266 |
-
float: right;
|
267 |
-
margin: 10px;
|
268 |
-
padding: 10px;
|
269 |
-
background-color: transparent;
|
270 |
-
color: #eeeeee;
|
271 |
-
background: linear-gradient(black, black) padding-box,
|
272 |
-
linear-gradient(to right, rgb(0, 255, 149), rgb(174, 0, 255)) border-box;
|
273 |
-
border-radius: 10px;
|
274 |
-
border: 2.5px solid transparent;
|
275 |
-
border-radius: 10px;
|
276 |
-
margin-bottom: 0px;
|
277 |
-
margin-right: 0;
|
278 |
-
margin-left: 0;
|
279 |
-
border: 2px solid white;
|
280 |
-
}
|
281 |
-
#ow:hover{
|
282 |
-
background: linear-gradient(black, black) padding-box,
|
283 |
-
linear-gradient(to right, rgb(174, 0, 255),rgb(0, 255, 149)) border-box;
|
284 |
-
border-radius: 10px;
|
285 |
-
border: 2.5px solid transparent;
|
286 |
-
}
|
287 |
-
#dvv{
|
288 |
-
width: 100%;
|
289 |
-
margin-left: 10px;
|
290 |
-
}
|
291 |
-
#model{
|
292 |
-
width: 170px;
|
293 |
-
height: 50px;
|
294 |
-
overflow: visible;
|
295 |
-
}
|
296 |
-
#model option{
|
297 |
-
white-space: normal;
|
298 |
-
padding: 10px;
|
299 |
-
font-family: 'Barlow Condensed';
|
300 |
-
line-height: 1.2;
|
301 |
-
font-size: 24px;
|
302 |
-
}
|
303 |
-
.ad{
|
304 |
-
display: flex;
|
305 |
-
flex-direction: row;
|
306 |
-
}
|
307 |
-
#grad {
|
308 |
-
background-image: linear-gradient(45deg, rgb(0, 255, 149),rgb(255, 0, 43), rgb(174, 0, 255));
|
309 |
-
-webkit-background-clip: text;
|
310 |
-
-webkit-text-fill-color: transparent;
|
311 |
-
color: #000;
|
312 |
-
margin-left:15px;
|
313 |
-
font-family: 'Barlow Condensed'
|
314 |
-
}
|
315 |
-
|
316 |
-
#imshow progress {
|
317 |
-
margin-left: auto;
|
318 |
-
margin-right: auto;
|
319 |
-
display: block;
|
320 |
-
height: 25px;
|
321 |
-
width: 250px;
|
322 |
-
margin-top: 20px;
|
323 |
-
}
|
324 |
-
|
325 |
-
#imshow h5{
|
326 |
-
display: block;
|
327 |
-
}
|
328 |
-
progress::-webkit-progress-bar {
|
329 |
-
background-color: rgb(0,5,60);
|
330 |
-
}
|
331 |
-
progress::-webkit-progress-value {
|
332 |
-
background-color: rgb(0, 255, 149);
|
333 |
-
}
|
334 |
-
progress {
|
335 |
-
background-color: rgb(0,5,60);
|
336 |
-
}
|
337 |
-
progress::-moz-progress-bar {
|
338 |
-
background-color: rgb(0, 255, 149); }
|
339 |
-
progress {
|
340 |
-
background: rgb(0,10,60);
|
341 |
-
}
|
342 |
-
|
343 |
-
#x{
|
344 |
-
width:300px;
|
345 |
-
padding:0px;
|
346 |
-
gap:0px;
|
347 |
-
}
|
348 |
-
#aaa{
|
349 |
-
color: blue;
|
350 |
-
margin-left: 15px;
|
351 |
-
font-family: Arial;
|
352 |
-
letter-spacing: 0.3px;
|
353 |
-
}
|
354 |
-
|
355 |
-
#imshow {
|
356 |
-
display: flex;
|
357 |
-
justify-content: center;
|
358 |
-
max-width: 500px;
|
359 |
-
margin: auto;
|
360 |
-
max-height: 400px;
|
361 |
-
margin-top: 25px;
|
362 |
-
}
|
363 |
-
|
364 |
-
#imshow img {
|
365 |
-
max-width: 100%;
|
366 |
-
max-height: 400px;
|
367 |
-
margin: 10px;
|
368 |
-
|
369 |
-
}
|
370 |
-
#ratio{
|
371 |
-
display: flex;
|
372 |
-
flex-direction: row;
|
373 |
-
gap: 6px;
|
374 |
-
color: white;
|
375 |
-
font-family: 'Barlow Condensed';
|
376 |
-
font-size: 20px;
|
377 |
-
flex-wrap: wrap;
|
378 |
-
}
|
379 |
-
|
380 |
-
@media screen and (max-width: 800px) {
|
381 |
-
#imshow {
|
382 |
-
display: flex;
|
383 |
-
flex-direction: column;
|
384 |
-
align-items: center;
|
385 |
-
justify-content: center;
|
386 |
-
max-width: 330px;
|
387 |
-
margin-top: 50px;
|
388 |
-
margin: auto;
|
389 |
-
overflow: auto;
|
390 |
-
height: 400px;
|
391 |
-
|
392 |
-
}
|
393 |
-
#imshow progress{
|
394 |
-
margin-top: 5px;
|
395 |
|
396 |
-
}
|
397 |
-
|
398 |
-
#imshow img {
|
399 |
-
max-width: 100%;
|
400 |
-
max-height: 100%;
|
401 |
-
margin: 10px;
|
402 |
-
object-fit: contain;
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
}
|
408 |
-
#img1{
|
409 |
-
padding-top: 125%;
|
410 |
-
}
|
411 |
-
}
|
412 |
-
#main{
|
413 |
-
margin-bottom: 30px;
|
414 |
-
}
|
415 |
-
|
416 |
-
</style>
|
417 |
</head>
|
418 |
<body>
|
419 |
<div id="dvv">
|
@@ -508,247 +116,7 @@ margin-top: 5px;
|
|
508 |
|
509 |
|
510 |
<script src="https://www.google.com/recaptcha/api.js?render=6Leqa5cpAAAAABVhh6FGouusHKaPjYz65-0Yy8kS"></script>
|
511 |
-
<script>
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
document.getElementById('jd').onclick = ()=>{
|
516 |
-
window.open('https://discord.gg/ju4yQBfQ7p')
|
517 |
-
}
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
/*document.getElementById('ow').onclick = ()=>{
|
522 |
-
window.open('https://www.buymeacoffee.com/mygx')
|
523 |
-
}*/
|
524 |
-
let isimg = false
|
525 |
-
if(isimg == true){
|
526 |
-
img = document.getElementById('hehe')
|
527 |
-
img.addEventListener("click", function() {
|
528 |
-
var imageUrl = this.src;
|
529 |
-
window.open(imageUrl, "_blank");
|
530 |
-
});
|
531 |
-
}
|
532 |
-
let dialog = document.getElementById('dialog')
|
533 |
-
let openbtn = document.getElementById('Advance Setting')
|
534 |
-
let closebtn = document.getElementById('close')
|
535 |
-
openbtn.onclick = ()=>{
|
536 |
-
dialog.show()
|
537 |
-
document.getElementById('imshow').style.border = '0px solid black transparent'
|
538 |
-
}
|
539 |
-
closebtn.onclick= ()=>{
|
540 |
-
dialog.close()
|
541 |
-
document.getElementById('imshow').style.background = 'linear-gradient(black, black) padding-box,linear-gradient(to right, red, blue) border-box'
|
542 |
-
}
|
543 |
-
let inp = document.getElementById('inp')
|
544 |
-
let np = document.getElementById('np')
|
545 |
-
let gd = document.getElementById('gds')
|
546 |
-
let step = document.getElementById('step')
|
547 |
-
let seed = document.getElementById('seed')
|
548 |
-
let seedp = document.getElementById('seedp')
|
549 |
-
let stepp = document.getElementById('stepp')
|
550 |
-
let gdsp = document.getElementById('gdsp')
|
551 |
-
let btn = document.getElementById('create')
|
552 |
-
let heightp = 1024
|
553 |
-
let widthp = 1024
|
554 |
-
let cn = false
|
555 |
-
gd.addEventListener('input',()=>{
|
556 |
-
gdsp.innerText = gd.value
|
557 |
-
})
|
558 |
-
step.addEventListener('input',()=>{
|
559 |
-
stepp.innerText = step.value
|
560 |
-
})
|
561 |
-
seed.addEventListener('input',()=>{
|
562 |
-
seedp.innerText = seed.value
|
563 |
-
})
|
564 |
-
isFumes = true
|
565 |
-
let prompt = 'CINEMATIC'
|
566 |
-
let nps = ' ,(bad hands, bad anatomy, bad body, bad face, bad teeth, bad arms, bad legs, deformities:1.3),poorly drawn,deformed hands,deformed fingers,deformed faces,deformed eyes,mutated fingers,deformedbody parts,mutated body parts,mutated hands, disfigured,oversaturated,bad anatom,cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, deformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck,deformed eyes'
|
567 |
-
let reload = false
|
568 |
-
|
569 |
-
document.getElementById('styles').onchange = ()=>{
|
570 |
-
const selectedStyle = document.querySelector('input[name="style"]:checked');
|
571 |
-
if(selectedStyle.value =='photo'){
|
572 |
-
|
573 |
-
prompt = 'PHOTOGRAPHY'
|
574 |
-
|
575 |
-
|
576 |
-
}
|
577 |
-
if(selectedStyle.value == 'cinema'){
|
578 |
-
|
579 |
-
prompt = "CINEMATIC"}
|
580 |
-
if(selectedStyle.value == 'fantasy'){
|
581 |
-
|
582 |
-
prompt = "CREATIVE"
|
583 |
-
}
|
584 |
-
|
585 |
-
if(selectedStyle.value == 'fumes'){
|
586 |
-
|
587 |
-
prompt = 'FILM'
|
588 |
-
}
|
589 |
-
|
590 |
-
|
591 |
-
if(selectedStyle.value == 'no'){
|
592 |
-
prompt = 'LEONARDO'
|
593 |
-
|
594 |
-
}
|
595 |
-
}
|
596 |
-
|
597 |
-
document.getElementById('ratio').onchange = ()=>{
|
598 |
-
const selectedStyle = document.querySelector('input[name="ratio"]:checked');
|
599 |
-
if(selectedStyle.value =='1:1'){
|
600 |
-
|
601 |
-
widthp = 1024
|
602 |
-
heightp = 1024
|
603 |
-
|
604 |
-
|
605 |
-
}
|
606 |
-
if(selectedStyle.value == '16:9'){
|
607 |
-
|
608 |
-
widthp = 1024
|
609 |
-
heightp = 576
|
610 |
-
document.getElementById("img1").style.marginTop = "30%";
|
611 |
-
|
612 |
-
}
|
613 |
-
if(selectedStyle.value == '9:16'){
|
614 |
-
|
615 |
-
widthp = 576
|
616 |
-
heightp = 1024
|
617 |
-
}
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
if(selectedStyle.value == '1:2'){
|
622 |
-
|
623 |
-
widthp = 544
|
624 |
-
heightp = 1088
|
625 |
-
}
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
if(selectedStyle.value == '4:3'){
|
631 |
-
widthp = 896
|
632 |
-
heightp = 672
|
633 |
-
|
634 |
-
}
|
635 |
-
|
636 |
-
}
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
btn.onclick = async () => {
|
641 |
-
grecaptcha.ready(function () {
|
642 |
-
grecaptcha.execute('6Leqa5cpAAAAABVhh6FGouusHKaPjYz65-0Yy8kS', { action: 'submit' }).then(async function (token) {
|
643 |
-
if (cn == true) {
|
644 |
-
window.location.reload();
|
645 |
-
}
|
646 |
-
btn.innerText = "CANCEL";
|
647 |
-
cn = true;
|
648 |
-
let div = document.getElementById('imshow');
|
649 |
-
if (reload == true) {
|
650 |
-
window.location.reload();
|
651 |
-
}
|
652 |
-
isimg = false;
|
653 |
-
let isc = false;
|
654 |
-
let id = '';
|
655 |
-
|
656 |
-
negative_prompt = nps;
|
657 |
-
// btn.disabled = true
|
658 |
-
div.innerHTML = '';
|
659 |
-
document.getElementById('imshow').innerHTML = '';
|
660 |
-
let pi = document.createElement('h5');
|
661 |
-
pi.innerText = 'Generating Image... Estimated Time: 20s';
|
662 |
-
// document.getElementById('imshow').append(pi)
|
663 |
-
let count = 0;
|
664 |
-
seed = seed;
|
665 |
-
|
666 |
-
let progress = document.createElement('progress');
|
667 |
-
progress.value = 1;
|
668 |
-
progress.max = 100;
|
669 |
-
|
670 |
-
div.appendChild(progress);
|
671 |
-
setInterval(() => {
|
672 |
-
progress.value += 3;
|
673 |
-
}, 1100);
|
674 |
-
|
675 |
-
async function generate() {
|
676 |
-
cookie = localStorage.getItem("cookie");
|
677 |
-
u = localStorage.getItem("u");
|
678 |
-
sub = localStorage.getItem("sub");
|
679 |
-
if (cookie == null) {
|
680 |
-
cookie = '';
|
681 |
-
}
|
682 |
-
if (cookie == "undefined") {
|
683 |
-
cookie = '';
|
684 |
-
}
|
685 |
-
params = {
|
686 |
-
'prompt': inp.value,
|
687 |
-
'nprompt': np.value,
|
688 |
-
"steps": Number(step.value),
|
689 |
-
'guidenceScale': Number(gd.value),
|
690 |
-
"style": prompt,
|
691 |
-
"width": Number(widthp),
|
692 |
-
"height": Number(heightp),
|
693 |
-
"alchemy": true,
|
694 |
-
"pr": true,
|
695 |
-
token: token
|
696 |
-
};
|
697 |
-
|
698 |
-
try {
|
699 |
-
const response = await fetch('https://fumes-api.onrender.com/leonardo', {
|
700 |
-
method: 'POST',
|
701 |
-
headers: {
|
702 |
-
'Content-Type': 'application/json',
|
703 |
-
'Connection': 'keep-alive',
|
704 |
-
},
|
705 |
-
body: JSON.stringify(params)
|
706 |
-
});
|
707 |
-
if (response.status === 400) {
|
708 |
-
pi.innerText = 'reCaptcha human validation failed ⭕ user is suspected to be bot ';
|
709 |
-
div.append(pi)
|
710 |
-
alert('human verification failed ')
|
711 |
-
console.log(pi)
|
712 |
-
}
|
713 |
-
|
714 |
-
cn = false
|
715 |
-
btn.innerText = "CREATE"
|
716 |
-
const data = await response.json();
|
717 |
-
localStorage.setItem("cookie", data.token);
|
718 |
-
localStorage.setItem("sub", data.sub);
|
719 |
-
localStorage.setItem("u", data.u);
|
720 |
-
console.log(data.result)
|
721 |
-
progress.innerHTML = ''
|
722 |
-
progress.style.display = 'none';
|
723 |
-
const img = document.createElement('img');
|
724 |
-
a = "1"
|
725 |
-
img.id = "hehe"
|
726 |
-
pi.innerHTML = ''
|
727 |
-
pi.innerText = ''
|
728 |
-
img.src = data.img[1];
|
729 |
-
if(window.innerWidth<600){
|
730 |
-
img.id = "img1"
|
731 |
-
}
|
732 |
-
div.appendChild(img);
|
733 |
-
console.log(widthp.innerText)
|
734 |
-
const img2 = document.createElement('img');
|
735 |
-
img2.src = data.img[2];
|
736 |
-
div.appendChild(img2);
|
737 |
-
btn.disabled = false
|
738 |
-
isimg = true
|
739 |
-
} catch (error) {
|
740 |
-
btn.disabled = false;
|
741 |
-
console.error('An error occurred:', error);
|
742 |
-
pi.innerText = 'reCaptcha human verification failed ❌ user is suspected to be bot ';
|
743 |
-
pi.style.color = "white"
|
744 |
-
}
|
745 |
-
}
|
746 |
-
|
747 |
-
await Promise.all([generate()]);
|
748 |
-
});
|
749 |
-
});
|
750 |
-
};
|
751 |
-
|
752 |
</script>
|
753 |
</body>
|
754 |
-
</html>
|
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
|
7 |
+
<link rel="stylesheet" href="style.css">
|
8 |
<script type='text/javascript'>
|
9 |
window.smartlook||(function(d) {
|
10 |
var o=smartlook=function(){ o.api.push(arguments)},h=d.getElementsByTagName('head')[0];
|
|
|
21 |
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8419334759638161"
|
22 |
crossorigin="anonymous"></script>
|
23 |
<title>AI Image Creator</title>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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