GuangyuanSD commited on
Commit
3eee269
·
verified ·
1 Parent(s): 9a4311f

Update redchina.html

Browse files
Files changed (1) hide show
  1. redchina.html +5 -5
redchina.html CHANGED
@@ -825,7 +825,7 @@
825
  loading.classList.add('hidden');
826
 
827
  // Show generated image (using placeholder from unsplash)
828
- const imageUrl = `https://source.unsplash.com/random/600x400/?${encodeURIComponent(prompt.split(' ').join(',') + ',' + selectedStyle)}`;
829
  generatedImage.src = imageUrl;
830
  generatedImage.classList.remove('hidden');
831
  setTimeout(() => {
@@ -840,7 +840,7 @@
840
  // Set variation images
841
  const variationImages = variations.querySelectorAll('img');
842
  variationImages.forEach((img, index) => {
843
- img.src = `https://source.unsplash.com/random/300x200/?sig=${index + 1},${encodeURIComponent(prompt.split(' ').join(',') + ',' + selectedStyle)}`;
844
  });
845
  }, 3000);
846
  });
@@ -850,7 +850,7 @@
850
  if (generatedImage.src) {
851
  const link = document.createElement('a');
852
  link.href = generatedImage.src;
853
- link.download = `redaigc-design-${Date.now()}.jpg`;
854
  document.body.appendChild(link);
855
  link.click();
856
  document.body.removeChild(link);
@@ -861,12 +861,12 @@
861
  refreshBtn.addEventListener('click', function() {
862
  if (generatedImage.src) {
863
  const prompt = promptInput.value.trim();
864
- generatedImage.src = `https://source.unsplash.com/random/600x400/?sig=${Math.floor(Math.random() * 1000)},${encodeURIComponent(prompt.split(' ').join(',') + ',' + selectedStyle)}`;
865
 
866
  // Refresh variations too
867
  const variationImages = variations.querySelectorAll('img');
868
  variationImages.forEach((img, index) => {
869
- img.src = `https://source.unsplash.com/random/300x200/?sig=${index + 1 + Math.floor(Math.random() * 1000)},${encodeURIComponent(prompt.split(' ').join(',') + ',' + selectedStyle)}`;
870
  });
871
  }
872
  });
 
825
  loading.classList.add('hidden');
826
 
827
  // Show generated image (using placeholder from unsplash)
828
+ const imageUrl = `65657455.png`;
829
  generatedImage.src = imageUrl;
830
  generatedImage.classList.remove('hidden');
831
  setTimeout(() => {
 
840
  // Set variation images
841
  const variationImages = variations.querySelectorAll('img');
842
  variationImages.forEach((img, index) => {
843
+ img.src = `65274456.jpeg`;
844
  });
845
  }, 3000);
846
  });
 
850
  if (generatedImage.src) {
851
  const link = document.createElement('a');
852
  link.href = generatedImage.src;
853
+ link.download = `65657455.png`;
854
  document.body.appendChild(link);
855
  link.click();
856
  document.body.removeChild(link);
 
861
  refreshBtn.addEventListener('click', function() {
862
  if (generatedImage.src) {
863
  const prompt = promptInput.value.trim();
864
+ generatedImage.src = `65186391.png`;
865
 
866
  // Refresh variations too
867
  const variationImages = variations.querySelectorAll('img');
868
  variationImages.forEach((img, index) => {
869
+ img.src = `65657227.png`;
870
  });
871
  }
872
  });