Created At: 2026-06-14T14:08:14Z
Completed At: 2026-06-14T14:08:14Z
File Path: `file:///c:/Users/HP/Downloads/climate-system/climate-system/index.php`
Total Lines: 4593
Total Bytes: 193982
Showing lines 2400 to 2435
The following code has been modified to include a line number before every line, in the format: <line_number>: <original_line>. Please note that any changes targeting the original code should remove the line number, colon, and leading space.
2400:       }
2401:       return trimmed;
2402:     }
2403: 
2404:     // ======================================================
2405:     // ============ DINAMIS: DROPDOWN & API DB ===============
2406:     // ======================================================
2407: 
2408:     async function loadFilters() {
2409:       try {
2410:         const res = await fetch('?action=get_filters');
2411:         const data = await res.json();
2412:         if (data.success) {
2413:           // Locations
2414:           populateDropdown('historicalLocation', data.locations);
2415:           populateDropdown('futureLocationMap', data.locations);
2416:           populateDropdown('futureLocationTS', data.locations);
2417:           populateDropdown('historicalSetLocation', data.locations);
2418:           populateDropdown('futureSetLocationMap', data.locations);
2419:           populateDropdown('futureSetLocationGraph', data.locations);
2420: 
2421:           // Variables
2422:           populateDropdown('historicalVariable', data.variables);
2423:           populateDropdown('futureVariableMap', data.variables);
2424:           populateDropdown('futureVariableTS', data.variables);
2425:           populateDropdown('historicalSetVariable', data.variables);
2426:           populateDropdown('futureSetVariableMap', data.variables);
2427:           populateDropdown('futureSetVariableGraph', data.variables);
2428:           populateDropdown('futureStripeVariable', data.variables);
2429: 
2430:           // Periods
2431:           populateDropdown('futurePeriodMap', data.periods);
2432:           populateDropdown('futureSetPeriodMap', data.periods);
2433:         }
2434:       } catch (err) {
2435:         console.error('Gagal memuat daftar filter:', err);
The above content does NOT show the entire file contents. If you need to view any lines of the file which were not shown to complete your task, call this tool again to view those lines.
