seawolf2357 commited on
Commit
79b7afb
Β·
verified Β·
1 Parent(s): 2907ab6

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +5 -4
templates/index.html CHANGED
@@ -102,7 +102,7 @@
102
 
103
  <button type="submit" class="nav-button" style="width: 100%; padding: 12px; background-color: #4285f4; color: white; border: none; border-radius: 4px; font-size: 16px; cursor: pointer;">
104
  <span class="material-symbols-outlined" style="vertical-align: middle; margin-right: 5px;">upload</span>
105
- μ˜μƒ λΆ„μ„ν•˜κΈ°
106
  </button>
107
  </form>
108
  </div>
@@ -225,7 +225,7 @@
225
 
226
  // λ‘œλ”© μƒνƒœ ν‘œμ‹œ
227
  submitButton.disabled = true;
228
- submitButton.innerHTML = '<span class="material-symbols-outlined" style="vertical-align: middle; margin-right: 5px;">hourglass_empty</span>뢄석 쀑...';
229
 
230
  // κΈ°μ‘΄ μ—λŸ¬ λ©”μ‹œμ§€ 제거
231
  const errorDiv = document.getElementById('explanation-error');
@@ -268,10 +268,11 @@
268
  const reportTextDisplay = document.getElementById('report-text-display');
269
  if (reportTextDisplay) {
270
  reportTextDisplay.innerHTML = '<div style="padding: 20px; background-color: #e8f4f8; border-radius: 8px;">' +
271
- '<h3 style="margin-top: 0;">μ—…λ‘œλ“œλœ μ˜μƒ 뢄석</h3>' +
272
  '<p>파일λͺ…: ' + file.name + '</p>' +
273
  '<p>μ˜μƒ μœ ν˜•: ' + document.getElementById('image-type-select').selectedOptions[0].text + '</p>' +
274
  (document.getElementById('context-input').value ? '<p>μΆ”κ°€ 정보: ' + document.getElementById('context-input').value + '</p>' : '') +
 
275
  '</div>';
276
  }
277
 
@@ -290,7 +291,7 @@
290
  } else {
291
  // μ—λŸ¬ ν‘œμ‹œ
292
  if (errorDiv) {
293
- errorDiv.textContent = result.error || '뢄석 쀑 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.';
294
  errorDiv.style.display = 'block';
295
  }
296
  }
 
102
 
103
  <button type="submit" class="nav-button" style="width: 100%; padding: 12px; background-color: #4285f4; color: white; border: none; border-radius: 4px; font-size: 16px; cursor: pointer;">
104
  <span class="material-symbols-outlined" style="vertical-align: middle; margin-right: 5px;">upload</span>
105
+ νŒλ… κ°€μ΄λ“œ λ°›κΈ°
106
  </button>
107
  </form>
108
  </div>
 
225
 
226
  // λ‘œλ”© μƒνƒœ ν‘œμ‹œ
227
  submitButton.disabled = true;
228
+ submitButton.innerHTML = '<span class="material-symbols-outlined" style="vertical-align: middle; margin-right: 5px;">hourglass_empty</span>κ°€μ΄λ“œ 생성 쀑...';
229
 
230
  // κΈ°μ‘΄ μ—λŸ¬ λ©”μ‹œμ§€ 제거
231
  const errorDiv = document.getElementById('explanation-error');
 
268
  const reportTextDisplay = document.getElementById('report-text-display');
269
  if (reportTextDisplay) {
270
  reportTextDisplay.innerHTML = '<div style="padding: 20px; background-color: #e8f4f8; border-radius: 8px;">' +
271
+ '<h3 style="margin-top: 0;">μ˜μƒ νŒλ… κ°€μ΄λ“œ</h3>' +
272
  '<p>파일λͺ…: ' + file.name + '</p>' +
273
  '<p>μ˜μƒ μœ ν˜•: ' + document.getElementById('image-type-select').selectedOptions[0].text + '</p>' +
274
  (document.getElementById('context-input').value ? '<p>μΆ”κ°€ 정보: ' + document.getElementById('context-input').value + '</p>' : '') +
275
+ '<p style="margin-top: 10px; padding: 10px; background-color: #fff3cd; border-radius: 4px;">⚠️ μ—…λ‘œλ“œν•˜μ‹  μ˜μƒμ— λŒ€ν•œ 일반적인 νŒλ… κ°€μ΄λ“œλ₯Ό μ œκ³΅ν•©λ‹ˆλ‹€.</p>' +
276
  '</div>';
277
  }
278
 
 
291
  } else {
292
  // μ—λŸ¬ ν‘œμ‹œ
293
  if (errorDiv) {
294
+ errorDiv.textContent = result.error || 'κ°€μ΄λ“œ 생성 쀑 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.';
295
  errorDiv.style.display = 'block';
296
  }
297
  }