Created At: 2026-06-14T14:07:57Z
Completed At: 2026-06-14T14:07:57Z
File Path: `file:///c:/Users/HP/Downloads/climate-system/climate-system/index.php`
Total Lines: 4593
Total Bytes: 193982
Showing lines 3820 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.
3820:     }
3821: 
3822:     async function applyFutureStripeFilter() {
3823:       const lokasi = document.getElementById('futureLocationMap').value || 'Indonesia';
3824:       const variable = document.getElementById('futureStripeVariable').value;
3825:       const scenario = document.getElementById('futureStripeScenario').value;
3826: 
3827:       if (!variable || !scenario) {
3828:         alert('Silakan pilih variabel dan skenario terlebih dahulu.');
3829:         return;
3830:       }
3831: 
3832:       // Map scenario to period:
3833:       // SSP1-2.6 -> 2021-2050
3834:       // SSP2-4.5 -> 2031-2060
3835:       // SSP3-7.0 -> 2041-2070
3836:       // SSP5-8.5 -> 2051-2080
3837:       let period = '2021-2050';
3838:       if (scenario === 'SSP2-4.5') period = '2031-2060';
3839:       else if (scenario === 'SSP3-7.0') period = '2041-2070';
3840:       else if (scenario === 'SSP5-8.5') period = '2051-2080';
3841: 
3842:       try {
3843:         const res = await fetch(`?action=get_future&location=${encodeURIComponent(lokasi)}&variable=${encodeURIComponent(variable)}&period=${encodeURIComponent(period)}`);
3844:         const result = await res.json();
3845: 
3846:         if (result.success && result.data && result.data.imageClimateStripe && result.data.imageClimateStripe !== '') {
3847:           const savedData = result.data;
3848:           document.getElementById('futureImageClimateStripe').src = normalizeImageUrl(savedData.imageClimateStripe);
3849:           document.getElementById('futureVariableTextStripe').innerText = "Variabel: " + variable;
3850:           document.getElementById('futurePeriodTextStripe').innerText = "Skenario: " + scenario;
3851:         } else {
3852:           document.getElementById('futureImageClimateStripe').src = PLACEHOLDER_IMG;
3853:           document.getElementById('futureVariableTextStripe').innerText = "Variabel: " + variable;
3854:           document.getElementById('futurePeriodTextStripe').innerText = "Skenario: " + scenario + " (Data tidak ditemukan)";
3855:         }
3856:       } catch (err) {
3857:         console.error(err);
3858:         alert('Gagal memuat data stripe proyeksi.');
3859:       }
3860:     }
3861: 
3862:     async function applyFutureTSFilter() {
3863:       const lokasi = document.getElementById('futureLocationTS').value;
3864:       const variable = document.getElementById('futureVariableTS').value;
3865:       const period = document.getElementById('futurePeriodMap').value;
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.
