Created At: 2026-06-14T15:32:21Z
Completed At: 2026-06-14T15:32:21Z
File Path: `file:///c:/Users/HP/Downloads/climate-system/climate-system/index.php`
Total Lines: 4711
Total Bytes: 198658
Showing lines 3770 to 3820
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.
3770:       const container2 = document.getElementById('containerMap2');
3771:       const btn1 = document.getElementById('btnMap1');
3772:       const btn2 = document.getElementById('btnMap2');
3773:       
3774:       if (!container1 || !container2 || !btn1 || !btn2) return;
3775:       
3776:       if (index === 1) {
3777:         container1.style.display = 'block';
3778:         container1.style.opacity = '0';
3779:         setTimeout(() => { container1.style.opacity = '1'; }, 10);
3780:         container2.style.display = 'none';
3781:         btn1.classList.add('active');
3782:         btn2.classList.remove('active');
3783:       } else {
3784:         container1.style.display = 'none';
3785:         container2.style.display = 'block';
3786:         container2.style.opacity = '0';
3787:         setTimeout(() => { container2.style.opacity = '1'; }, 10);
3788:         btn1.classList.remove('active');
3789:         btn2.classList.add('active');
3790:       }
3791:     }
3792:     
3793:     function nextClimateMap() {
3794:       const nextIndex = currentMapIndex === 1 ? 2 : 1;
3795:       switchClimateMap(nextIndex);
3796:     }
3797:     
3798:     function prevClimateMap() {
3799:       const prevIndex = currentMapIndex === 2 ? 1 : 2;
3800:       switchClimateMap(prevIndex);
3801:     }
3802: 
3803:     // Pemanggilan AJAX ke PHP untuk filter Future Climate
3804:     async function applyFutureMapFilter() {
3805:       const lokasi = document.getElementById('futureLocationMap').value;
3806:       const variable = document.getElementById('futureVariableMap').value;
3807:       const period = document.getElementById('futurePeriodMap').value;
3808: 
3809:       if (!lokasi || !variable || !period) {
3810:         alert('Silakan pilih lokasi, variabel, dan periode terlebih dahulu.');
3811:         return;
3812:       }
3813: 
3814:       document.getElementById('futureDataInfo').innerHTML =
3815:         'Lokasi: ' + lokasi + ' | Variabel: ' + variable + ' | Periode: ' + period;
3816: 
3817:       try {
3818:         const res = await fetch(`?action=get_future&location=${encodeURIComponent(lokasi)}&variable=${encodeURIComponent(variable)}&period=${encodeURIComponent(period)}`);
3819:         const result = await res.json();
3820: 
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.
