Membuat widget cuaca otomatis di blogger
Hello sobat Bloggermuda kali ini admin akan menjelaskan mrngenai cara membuat widget cuaca otomatis mendeteksi lokasi pengguna di blogger
Widget Cuaca Otomatis
Widget cuaca di blogger yang bisa mendeteksi lokasi pengguna adalah sebuah jendela kecil di dunia digital blogger kamu, yang secara magis mampu membaca detak jantung lingkungan penggunamu tanpa perlu mereka ketikkan apa pun. Inilah widget cuaca otomatis yang cerdas, yang berfungsi sebagai mata-mata ramah dari langit, dan dibuat dengan kekuatan API dari OpenWeather. Instrumen ini tidak sekadar menampilkan angka suhuh dan kondisi langit, melainkan mampu mendeteksi lokasi pengguna secara otomatis, seperti anjing pemburu yang mengendus jejak, dan menampilkan informasi cuaca terkini secara langsung di halaman blogger mu.
Mereka mengunjungi blog, dan seketika mereka melihat informasi cuaca yang tepat di dekat mereka, panas terik di siang hari atau hujan dingin yang sedang turun, semua tanpa mereka sentuh satu tombol pun. Bagaimana fungsi magis ini bekerja? Dengan memanfaatkan teknologi geolokasi dari browser modern, widget ini pertama-tama bertanya: Di mana kamu berada sekarang? Setelah mendapat izin, ia menggunakan API dari OpenWeather untuk mengirimkan koordinat geografis dan menerima data cuaca secara otomatis. Lalu, informasi ini langsung ditampilkan secara menarik di blog kamu, seolah-olah blog tersebut memiliki indera keenam yang peka terhadap kondisi langit di sekitar pengunjung.
Dengan keajaiban kreasi ini, kamu tidak hanya menambahkan sebuah fitur, tetapi memberi pengalaman personalisasi yang unik dan intuitif membuat blogmu tidak hanya sumber informasi, melainkan juga teman setia yang selalu tahu apa yang terjadi di langit mereka. Dan yang lebih keren lagi? Kamu bisa menerapkannya di Blogger dengan mengintegrasikan kode javascript yang simpel namun canggih, menyulap halaman blog menjadi ruang interaktif yang penuh keajaiban teknologi. Jadi, widget cuaca otomatis ini adalah jembatan antara dunia digital dan alam, menghadirkan keakuratan dan keindahan langit langsung ke layar pengunjungmu sebuah inovasi yang menyentuh hati dan teknologi sekaligus.
Contoh Tampilan
Berikut Ini contoh tampilan dari Widget cuaca di blogger mampu mendeteksi lokasi pengguna yang di buat menggunakan api openweather, silahkan klik tombol periksa di bawah ini
Cara pembuatan
- Login ke blogger menggunakan akun google milikmu
- Selanjutnya silahkan pergi ke menu Halaman
- Kemudian kamu bisa buat halaman baru dan berikan judul sesuai keinginan kamu
- Selanjutnya salin seluruh kode untuk membuat widget cuaca otomatis di bawah ini, dan tempelkan di dalam halaman tersebut
- Jika sudah silahkan publikasin halaman dan lihat bagaimana hasilnya
<div id="rah-weather-container" class="rah-weather-widget">
<div class="rah-weather-header">
<h2 class="rah-weather-title">Cuaca</h2>
<div class="rah-weather-search">
<select id="rah-city-select" class="rah-input">
<option value="">-- Pilih Kota --</option>
<!-- Jakarta & sekitarnya -->
<option value="1642911">Jakarta</option>
<option value="1650357">Bogor</option>
<option value="1646170">Tangerang</option>
<option value="1642684">Bekasi</option>
<option value="1646686">Depok</option>
<!-- Pulau Jawa -->
<option value="1650213">Bandung</option>
<option value="1627896">Semarang</option>
<option value="1625812">Surabaya</option>
<option value="1650298">Banten</option>
<option value="1645528">Yogyakarta</option>
<option value="1626932">Malang</option>
<option value="1630789">Cirebon</option>
<option value="1633070">Pekalongan</option>
<!-- Sumatera -->
<option value="1214520">Tanjung Pinang</option>
<option value="1215502">Batam</option>
<option value="1214800">Anambas</option>
<option value="1214204">Tanjung Uban</option>
<option value="1624917">Palembang</option>
<option value="1214345">Padang</option>
<option value="1214482">Pekanbaru</option>
<option value="1633118">Lampung</option>
<option value="1214658">Medan</option>
<option value="1215355">Banda Aceh</option>
<option value="1215350">Bandar Lampung</option>
<option value="1215412">Bengkulu</option>
<option value="1624647">Pangkal Pinang</option>
<option value="1213855">Karimun</option>
<!-- Kalimantan -->
<option value="1650213">Pontianak</option>
<option value="1629001">Banjarmasin</option>
<option value="1633118">Palangkaraya</option>
<option value="1651887">Samarinda</option>
<option value="1649378">Balikpapan</option>
<option value="1646448">Tanjung Selor</option>
<!-- Sulawesi -->
<option value="1622786">Makassar</option>
<option value="1621177">Manado</option>
<option value="1626542">Palu</option>
<option value="1646170">Gorontalo</option>
<option value="1622786">Kendari</option>
<option value="1626542">Mamuju</option>
<!-- Nusa Tenggara & Bali -->
<option value="1650535">Bali</option>
<option value="1630789">Mataram</option>
<option value="1624877">Kupang</option>
<!-- Maluku & Papua -->
<option value="1622786">Ambon</option>
<option value="1626542">Ternate</option>
<option value="1624877">Jayapura</option>
<option value="1630789">Manokwari</option>
<option value="1630789">Sorong</option>
</select>
<button id="rah-search-btn" class="rah-btn">Cek</button>
<button id="rah-locate-btn" class="rah-btn rah-btn-location"><i class="fas fa-location-crosshairs"></i></button>
</div>
</div>
<div class="rah-weather-body">
<div class="rah-weather-current">
<div class="rah-weather-info">
<div class="rah-weather-city">
<h3 id="rah-city-name">Memuat...</h3>
<p id="rah-date">-</p>
</div>
<div class="rah-weather-temp">
<span id="rah-temp">--</span>
<span class="rah-temp-unit">°C</span>
</div>
<div class="rah-weather-details">
<div id="rah-weather-icon" class="rah-weather-icon"></div>
<div id="rah-weather-desc" class="rah-weather-desc">Memuat...</div>
</div>
</div>
<div class="rah-weather-meta">
<div class="rah-meta-item">
<div class="rah-meta-icon"><i class="fas fa-tint"></i></div>
<div class="rah-meta-data">
<span class="rah-meta-label">Kelembaban</span>
<span id="rah-humidity" class="rah-meta-value">--%</span>
</div>
</div>
<div class="rah-meta-item">
<div class="rah-meta-icon"><i class="fas fa-wind"></i></div>
<div class="rah-meta-data">
<span class="rah-meta-label">Angin</span>
<span id="rah-wind" class="rah-meta-value">-- m/s</span>
</div>
</div>
<div class="rah-meta-item">
<div class="rah-meta-icon"><i class="fas fa-compress-arrows-alt"></i></div>
<div class="rah-meta-data">
<span class="rah-meta-label">Tekanan</span>
<span id="rah-pressure" class="rah-meta-value">-- hPa</span>
</div>
</div>
</div>
</div>
<div class="rah-weather-forecast">
<h3 class="rah-forecast-title">Prakiraan 5 Hari</h3>
<div id="rah-forecast-container" class="rah-forecast-items">
<!-- Forecast items will be generated here -->
</div>
</div>
</div>
<div class="rah-weather-footer">
<p>Data cuaca dari <a href="https://openweathermap.org/" target="_blank">OpenWeather</a><span class='rahKalkuLink'></span></p>
<p id="rah-last-update">Terakhir diperbarui: -</p>
</div>
</div>
<style>
.rah-weather-widget{max-width:800px;margin:0 auto;border-radius:12px;overflow:hidden;box-shadow:0 4px 20px rgba(0,0,0,0.1);font-family:'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans',sans-serif;background:#fff;color:#000}.rah-weather-header{background:#000;color:#fff;padding:16px 20px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}.rah-weather-title{margin:0;font-size:1.5rem;font-weight:600}.rah-weather-search{display:flex;gap:10px;align-items:center;margin-top:10px}.rah-input{padding:8px 12px;border-radius:6px;border:1px solid #000;font-size:.9rem;max-width:180px;background-color:#fff;color:#000}.rah-btn{background-color:#000;color:#fff;border:1px solid #ffff;border-radius:6px;padding:8px 16px;cursor:pointer;font-weight:600;transition:all .2s ease}.rah-btn:hover{background-color:#333}.rah-btn-location{padding:8px;width:40px;display:flex;justify-content:center;align-items:center}.rah-weather-body{padding:20px;background-color:#f8f8f8}.rah-weather-current{background-color:#fff;border-radius:10px;padding:20px;margin-bottom:20px;box-shadow:0 2px 10px rgba(0,0,0,0.05);border:1px solid #e0e0e0}.rah-weather-info{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:20px}.rah-weather-city{flex:1}.rah-weather-city h3{margin:0 0 5px;font-size:1.8rem;font-weight:700;color:#000}.rah-weather-city p{margin:0;color:#333;font-weight:500}.rah-weather-temp{font-size:3rem;font-weight:700;text-align:center;flex:1;color:#000}.rah-temp-unit{font-size:1.5rem;vertical-align:top}.rah-weather-details{display:flex;align-items:center;flex:1;justify-content:flex-end}.rah-weather-icon{width:80px;height:80px;background-size:contain;background-repeat:no-repeat;background-position:center;filter:grayscale(100%)}.rah-weather-desc{font-size:1.2rem;text-transform:capitalize;margin-left:10px;color:#000;font-weight:600}.rah-weather-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px}.rah-meta-item{flex:1;min-width:100px;background-color:#f8f8f8;border-radius:8px;padding:12px;display:flex;align-items:center;box-shadow:0 2px 5px rgba(0,0,0,0.03);border:1px solid #e0e0e0}.rah-meta-icon{width:30px;height:30px;display:flex;align-items:center;justify-content:center;background-color:#000;color:#fff;border-radius:50%;margin-right:10px}.rah-meta-data{display:flex;flex-direction:column}.rah-meta-label{font-size:.85rem;color:#333;font-weight:600}.rah-meta-value{font-size:1.1rem;font-weight:700;color:#000}.rah-weather-forecast{background-color:#fff;border-radius:10px;padding:20px;box-shadow:0 2px 10px rgba(0,0,0,0.05);border:1px solid #e0e0e0}.rah-forecast-title{margin-top:0;margin-bottom:15px;font-size:1.2rem;font-weight:600;color:#000}.rah-forecast-items{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:15px;padding-bottom:10px}.rah-forecast-items::-webkit-scrollbar{height:6px}.rah-forecast-items::-webkit-scrollbar-track{background:#f0f0f0;border-radius:3px}.rah-forecast-items::-webkit-scrollbar-thumb{background:#000;border-radius:3px}.rah-forecast-item{min-width:130px;background-color:#f8f8f8;border-radius:8px;padding:14px;text-align:center;box-shadow:0 2px 5px rgba(0,0,0,0.03);border:1px solid #e0e0e0;transition:transform .2s ease}.rah-forecast-item:hover{transform:translateY(-3px);box-shadow:0 5px 15px rgba(0,0,0,0.1)}.rah-forecast-day{font-weight:700;font-size:1rem;margin-bottom:5px;color:#000}.rah-forecast-date{font-size:.9rem;color:#333;margin-bottom:8px;font-weight:600}.rah-forecast-icon{width:60px;height:60px;margin:0 auto;background-size:contain;background-repeat:no-repeat;background-position:center;filter:grayscale(100%)}.rah-forecast-desc{font-size:.9rem;color:#000;margin:5px 0;text-transform:capitalize;font-weight:600;padding:5px 0}.rah-forecast-temp{display:flex;justify-content:center;gap:15px;font-size:1rem;margin-top:5px}.rah-forecast-max{font-weight:700;color:#000}.rah-forecast-min{color:#333;font-weight:600}.rah-weather-footer{background-color:#000;padding:12px 20px;text-align:center;font-size:.85rem;color:#fff}.rah-weather-footer a{color:#fff;text-decoration:none;font-weight:600}.rah-weather-footer a:hover{text-decoration:underline}#rah-last-update{margin:5px 0 0;font-size:.8rem;opacity:.8}@media (max-width:600px){.rah-weather-header{flex-direction:column;align-items:flex-start}.rah-weather-search{width:100%;margin-top:16px}.rah-input{flex:1}.rah-weather-info{flex-direction:column;text-align:center}.rah-weather-city,.rah-weather-temp,.rah-weather-details{flex:auto;width:100%;justify-content:center;margin-bottom:15px}.rah-meta-item{min-width:calc(50% - 10px)}.rah-forecast-items{justify-content:flex-start}.rah-forecast-item{min-width:130px}}
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" />
<script>
// Konfigurasi API
const API_KEY = '1c86752f3957cedb275c998f012cec02';
const WEATHER_API_URL = 'https://api.openweathermap.org/data/2.5';
const _0x5005e2=_0x2bff;(function(_0x48ad91,_0x1bf411){const _0x5c9ee3=_0x2bff,_0x381526=_0x48ad91();while(!![]){try{const _0x3bf195=-parseInt(_0x5c9ee3(0xd7))/(-0x24ac+0x1*0x1919+0x34*0x39)*(-parseInt(_0x5c9ee3(0xa7))/(-0x2351*-0x1+-0x5c7+0x10e*-0x1c))+parseInt(_0x5c9ee3(0xda))/(0x1*-0xbf9+-0x1*-0x15a5+-0x1*0x9a9)*(parseInt(_0x5c9ee3(0x9f))/(0x2*-0x12a3+0x12b*0xb+0x1871*0x1))+parseInt(_0x5c9ee3(0x1be))/(-0x6*-0x580+0x3*0xce5+-0x47aa)*(-parseInt(_0x5c9ee3(0x16d))/(-0x4e*0x2+0x1*-0xdc1+0xe63))+-parseInt(_0x5c9ee3(0x131))/(0x8*0x271+-0x1315*0x1+-0x6c)*(-parseInt(_0x5c9ee3(0x113))/(-0x2f*-0x7+0x1af3+0x169*-0x14))+parseInt(_0x5c9ee3(0x168))/(0xa7*0x26+0x229b+-0x1dae*0x2)*(parseInt(_0x5c9ee3(0x1a6))/(-0x1*0x2492+0x149d+-0x1*-0xfff))+parseInt(_0x5c9ee3(0x1d7))/(0xb*-0x2f+-0x1208+0x1418)*(parseInt(_0x5c9ee3(0x10e))/(-0x86*-0x17+-0x30a+-0xc*0xbf))+parseInt(_0x5c9ee3(0xc8))/(-0x18e5+0x870+0x1082)*(-parseInt(_0x5c9ee3(0x1c9))/(-0x2*0x3bc+-0xdf3+-0xef*-0x17));if(_0x3bf195===_0x1bf411)break;else _0x381526['push'](_0x381526['shift']());}catch(_0x8c52f2){_0x381526['push'](_0x381526['shift']());}}}(_0x5df2,0xdb9d1+0xee5b5+0x1*-0x12a399));const citySelect=document[_0x5005e2(0xd1)+_0x5005e2(0xc6)](_0x5005e2(0x1cd)+_0x5005e2(0xe7)),searchBtn=document[_0x5005e2(0xd1)+_0x5005e2(0xc6)](_0x5005e2(0xba)+_0x5005e2(0xb9)),locateBtn=document[_0x5005e2(0xd1)+_0x5005e2(0xc6)](_0x5005e2(0x16c)+_0x5005e2(0xb9)),cityNameEl=document[_0x5005e2(0xd1)+_0x5005e2(0xc6)](_0x5005e2(0x155)+_0x5005e2(0x134)),dateEl=document[_0x5005e2(0xd1)+_0x5005e2(0xc6)](_0x5005e2(0x118)),tempEl=document[_0x5005e2(0xd1)+_0x5005e2(0xc6)](_0x5005e2(0x129)),weatherIconEl=document[_0x5005e2(0xd1)+_0x5005e2(0xc6)](_0x5005e2(0x163)+_0x5005e2(0xec)),weatherDescEl=document[_0x5005e2(0xd1)+_0x5005e2(0xc6)](_0x5005e2(0x163)+_0x5005e2(0x12f)),humidityEl=document[_0x5005e2(0xd1)+_0x5005e2(0xc6)](_0x5005e2(0x14b)+'ty'),windEl=document[_0x5005e2(0xd1)+_0x5005e2(0xc6)](_0x5005e2(0x13e)),pressureEl=document[_0x5005e2(0xd1)+_0x5005e2(0xc6)](_0x5005e2(0xdc)+'re'),forecastContainerEl=document[_0x5005e2(0xd1)+_0x5005e2(0xc6)](_0x5005e2(0x190)+_0x5005e2(0x157)+'er'),lastUpdateEl=document[_0x5005e2(0xd1)+_0x5005e2(0xc6)](_0x5005e2(0x11a)+_0x5005e2(0xcb));function formatDate(_0x5646ba){const _0x32b48b=_0x5005e2,_0x3b85b4={'yVMKj':function(_0x4e8d22,_0x50821d){return _0x4e8d22*_0x50821d;},'TTamw':_0x32b48b(0x17c),'EcFzC':_0x32b48b(0x16a),'GtXuT':_0x32b48b(0xe4)},_0x36c07c=new Date(_0x3b85b4[_0x32b48b(0xb2)](_0x5646ba,-0x1921+0x658+0x16b1)),_0x4a7740={'weekday':_0x3b85b4[_0x32b48b(0xb4)],'day':_0x3b85b4[_0x32b48b(0x164)],'month':_0x3b85b4[_0x32b48b(0xb4)],'year':_0x3b85b4[_0x32b48b(0x164)]};return _0x36c07c[_0x32b48b(0x1d8)+_0x32b48b(0x173)](_0x3b85b4[_0x32b48b(0x10d)],_0x4a7740);}function _0x5df2(){const _0x58cc84=['secara\x20man','rah-temp','Jbxjq','Tenggara','AgQNc','appendChil','round','r-desc','coord','7lGFATt','\x22\x20style=\x22w','latitude','ame','icon','Created\x20by','oggermuda.','IhLia','com','kasi\x20Anda.','img/wn/','background','oCnWo','rah-wind','jqZHM','fas\x20fa-spi','\x20cuaca','/div>','\x0a\x20\x20\x20\x20\x20\x20<di','https://Bl','\x20hPa','main','/weather?l','find','VeZhT','ax\x22>','rah-humidi','\x20cuaca</di','1642911','ink:visibl','SxApH','location','/openweath','v\x20class=\x22r','NIavL','QNrZG','rah-city-n','Barat\x20Daya','st-contain','toISOStrin','5|4|1','°</span>\x0a\x20','ass=\x22rah-f','change','kiraan...<','CNjFb','t\x20data\x20pra','options','HxTrU','attr','rah-weathe','EcFzC','il\x20data\x20cu','UPCOz','FUDyL','2044413UkeaNF','mgdlR','numeric','Geolocatio','rah-locate','1056702rRlCGC','vKCON','IHfGq','getCurrent','orecast-te','\x20<a\x20href=\x22','teString','LFazs','vwgcT','YiTnf','innerHTML','textConten','KvKMT','QUMFB','JfVEv','long','PuMKr','\x20\x20\x20<div\x20cl','ation-cros','cast-loadi','te\x22>','&appid=','sBGmq','lmyir','st-item','ent','pressure','url(https:','%;\x20text-al','nhgPr','json','20px;\x20font','st-min\x22>','tKFtH','ecara\x20manu','rah-foreca','name','QeOcC','iperbarui:','-weight:bo','fas\x20fa-loc','AKzbw','FgLDG','ah-forecas','temp','rl(https:/','an\x20coba\x20la','--%','Terjadi\x20ke','Terakhir\x20d','\x20prakiraan','length','/weather?i','padding:20','on\x22\x20style=','cast-error','cPLDL','40dBJyeQ','Error:','from','com\x22>Blogg','t-day\x22>','QQrvk','div','weather','>\x0a\x20\x20\x20\x20','Barat','mjWTm','FFLpg','ual.','\x22backgroun','dropy','Barat\x20Laut','ng\x22\x20style=','an\x20class=\x22','speed','at\x20mengamb','VKDrt','lon','ujaiq','salahan\x20sa','15ammrlW','addEventLi','aca.\x20Silak','.rahKalkuL','/img/wn/','d-image:\x20u','px;\x20font-w','4|6|0|1|5|','WMpLg','JtQHq','forEach','56FobiZA','eight:bold','UVVjs','Gagal\x20mend','rah-city-s','\x20m/s\x20','qMSKC',';\x20color:#0','apatkan\x20lo','gal\x20memuat','lat','orecast-de','eaFTR','stener','6332766MBOxBb','toLocaleDa','lat=','split','--\x20m/s','//openweat','Aizlv','lass=\x22rah-','ld;\x22>Memua','--\x20hPa','RGTqA','n\x20error:','orecast-ic','4bTuRWX','value','UKqDj','deg','SuDrR','Utara','wQyiC','Silakan\x20pi','429474djnanZ','DOMContent','LLBZn','push','gslSa','coords','createElem','ink','ign:center','Timur\x20Laut','=\x22rah-fore','yVMKj','zjlCj','TTamw','ric&lang=i','hermap.org','shairs\x22></','Fresh','-btn','rah-search','orecast-da','Timur','</a>','LPNMi','EtGnJ','WUwWX','wUQxq','JqYWc','&lon=','AGUHp','ermap.org/','ById','GuegE','8521981tPFNlf','<div\x20class','forecast-m','pdate','Loaded','</div>\x0a\x20\x20\x20','\x20text-alig','html','@2x.png)\x22>','getElement','getHours','hoaVO','lih\x20kota\x20s','moqPh','href','2CNvKwf','in\x22></i>','UMkVT','1415355MgJJhr','eolokasi.\x20','rah-pressu','oLHPP','AGTeH','00000;\x22>Ga','Gagal\x20meng','<i\x20class=\x22','descriptio','Sxxhy','id-ID','7|3|2','humidity','elect','ADbmS','idth:100%;','wind','/forecast?','r-icon','al.','n:center;\x20','Image','OsHMs','geolocatio','temp_max','ilih\x20kota\x20','RWFrd','GLQPy','\x22width:100','@2x.png)','at=','heNlI','temp_min','zGcuN','vBLPy','endukung\x20g','ready','ELRMA','&units=met','keys','\x20\x20\x20\x20\x20\x20\x20<sp','tmpTc','Memuat...','nner\x20fa-sp','ambil\x20data','jCJaC','\x20\x20\x20<span\x20c','Browser\x20An','className','error',';\x20padding:','GtXuT','24reffLK','longitude','click','QRkGq','gi.','6748136mYCRgY','list','style','IFOZu','Selatan','rah-date','\x20\x20\x20\x20\x20</div','rah-last-u','JTxWW','2|0|6|3|7|','vpnRS','\x20Silakan\x20p','mp\x22>\x0a\x20\x20\x20\x20\x20','sc\x22>','short','Position','ermuda.com','vCCzS','ogjMF','da\x20tidak\x20m','cGDDG'];_0x5df2=function(){return _0x58cc84;};return _0x5df2();}function formatUpdateTime(){const _0x200733=_0x5005e2,_0x39a233={'sBGmq':_0x200733(0x16a),'KvKMT':_0x200733(0x121),'mjWTm':_0x200733(0xe4)},_0x3ade35=new Date(),_0x1cbfe9={'hour':_0x39a233[_0x200733(0x183)],'minute':_0x39a233[_0x200733(0x183)],'second':_0x39a233[_0x200733(0x183)],'day':_0x39a233[_0x200733(0x183)],'month':_0x39a233[_0x200733(0x179)],'year':_0x39a233[_0x200733(0x183)]};return _0x3ade35[_0x200733(0x1d8)+_0x200733(0x173)](_0x39a233[_0x200733(0x1b0)],_0x1cbfe9);}function getWindDirection(_0x453b1f){const _0x40d9ee=_0x5005e2,_0x358f65={'ADbmS':_0x40d9ee(0x11c)+_0x40d9ee(0x159),'nhgPr':function(_0x9c10fa,_0x16c4cf){return _0x9c10fa>_0x16c4cf;},'UVVjs':function(_0x41345b,_0x48dcbe){return _0x41345b<=_0x48dcbe;},'QUMFB':_0x40d9ee(0xb0),'LFazs':function(_0x405cdb,_0x59ad58){return _0x405cdb>_0x59ad58;},'wQyiC':function(_0x2779c1,_0x27b1ac){return _0x2779c1<=_0x27b1ac;},'GLQPy':_0x40d9ee(0x1b5),'oLHPP':_0x40d9ee(0xa4),'Fresh':function(_0x57cf7d,_0x41f56c){return _0x57cf7d>_0x41f56c;},'WMpLg':function(_0x561382,_0x2676b4){return _0x561382<=_0x2676b4;},'NIavL':_0x40d9ee(0x12b),'Aizlv':function(_0x92bf2b,_0x3b3850){return _0x92bf2b>_0x3b3850;},'mgdlR':function(_0x294b7e,_0x2241a4){return _0x294b7e<=_0x2241a4;},'SxApH':_0x40d9ee(0x1af),'FUDyL':function(_0x606522,_0x27cc1e){return _0x606522<=_0x27cc1e;},'YiTnf':_0x40d9ee(0x156),'IFOZu':function(_0x384616,_0x6305cc){return _0x384616<=_0x6305cc;},'LLBZn':_0x40d9ee(0xbc),'qMSKC':function(_0x4e19db,_0x295773){return _0x4e19db>_0x295773;},'zGcuN':_0x40d9ee(0x117)},_0x10ecc8=_0x358f65[_0x40d9ee(0xe8)][_0x40d9ee(0x1da)]('|');let _0x92edb=0x20b5*0x1+-0x26c2+0x60d;while(!![]){switch(_0x10ecc8[_0x92edb++]){case'0':if(_0x358f65[_0x40d9ee(0x18a)](_0x453b1f,0x1*-0x85b+0x2*0x9c2+-0xb13+0.5)&&_0x358f65[_0x40d9ee(0x1cb)](_0x453b1f,0x2*0x1313+0x676+0x2c59*-0x1+0.5))return _0x358f65[_0x40d9ee(0x17a)];continue;case'1':if(_0x358f65[_0x40d9ee(0x174)](_0x453b1f,0x25fc+-0x1b2d+-0x9ab+0.5)&&_0x358f65[_0x40d9ee(0xa5)](_0x453b1f,0xb43+-0x2596+0x7a*0x3a+0.5))return _0x358f65[_0x40d9ee(0xf5)];continue;case'2':if(_0x358f65[_0x40d9ee(0x174)](_0x453b1f,0x1852+0x15f2+-0x25*0x137+0.5)||_0x358f65[_0x40d9ee(0x1cb)](_0x453b1f,-0x1c*-0x152+0x1*0x871+0x11b*-0x29+0.5))return _0x358f65[_0x40d9ee(0xdd)];continue;case'3':if(_0x358f65[_0x40d9ee(0xb8)](_0x453b1f,-0x199f+-0x2678+0x4087+0.5)&&_0x358f65[_0x40d9ee(0x1c6)](_0x453b1f,-0x156c+-0x221c+-0x9*-0x63d+0.5))return _0x358f65[_0x40d9ee(0x153)];continue;case'4':if(_0x358f65[_0x40d9ee(0x1dd)](_0x453b1f,0xb87+-0x11fd+-0x76d*-0x1+0.5)&&_0x358f65[_0x40d9ee(0x169)](_0x453b1f,0x1a3c+0x99f*-0x1+-0xf79*0x1+0.5))return _0x358f65[_0x40d9ee(0x14f)];continue;case'5':if(_0x358f65[_0x40d9ee(0xb8)](_0x453b1f,-0x1*0x2429+0x17*-0x76+0x103*0x2f+0.5)&&_0x358f65[_0x40d9ee(0x167)](_0x453b1f,-0x37d*0xb+0x24d*0x1+0x2509+0.5))return _0x358f65[_0x40d9ee(0x176)];continue;case'6':if(_0x358f65[_0x40d9ee(0xb8)](_0x453b1f,0x2*0x7fb+-0x1436+-0x1*-0x483+0.5)&&_0x358f65[_0x40d9ee(0x116)](_0x453b1f,0x1e33+-0x23*-0x53+-0x291c+0.5))return _0x358f65[_0x40d9ee(0xa9)];continue;case'7':if(_0x358f65[_0x40d9ee(0x1cf)](_0x453b1f,0x229f*0x1+0x3*-0x5b5+-0x10e3+0.5)&&_0x358f65[_0x40d9ee(0x167)](_0x453b1f,-0x125f+0x6f6+0x1*0xc33+0.5))return _0x358f65[_0x40d9ee(0xfb)];continue;}break;}}async function getCurrentWeatherById(_0x3144cb){const _0x3f7b13=_0x5005e2,_0x29fb83={'JTxWW':function(_0x5166b5){return _0x5166b5();},'ELRMA':function(_0x124cdd,_0x11e4de){return _0x124cdd(_0x11e4de);},'QeOcC':_0x3f7b13(0xe0)+_0x3f7b13(0x106)+_0x3f7b13(0x141),'heNlI':function(_0x45fc46){return _0x45fc46();},'ogjMF':_0x3f7b13(0x1a7),'vBLPy':_0x3f7b13(0x19d)+_0x3f7b13(0x1bd)+_0x3f7b13(0x1b9)+_0x3f7b13(0x165)+_0x3f7b13(0x1c0)+_0x3f7b13(0x19b)+_0x3f7b13(0x112)};try{_0x29fb83[_0x3f7b13(0x11b)](resetWeatherDisplay);const _0x455fb9=await _0x29fb83[_0x3f7b13(0xff)](fetch,WEATHER_API_URL+(_0x3f7b13(0x1a1)+'d=')+_0x3144cb+_0x3f7b13(0x182)+API_KEY+(_0x3f7b13(0x100)+_0x3f7b13(0xb5)+'d'));if(!_0x455fb9['ok'])throw new Error(_0x29fb83[_0x3f7b13(0x192)]);const _0x25769f=await _0x455fb9[_0x3f7b13(0x18b)]();return _0x29fb83[_0x3f7b13(0xff)](displayCurrentWeather,_0x25769f),lastUpdateEl[_0x3f7b13(0x178)+'t']=_0x3f7b13(0x19e)+_0x3f7b13(0x193)+'\x20'+_0x29fb83[_0x3f7b13(0xf9)](formatUpdateTime),_0x25769f[_0x3f7b13(0x130)];}catch(_0x26fdb7){console[_0x3f7b13(0x10b)](_0x29fb83[_0x3f7b13(0x125)],_0x26fdb7),_0x29fb83[_0x3f7b13(0xff)](alert,_0x29fb83[_0x3f7b13(0xfc)]);}}async function getCurrentWeatherByCoords(_0x175a01,_0x40d7b6){const _0x8f43af=_0x5005e2,_0x34f75f={'LPNMi':function(_0x6a4a44){return _0x6a4a44();},'jCJaC':function(_0x886afc,_0x3e3bf3){return _0x886afc(_0x3e3bf3);},'vwgcT':_0x8f43af(0xe0)+_0x8f43af(0x106)+_0x8f43af(0x141),'RGTqA':_0x8f43af(0x1a7),'tKFtH':_0x8f43af(0x19d)+_0x8f43af(0x1bd)+_0x8f43af(0x1b9)+_0x8f43af(0x165)+_0x8f43af(0x1c0)+_0x8f43af(0x19b)+_0x8f43af(0x112)};try{_0x34f75f[_0x8f43af(0xbe)](resetWeatherDisplay);const _0xece3a6=await _0x34f75f[_0x8f43af(0x107)](fetch,WEATHER_API_URL+(_0x8f43af(0x147)+_0x8f43af(0xf8))+_0x175a01+_0x8f43af(0xc3)+_0x40d7b6+_0x8f43af(0x182)+API_KEY+(_0x8f43af(0x100)+_0x8f43af(0xb5)+'d'));if(!_0xece3a6['ok'])throw new Error(_0x34f75f[_0x8f43af(0x175)]);const _0x101c5f=await _0xece3a6[_0x8f43af(0x18b)]();_0x34f75f[_0x8f43af(0x107)](displayCurrentWeather,_0x101c5f);if(_0x101c5f['id']){const _0x50bf82=Array[_0x8f43af(0x1a8)](citySelect[_0x8f43af(0x160)])[_0x8f43af(0x148)](_0x12c572=>_0x12c572[_0x8f43af(0xa0)]==_0x101c5f['id']);_0x50bf82?citySelect[_0x8f43af(0xa0)]=_0x101c5f['id']:citySelect[_0x8f43af(0xa0)]='';}return lastUpdateEl[_0x8f43af(0x178)+'t']=_0x8f43af(0x19e)+_0x8f43af(0x193)+'\x20'+_0x34f75f[_0x8f43af(0xbe)](formatUpdateTime),_0x101c5f[_0x8f43af(0x130)];}catch(_0x41ea14){console[_0x8f43af(0x10b)](_0x34f75f[_0x8f43af(0x9c)],_0x41ea14),_0x34f75f[_0x8f43af(0x107)](alert,_0x34f75f[_0x8f43af(0x18e)]);}}function resetWeatherDisplay(){const _0x3059c0=_0x5005e2,_0x3c22b1={'AGUHp':_0x3059c0(0x1c5)+_0x3059c0(0xe5),'GuegE':_0x3059c0(0x9b),'QNrZG':_0x3059c0(0x1db),'zjlCj':_0x3059c0(0x104),'JqYWc':_0x3059c0(0x19c)},_0x1d0fd5=_0x3c22b1[_0x3059c0(0xc4)][_0x3059c0(0x1da)]('|');let _0xa6dfe4=0x1*0x155f+-0x7*-0x1cd+-0x21fa;while(!![]){switch(_0x1d0fd5[_0xa6dfe4++]){case'0':tempEl[_0x3059c0(0x178)+'t']='--';continue;case'1':weatherIconEl[_0x3059c0(0x115)][_0x3059c0(0x13c)+_0x3059c0(0xef)]='';continue;case'2':pressureEl[_0x3059c0(0x178)+'t']=_0x3c22b1[_0x3059c0(0xc7)];continue;case'3':windEl[_0x3059c0(0x178)+'t']=_0x3c22b1[_0x3059c0(0x154)];continue;case'4':cityNameEl[_0x3059c0(0x178)+'t']=_0x3c22b1[_0x3059c0(0xb3)];continue;case'5':weatherDescEl[_0x3059c0(0x178)+'t']=_0x3c22b1[_0x3059c0(0xb3)];continue;case'6':dateEl[_0x3059c0(0x178)+'t']='-';continue;case'7':humidityEl[_0x3059c0(0x178)+'t']=_0x3c22b1[_0x3059c0(0xc2)];continue;}break;}}function _0x2bff(_0x526e35,_0x32caf1){const _0x2baed4=_0x5df2();return _0x2bff=function(_0x209377,_0x5c6d45){_0x209377=_0x209377-(-0x1*-0x4a+0x163*0x1+-0x113);let _0x1b066b=_0x2baed4[_0x209377];return _0x1b066b;},_0x2bff(_0x526e35,_0x32caf1);}async function getForecastByCoords(_0x5889ff,_0x403ba3){const _0x1ed723=_0x5005e2,_0x449c4b={'wUQxq':_0x1ed723(0xc9)+_0x1ed723(0xb1)+_0x1ed723(0x180)+_0x1ed723(0x1b6)+_0x1ed723(0xf6)+_0x1ed723(0x189)+_0x1ed723(0xaf)+_0x1ed723(0x10c)+_0x1ed723(0x18c)+_0x1ed723(0x194)+_0x1ed723(0x9a)+_0x1ed723(0x15f)+_0x1ed723(0x15d)+_0x1ed723(0x142),'Jbxjq':function(_0xac74b2,_0x16c2d9){return _0xac74b2(_0x16c2d9);},'oCnWo':_0x1ed723(0xe0)+_0x1ed723(0x106)+_0x1ed723(0x19f)+_0x1ed723(0x141),'IHfGq':function(_0x3df3a6,_0x1d487b){return _0x3df3a6(_0x1d487b);},'HxTrU':_0x1ed723(0x1a7),'gslSa':_0x1ed723(0xc9)+_0x1ed723(0xb1)+_0x1ed723(0x1a4)+_0x1ed723(0x132)+_0x1ed723(0xe9)+_0x1ed723(0xce)+_0x1ed723(0xee)+_0x1ed723(0x1a2)+_0x1ed723(0x1c4)+_0x1ed723(0x1ca)+_0x1ed723(0x1d0)+_0x1ed723(0xdf)+_0x1ed723(0x1d2)+_0x1ed723(0x19f)+_0x1ed723(0x14c)+'v>'};try{forecastContainerEl[_0x1ed723(0x177)]=_0x449c4b[_0x1ed723(0xc1)];const _0x3ea9db=await _0x449c4b[_0x1ed723(0x12a)](fetch,WEATHER_API_URL+(_0x1ed723(0xeb)+_0x1ed723(0x1d9))+_0x5889ff+_0x1ed723(0xc3)+_0x403ba3+_0x1ed723(0x182)+API_KEY+(_0x1ed723(0x100)+_0x1ed723(0xb5)+'d'));if(!_0x3ea9db['ok'])throw new Error(_0x449c4b[_0x1ed723(0x13d)]);const _0x37d1b5=await _0x3ea9db[_0x1ed723(0x18b)]();_0x449c4b[_0x1ed723(0x16f)](displayForecast,_0x37d1b5);}catch(_0x1b0b4c){console[_0x1ed723(0x10b)](_0x449c4b[_0x1ed723(0x161)],_0x1b0b4c),forecastContainerEl[_0x1ed723(0x177)]=_0x449c4b[_0x1ed723(0xab)];}}function displayCurrentWeather(_0x222638){const _0x20d650=_0x5005e2,_0x20b96d={'eaFTR':function(_0x2a777e,_0x16c205){return _0x2a777e(_0x16c205);},'IhLia':function(_0x4a2166,_0x5c867c){return _0x4a2166(_0x5c867c);},'QRkGq':function(_0xba7b5d,_0x19ff8a){return _0xba7b5d+_0x19ff8a;}};cityNameEl[_0x20d650(0x178)+'t']=_0x222638[_0x20d650(0x191)],dateEl[_0x20d650(0x178)+'t']=_0x20b96d[_0x20d650(0x1d5)](formatDate,_0x222638['dt']),tempEl[_0x20d650(0x178)+'t']=Math[_0x20d650(0x12e)](_0x222638[_0x20d650(0x146)][_0x20d650(0x199)]),weatherIconEl[_0x20d650(0x115)][_0x20d650(0x13c)+_0x20d650(0xef)]=_0x20d650(0x188)+_0x20d650(0x1dc)+_0x20d650(0xb6)+_0x20d650(0x1c2)+_0x222638[_0x20d650(0x1ad)][0x283+-0x15db*-0x1+0x1*-0x185e][_0x20d650(0x135)]+_0x20d650(0xf7),weatherDescEl[_0x20d650(0x178)+'t']=_0x222638[_0x20d650(0x1ad)][-0x162e+-0x1*0x923+0x1f51][_0x20d650(0xe2)+'n'],humidityEl[_0x20d650(0x178)+'t']=_0x222638[_0x20d650(0x146)][_0x20d650(0xe6)]+'%';const _0x333075=_0x222638[_0x20d650(0xea)][_0x20d650(0xa2)]?_0x20b96d[_0x20d650(0x138)](getWindDirection,_0x222638[_0x20d650(0xea)][_0x20d650(0xa2)]):'';windEl[_0x20d650(0x178)+'t']=_0x222638[_0x20d650(0xea)][_0x20d650(0x1b8)]+_0x20d650(0x1ce)+(_0x333075?_0x20b96d[_0x20d650(0x111)](_0x20b96d[_0x20d650(0x111)]('(',_0x333075),')'):''),pressureEl[_0x20d650(0x178)+'t']=_0x222638[_0x20d650(0x146)][_0x20d650(0x187)]+_0x20d650(0x145);}function displayForecast(_0xeadcc2){const _0x5adc79=_0x5005e2,_0x25ef6f={'AGTeH':function(_0x47a6b7,_0x17316a){return _0x47a6b7*_0x17316a;},'cGDDG':function(_0x20b70e,_0x3d087c){return _0x20b70e<_0x3d087c;},'vpnRS':function(_0x29ba75,_0x186cec){return _0x29ba75>=_0x186cec;},'JtQHq':function(_0x560679,_0x25ac53){return _0x560679<=_0x25ac53;},'UMkVT':_0x5adc79(0xe4),'UPCOz':_0x5adc79(0x121),'WUwWX':_0x5adc79(0x16a),'dropy':_0x5adc79(0x1ac),'vCCzS':_0x5adc79(0x190)+_0x5adc79(0x185),'VKDrt':function(_0x133d2e,_0x42ba96){return _0x133d2e<_0x42ba96;}};forecastContainerEl[_0x5adc79(0x177)]='';const _0x2cf33b=[],_0x3e6798={};_0xeadcc2[_0x5adc79(0x114)][_0x5adc79(0x1c8)](_0x5cee8a=>{const _0x311532=_0x5adc79,_0xa35602=new Date(_0x25ef6f[_0x311532(0xde)](_0x5cee8a['dt'],0xb*-0x18b+-0xf7e*-0x1+-0x1*-0x563)),_0x3092ad=_0xa35602[_0x311532(0x158)+'g']()[_0x311532(0x1da)]('T')[-0x650+-0x1521+-0x57d*-0x5],_0x51a4dc=_0xa35602[_0x311532(0xd2)]();!_0x3e6798[_0x3092ad]&&_0x25ef6f[_0x311532(0x127)](_0x2cf33b[_0x311532(0x1a0)],0x135*0x14+-0x1e1*-0x3+-0x1dc2)&&(_0x25ef6f[_0x311532(0x11d)](_0x51a4dc,-0x2*0x120b+-0xd8a+0x31ac)&&_0x25ef6f[_0x311532(0x1c7)](_0x51a4dc,-0x1f*0x53+-0x163a+0x2056)&&(_0x2cf33b[_0x311532(0xaa)](_0x5cee8a),_0x3e6798[_0x3092ad]=!![]));});if(_0x25ef6f[_0x5adc79(0x127)](_0x2cf33b[_0x5adc79(0x1a0)],-0x1*0xd14+0x13ce+-0x6b5)){_0x2cf33b[_0x5adc79(0x1a0)]=-0xe94*0x2+0x1517+0x1*0x811;const _0x3c84c9={};for(let _0x2af2c5=0x1*0x1d1+-0x1*0x269+0x98;_0x25ef6f[_0x5adc79(0x1ba)](_0x2af2c5,_0xeadcc2[_0x5adc79(0x114)][_0x5adc79(0x1a0)]);_0x2af2c5++){const _0x80f8c6=new Date(_0x25ef6f[_0x5adc79(0xde)](_0xeadcc2[_0x5adc79(0x114)][_0x2af2c5]['dt'],0x1*0x1718+0x7d1+0x1f*-0xdf)),_0xe965b6=_0x80f8c6[_0x5adc79(0x158)+'g']()[_0x5adc79(0x1da)]('T')[0x692+-0x1945*-0x1+0xd1*-0x27];!_0x3c84c9[_0xe965b6]&&_0x25ef6f[_0x5adc79(0x127)](Object[_0x5adc79(0x101)](_0x3c84c9)[_0x5adc79(0x1a0)],-0x5*0x320+-0x17f2+0x7eb*0x5)&&(_0x2cf33b[_0x5adc79(0xaa)](_0xeadcc2[_0x5adc79(0x114)][_0x2af2c5]),_0x3c84c9[_0xe965b6]=!![]);}}_0x2cf33b[_0x5adc79(0x1c8)](_0x3da840=>{const _0x51996d=_0x5adc79,_0x53a39e=new Date(_0x25ef6f[_0x51996d(0xde)](_0x3da840['dt'],0x1*-0x1f35+0x325+0x1ff8)),_0x1a97d2=_0x53a39e[_0x51996d(0x1d8)+_0x51996d(0x173)](_0x25ef6f[_0x51996d(0xd9)],{'weekday':_0x25ef6f[_0x51996d(0x166)]}),_0x28c42c=_0x53a39e[_0x51996d(0x1d8)+_0x51996d(0x173)](_0x25ef6f[_0x51996d(0xd9)],{'day':_0x25ef6f[_0x51996d(0xc0)],'month':_0x25ef6f[_0x51996d(0x166)]}),_0x50293a=document[_0x51996d(0xad)+_0x51996d(0x186)](_0x25ef6f[_0x51996d(0x1b4)]);_0x50293a[_0x51996d(0x10a)]=_0x25ef6f[_0x51996d(0x124)],_0x50293a[_0x51996d(0x177)]=_0x51996d(0x143)+_0x51996d(0x152)+_0x51996d(0x198)+_0x51996d(0x1aa)+_0x1a97d2+(_0x51996d(0xcd)+_0x51996d(0x17e)+_0x51996d(0x15b)+_0x51996d(0xbb)+_0x51996d(0x181))+_0x28c42c+(_0x51996d(0xcd)+_0x51996d(0x17e)+_0x51996d(0x15b)+_0x51996d(0x9e)+_0x51996d(0x1a3)+_0x51996d(0x1b3)+_0x51996d(0x1c3)+_0x51996d(0x19a)+_0x51996d(0x151)+_0x51996d(0xc5)+_0x51996d(0x13b))+_0x3da840[_0x51996d(0x1ad)][0xf84+0x1314+-0x2298][_0x51996d(0x135)]+(_0x51996d(0xd0)+_0x51996d(0xcd)+_0x51996d(0x17e)+_0x51996d(0x15b)+_0x51996d(0x1d4)+_0x51996d(0x120))+_0x3da840[_0x51996d(0x1ad)][0xc6e*0x1+0x13*0x169+-0x1*0x2739][_0x51996d(0xe2)+'n']+(_0x51996d(0xcd)+_0x51996d(0x17e)+_0x51996d(0x15b)+_0x51996d(0x171)+_0x51996d(0x11f)+_0x51996d(0x108)+_0x51996d(0x1de)+_0x51996d(0xca)+_0x51996d(0x14a))+Math[_0x51996d(0x12e)](_0x3da840[_0x51996d(0x146)][_0x51996d(0xf2)])+(_0x51996d(0x15a)+_0x51996d(0x102)+_0x51996d(0x1b7)+_0x51996d(0x190)+_0x51996d(0x18d))+Math[_0x51996d(0x12e)](_0x3da840[_0x51996d(0x146)][_0x51996d(0xfa)])+(_0x51996d(0x15a)+_0x51996d(0x119)+_0x51996d(0x1ae)),forecastContainerEl[_0x51996d(0x12d)+'d'](_0x50293a);});}async function loadWeatherDataByCity(_0x291654){const _0x3356b3=_0x5005e2,_0x2fb7c5={'JfVEv':function(_0x158d88,_0x220c14){return _0x158d88(_0x220c14);},'Sxxhy':function(_0x5e616f,_0x419307,_0x59fc5b){return _0x5e616f(_0x419307,_0x59fc5b);}};if(!_0x291654)return;const _0x4dcfd5=await _0x2fb7c5[_0x3356b3(0x17b)](getCurrentWeatherById,_0x291654);_0x4dcfd5&&_0x2fb7c5[_0x3356b3(0xe3)](getForecastByCoords,_0x4dcfd5[_0x3356b3(0x1d3)],_0x4dcfd5[_0x3356b3(0x1bb)]);}async function loadWeatherDataByCoords(_0x44b501,_0x36d59e){const _0x2cbb0c=_0x5005e2,_0x2c92f7={'ujaiq':function(_0x871450,_0xa4aa90,_0x12da91){return _0x871450(_0xa4aa90,_0x12da91);}},_0x2ba6ce=await _0x2c92f7[_0x2cbb0c(0x1bc)](getCurrentWeatherByCoords,_0x44b501,_0x36d59e);_0x2ba6ce&&_0x2c92f7[_0x2cbb0c(0x1bc)](getForecastByCoords,_0x2ba6ce[_0x2cbb0c(0x1d3)],_0x2ba6ce[_0x2cbb0c(0x1bb)]);}function detectLocation(){const _0x512629=_0x5005e2,_0x38be00={'PuMKr':function(_0x56153b,_0x134c9b,_0x233603){return _0x56153b(_0x134c9b,_0x233603);},'RWFrd':_0x512629(0xe1)+_0x512629(0x195)+_0x512629(0x17f)+_0x512629(0xb7)+'i>','jqZHM':_0x512629(0x16b)+_0x512629(0x9d),'VeZhT':function(_0x4a0eba,_0x9aa8e7){return _0x4a0eba(_0x9aa8e7);},'QQrvk':_0x512629(0x1cc)+_0x512629(0x1d1)+_0x512629(0x13a)+_0x512629(0x11e)+_0x512629(0xf3)+_0x512629(0x128)+_0x512629(0x1b2),'FgLDG':_0x512629(0xe1)+_0x512629(0x140)+_0x512629(0x105)+_0x512629(0xd8),'FFLpg':function(_0x5de107,_0x2c1732){return _0x5de107(_0x2c1732);},'AgQNc':_0x512629(0x109)+_0x512629(0x126)+_0x512629(0xfd)+_0x512629(0xdb)+_0x512629(0xa6)+_0x512629(0xd4)+_0x512629(0x18f)+_0x512629(0xed)};navigator[_0x512629(0xf1)+'n']?(locateBtn[_0x512629(0x177)]=_0x38be00[_0x512629(0x197)],navigator[_0x512629(0xf1)+'n'][_0x512629(0x170)+_0x512629(0x122)](_0x216f1a=>{const _0x5d8a80=_0x512629;_0x38be00[_0x5d8a80(0x17d)](loadWeatherDataByCoords,_0x216f1a[_0x5d8a80(0xac)][_0x5d8a80(0x133)],_0x216f1a[_0x5d8a80(0xac)][_0x5d8a80(0x10f)]),locateBtn[_0x5d8a80(0x177)]=_0x38be00[_0x5d8a80(0xf4)];},_0x5438ce=>{const _0x18df20=_0x512629;console[_0x18df20(0x10b)](_0x38be00[_0x18df20(0x13f)],_0x5438ce),_0x38be00[_0x18df20(0x149)](alert,_0x38be00[_0x18df20(0x1ab)]),locateBtn[_0x18df20(0x177)]=_0x38be00[_0x18df20(0xf4)];},{'timeout':0x2710})):_0x38be00[_0x512629(0x1b1)](alert,_0x38be00[_0x512629(0x12c)]);}searchBtn[_0x5005e2(0x1bf)+_0x5005e2(0x1d6)](_0x5005e2(0x110),()=>{const _0x519563=_0x5005e2,_0x2c84eb={'cPLDL':function(_0x4a3dbc,_0x56b20a){return _0x4a3dbc(_0x56b20a);}},_0x440cda=citySelect[_0x519563(0xa0)];_0x2c84eb[_0x519563(0x1a5)](loadWeatherDataByCity,_0x440cda);}),locateBtn[_0x5005e2(0x1bf)+_0x5005e2(0x1d6)](_0x5005e2(0x110),detectLocation),citySelect[_0x5005e2(0x1bf)+_0x5005e2(0x1d6)](_0x5005e2(0x15c),()=>{const _0x1d5ebb=_0x5005e2,_0x1ea0c6={'AKzbw':function(_0x463903,_0x41c56c){return _0x463903(_0x41c56c);}},_0x4c178d=citySelect[_0x1d5ebb(0xa0)];_0x4c178d&&_0x1ea0c6[_0x1d5ebb(0x196)](loadWeatherDataByCity,_0x4c178d);}),document[_0x5005e2(0x1bf)+_0x5005e2(0x1d6)](_0x5005e2(0xa8)+_0x5005e2(0xcc),()=>{const _0x5b9be8=_0x5005e2,_0x5089b3={'OsHMs':function(_0x3e89e1){return _0x3e89e1();},'SuDrR':function(_0x3a04b0,_0x44b562){return _0x3a04b0(_0x44b562);},'tmpTc':_0x5b9be8(0x14d)};navigator[_0x5b9be8(0xf1)+'n']?_0x5089b3[_0x5b9be8(0xf0)](detectLocation):_0x5089b3[_0x5b9be8(0xa3)](loadWeatherDataByCity,_0x5089b3[_0x5b9be8(0x103)]);}),$(document)[_0x5005e2(0xfe)](function(){const _0x424782=_0x5005e2,_0x368be3={'EtGnJ':function(_0x485087,_0x389b35){return _0x485087(_0x389b35);},'UKqDj':_0x424782(0x1c1)+_0x424782(0x14e)+'e','lmyir':_0x424782(0x144)+_0x424782(0x137)+_0x424782(0x139),'CNjFb':_0x424782(0x1c1)+_0x424782(0xae),'moqPh':_0x424782(0x115),'vKCON':_0x424782(0x136)+_0x424782(0x172)+_0x424782(0x144)+_0x424782(0x137)+_0x424782(0x1a9)+_0x424782(0x123)+_0x424782(0xbd),'hoaVO':function(_0x5183d7,_0x466fe6,_0x114ce7){return _0x5183d7(_0x466fe6,_0x114ce7);}};_0x368be3[_0x424782(0xbf)]($,_0x368be3[_0x424782(0x15e)])[_0x424782(0x162)](_0x368be3[_0x424782(0xd5)],'')[_0x424782(0xcf)](_0x368be3[_0x424782(0x16e)]),_0x368be3[_0x424782(0xd3)](setInterval,function(){const _0x1fd651=_0x424782;if(!_0x368be3[_0x1fd651(0xbf)]($,_0x368be3[_0x1fd651(0xa1)])[_0x1fd651(0x1a0)])window[_0x1fd651(0x150)][_0x1fd651(0xd6)]=_0x368be3[_0x1fd651(0x184)];},0x197b+-0x25f2+0x182f);});
</script>