Created At: 2026-06-14T16:20:03Z
Completed At: 2026-06-14T16:20:03Z
File Path: `file:///c:/Users/HP/Downloads/climate-system/climate-system/index.php`
Total Lines: 4014
Total Bytes: 169805
Showing lines 3540 to 3585
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.
3540: 
3541:         if (result.success && result.data) {
3542:           const savedData = result.data;
3543:           document.getElementById('futureDescription').innerText = savedData.description || '';
3544:           
3545:           // Re-render grafik interaktif dengan parameter kustom dari DB jika ada
3546:           renderFutureClimateChart(variable, savedData, period);
3547: 
3548:           // Climate Change Map
3549:           document.getElementById('futureImageClimateMap').src = savedData.imageClimateMap ? normalizeImageUrl(savedData.imageClimateMap) : PLACEHOLDER_IMG;
3550:           document.getElementById('futureImageClimateMap2').src = savedData.imageClimateMap2 ? normalizeImageUrl(savedData.imageClimateMap2) : PLACEHOLDER_IMG;
3551:           switchClimateMap(1); // Reset slider to show Map 1 first
3552:           document.getElementById('futureCategoryTitleMap').innerText = "Climate Change Map";
3553:           document.getElementById('futureVariableText').innerText = "Variabel: " + variable;
3554:           document.getElementById('futurePeriodText').innerText = "Periode: " + period;
3555: 
3556:           // Future Time Series metadata
3557:           document.getElementById('futureCategoryTitleTimeSeries').innerText = "Future Time Series Graph";
3558:           document.getElementById('futureVariableTextTS').innerText = "Variabel: " + variable;
3559:           document.getElementById('futurePeriodTextTS').innerText = "Periode: " + period;
3560: 
3561:           // Future Climate Stripe
3562:           document.getElementById('futureImageCli
<truncated 23 bytes>
dData.imageClimateStripe ? normalizeImageUrl(savedData.imageClimateStripe) : PLACEHOLDER_IMG;
3563:           document.getElementById('futureCategoryTitleStripe').innerText = "Future Climate Stripe";
3564:           document.getElementById('futureVariableTextStripe').innerText = "Variabel: " + variable;
3565:           document.getElementById('futurePeriodTextStripe').innerText = "Periode: " + period;
3566: 
3567:           alert('Data future berhasil dimuat dari database!');
3568:         } else {
3569:           document.getElementById('futureDescription').innerText = 'Data climate belum tersedia di database untuk filter ini, namun Grafik Interaktif Proyeksi telah diaktifkan secara dinamis.';
3570:           // Reset gambar ke placeholder
3571:           document.getElementById('futureImageClimateMap').src = PLACEHOLDER_IMG;
3572:           document.getElementById('futureImageClimateMap2').src = PLACEHOLDER_IMG;
3573:           switchClimateMap(1); // Reset slider to show Map 1 first
3574:           document.getElementById('futureImageClimateStripe').src = PLACEHOLDER_IMG;
3575:           
3576:           document.getElementById('futureVariableText').innerText = "Variabel: " + variable;
3577:           document.getElementById('futurePeriodText').innerText = "Periode: " + period;
3578:           document.getElementById('futureVariableTextTS').innerText = "Variabel: " + variable;
3579:           document.getElementById('futurePeriodTextTS').innerText = "Periode: " + period;
3580:           document.getElementById('futureVariableTextStripe').innerText = "Variabel: " + variable;
3581:           document.getElementById('futurePeriodTextStripe').innerText = "Periode: " + period;
3582:         }
3583:       } catch (err) {
3584:         console.error(err);
3585:         alert('Gagal memuat data future tambahan dari database server.');
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.
