chansung commited on
Commit
07d436f
·
verified ·
1 Parent(s): d44c0bc

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +3 -0
script.js CHANGED
@@ -377,6 +377,7 @@ async function generateVariations() {
377
  initialSetupCtaEl.classList.remove('flex', 'flex-grow');
378
  }, 500); // Corresponds to CSS transition duration
379
  }
 
380
  if (perspectiveViewportEl) perspectiveViewportEl.classList.remove('hidden');
381
  // previewGridWrapperEl will be managed by showFourGridPreviewUI
382
 
@@ -552,6 +553,7 @@ function showSingleLargePreviewUI(htmlContent, titleText, fullPromptText) {
552
  initialSetupCtaEl.classList.remove('flex', 'flex-grow');
553
  }, 500);
554
  }
 
555
  if (perspectiveViewportEl) perspectiveViewportEl.classList.remove('hidden');
556
  if (previewGridWrapperEl) previewGridWrapperEl.classList.remove('hidden');
557
 
@@ -590,6 +592,7 @@ function showInitialPreviewStateUI() {
590
  // Hide the main preview grid and show the initial CTA
591
  if (previewGridWrapperEl) previewGridWrapperEl.classList.add('hidden');
592
  if (perspectiveViewportEl) perspectiveViewportEl.classList.add('hidden'); // Hide the whole viewport
 
593
 
594
  if (initialSetupCtaEl) {
595
  initialSetupCtaEl.style.display = 'flex'; // Set display before animation
 
377
  initialSetupCtaEl.classList.remove('flex', 'flex-grow');
378
  }, 500); // Corresponds to CSS transition duration
379
  }
380
+ if (mainContentEl) mainContentEl.classList.remove('justify-center-cta-active'); // Remove centering class from main-content
381
  if (perspectiveViewportEl) perspectiveViewportEl.classList.remove('hidden');
382
  // previewGridWrapperEl will be managed by showFourGridPreviewUI
383
 
 
553
  initialSetupCtaEl.classList.remove('flex', 'flex-grow');
554
  }, 500);
555
  }
556
+ if (mainContentEl) mainContentEl.classList.remove('justify-center-cta-active'); // Remove centering class from main-content
557
  if (perspectiveViewportEl) perspectiveViewportEl.classList.remove('hidden');
558
  if (previewGridWrapperEl) previewGridWrapperEl.classList.remove('hidden');
559
 
 
592
  // Hide the main preview grid and show the initial CTA
593
  if (previewGridWrapperEl) previewGridWrapperEl.classList.add('hidden');
594
  if (perspectiveViewportEl) perspectiveViewportEl.classList.add('hidden'); // Hide the whole viewport
595
+ if (mainContentEl) mainContentEl.classList.add('justify-center-cta-active'); // Add centering class to main-content
596
 
597
  if (initialSetupCtaEl) {
598
  initialSetupCtaEl.style.display = 'flex'; // Set display before animation