Created At: 2026-06-14T15:49:46Z
Completed At: 2026-06-14T15:49:46Z
File Path: `file:///c:/Users/HP/Downloads/climate-system/climate-system/index.php`
Total Lines: 4761
Total Bytes: 203898
Showing lines 2570 to 2600
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.
2570:           alert('Data climate berhasil dimuat dari database!');
2571:         } else {
2572:           document.getElementById('historicalDescription').innerText = 'Data climate belum tersedia untuk kombinasi filter ini.';
2573:           // Reset gambar ke placeholder jika tidak ditemukan
2574:           document.getElementById('historicalImageAnnual').src = PLACEHOLDER_IMG;
2575:           document.getElementById('historicalImageTrend').src = PLACEHOLDER_IMG;
2576:           document.getElementById('historicalImageTimeSeries').src = PLACEHOLDER_IMG;
2577:           document.getElementById('historicalImageMonthlyMap').src = PLACEHOLDER_IMG;
2578:           document.getElementById('historicalImageMonthlyGraph').src = PLACEHOLDER_IMG;
2579:           alert('Belum ada data climate tersimpan untuk filter ini!');
2580:         }
2581:       } catch (err) {
2582:         console.error(err);
2583:         alert('Gagal memuat data dari database server.');
2584:       }
2585:     }
2586: 
2587:     async function loadHistoricalSettingsData() {
2588:       const lokasi = document.getElementById('historicalSetLocation').value.trim();
2589:       const variable = document.getElementById('historicalSetVariable').value.trim();
2590:       
2591:       if (!lokasi || !variable) return;
2592: 
2593:       try {
2594:         const res = await fetch(`?action=get_historical&location=${encodeURIComponent(lokasi)}&variable=${encodeURIComponent(variable)}`);
2595:         const result = await res.json();
2596: 
2597:         if (result.success && result.data) {
2598:           const d = result.data;
2599:           document.getElementById('historicalSetDescription').value = d.description || '';
2600:           document.getElementById('historicalSetImage').value = d.imageAnnual || '';
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.
