Created At: 2026-06-14T15:35:12Z
Completed At: 2026-06-14T15:35:12Z
File Path: `file:///c:/Users/HP/Downloads/climate-system/climate-system/index.php`
Total Lines: 4751
Total Bytes: 202808
Showing lines 3896 to 3940
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.
3896:     }
3897: 
3898:     async function applyFutureStripeFilter() {
3899:       const lokasi = document.getElementById('futureLocationMap').value || 'Indonesia';
3900:       const variable = document.getElementById('futureStripeVariable').value;
3901:       const scenario = document.getElementById('futureStripeScenario').value;
3902: 
3903:       if (!variable || !scenario) {
3904:         alert('Silakan pilih variabel dan skenario terlebih dahulu.');
3905:         return;
3906:       }
3907: 
3908:       // Map scenario to period:
3909:       // SSP1-2.6 -> 2021-2050
3910:       // SSP2-4.5 -> 2031-2060
3911:       // SSP3-7.0 -> 2041-2070
3912:       // SSP5-8.5 -> 2051-2080
3913:       let period = '2021-2050';
3914:       if (scenario === 'SSP2-4.5') period = '2031-2060';
3915:       else if (scenario === 'SSP3-7.0') period = '2041-2070';
3916:       else if (scenario === 'SSP5-8.5') period = '2051-2080';
3917: 
3918:       try {
3919:         const res = await fetch(`?action=get_future&location=${encodeURIComponent(lokasi)}&variable=${encodeURIComponent(variable)}&period=${encodeURIComponent(period)}`);
3920:         const result = await res.json();
3921: 
3922:         if (result.success && result.data && result.data.imageClimateStripe && result.data.imageClimateStripe !== '') {
3923:           const savedData = result.data;
3924:           document.getElementById('futureImageClimateStripe').src = normalizeImageUrl(savedData.imageClimateStripe);
3925:           document.getElementById('futureVariableTextStripe').innerText = "Variabel: " + variable;
3926:           document.getElementById('futurePeriodTextStripe').innerText = "Skenario: " + scenario;
3927:         } else {
3928:           document.getElementById('futureImageClimateStripe').src = PLACEHOLDER_IMG;
3929:           document.getElementById('futureVariableTextStripe').innerText = "Variabel: " + variable;
3930:           document.getElementById('futurePeriodTextStripe').innerText = "Skenario: " + scenario + " (Data tidak ditemukan)";
3931:         }
3932:       } catch (err) {
3933:         console.error(err);
3934:         alert('Gagal memuat data stripe proyeksi.');
3935:       }
3936:     }
3937: 
3938:     async function applyFutureTSFilter() {
3939:       const lokasi = document.getElementById('futureLocationTS').value;
3940:       const variable = document.getElementById('futureVariableTS').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.
