Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	Update templates/index.html
Browse files- 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;" 
     | 
| 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 | 
         
             
                                }
         
     |