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