Created At: 2026-06-14T15:32:25Z
Completed At: 2026-06-14T15:32:25Z
File Path: `file:///c:/Users/HP/Downloads/climate-system/climate-system/index.php`
Total Lines: 4711
Total Bytes: 198658
Showing lines 3821 to 3865
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.
3821:         if (result.success && result.data) {
3822:           const savedData = result.data;
3823:           document.getElementById('futureDescription').innerText = savedData.description || '';
3824: 
3825:           // Climate Change Map
3826:           document.getElementById('futureImageClimateMap').src = savedData.imageClimateMap ? normalizeImageUrl(savedData.imageClimateMap) : PLACEHOLDER_IMG;
3827:           document.getElementById('futureImageClimateMap2').src = savedData.imageClimateMap2 ? normalizeImageUrl(savedData.imageClimateMap2) : PLACEHOLDER_IMG;
3828:           switchClimateMap(1); // Reset slider to show Map 1 first
3829:           document.getElementById('futureCategoryTitleMap').innerText = "Climate Change Map";
3830:           document.getElementById('futureVariableText').innerText = "Variabel: " + variable;
3831:           document.getElementById('futurePeriodText').innerText = "Periode: " + period;
3832: 
3833:           // Future Climate Stripe
3834:           document.getElementById('futureImageClimateStripe').src = savedData.imageClimateStripe ? normalizeImageUrl(savedData.imageClimateStripe) : PLACEHOLDER_IMG;
3835:           document.getElementById('futureCategoryTitleStripe').innerText = "Future Climate Stripe";
3836:           document.getElementById('futureVariableTextStripe').innerText = "Variabel: " + variable;
3837:           document.getElementById('futurePeriodTextStripe').innerText = "Periode: " + period;
3838:         } else {
3839:           document.getElementById('futureDescription').innerText = 'Data climate belum tersedia di database untuk filter ini, namun visualisasi telah diperbarui.';
3840:           // Reset gambar ke placeholder
3841:           document.getElementById('futureImageClimateMap').src = PLACEHOLDER_IMG;
3842:           document.getElementById('futureImageClimateMap2').src = PLACEHOLDER_IMG;
3843:           switchClimateMap(1); // Reset slider to show Map 1 first
3844:           document.getElementById('futureImageClimateStripe').src = PLACEHOLDER_IMG;
3845:           
3846:           document.getElementById('futureVariableText').innerText = "Variabel: " + variable;
3847:           document.getElementById('futurePeriodText').innerText = "Periode: " + period;
3848:           document.getElementById('futureVariableTextStripe').innerText = "Variabel: " + variable;
3849:           document.getElementById('futurePeriodTextStripe').innerText = "Periode: " + period;
3850:         }
3851:       } catch (err) {
3852:         console.error(err);
3853:         alert('Gagal memuat data peta & stripe proyeksi.');
3854:       }
3855:     }
3856: 
3857:     async function applyFutureStripeFilter() {
3858:       const lokasi = document.getElementById('futureLocationMap').value || 'Indonesia';
3859:       const variable = document.getElementById('futureStripeVariable').value;
3860:       const scenario = document.getElementById('futureStripeScenario').value;
3861: 
3862:       if (!variable || !scenario) {
3863:         alert('Silakan pilih variabel dan skenario terlebih dahulu.');
3864:         return;
3865:       }
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.
