yasir commited on
Commit
b15512c
1 Parent(s): f96f060

Update main.js

Browse files
Files changed (1) hide show
  1. main.js +7 -3
main.js CHANGED
@@ -47,7 +47,7 @@ img.addEventListener("click", function() {
47
  isFumes = true
48
  let prompt = 'CINEMATIC'
49
  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'
50
-
51
 
52
  document.getElementById('styles').onchange = ()=>{
53
  const selectedStyle = document.querySelector('input[name="style"]:checked');
@@ -74,11 +74,15 @@ img.addEventListener("click", function() {
74
 
75
  }
76
  }
77
-
 
 
78
  btn.onclick = async ()=>{
79
 
80
  let div = document.getElementById('imshow');
81
-
 
 
82
  isimg = false
83
  let isc = false
84
  let id = ''
 
47
  isFumes = true
48
  let prompt = 'CINEMATIC'
49
  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'
50
+ let reload = false
51
 
52
  document.getElementById('styles').onchange = ()=>{
53
  const selectedStyle = document.querySelector('input[name="style"]:checked');
 
74
 
75
  }
76
  }
77
+ setTimeout(()=>{
78
+ reload = true
79
+ },200000)
80
  btn.onclick = async ()=>{
81
 
82
  let div = document.getElementById('imshow');
83
+ if(relod==true){
84
+ window.location.reload();
85
+ }
86
  isimg = false
87
  let isc = false
88
  let id = ''