mirror of
https://github.com/tiennm99/vigeoguessr.git
synced 2026-10-11 03:13:55 +00:00
new ver
This commit is contained in:
1 parent
9b7cf85b48
commit
f1e8d5801c
3 files changed
+5
-5
No files matched your search
+1
-1
@@ -1 +1 @@
|
|||||||
'use strict';const _0xd25496=_0x8440;(function(_0x29936d,_0xc7b02){const _0x41b66d=_0x8440,_0x550129=_0x29936d();while(!![]){try{const _0x2afcc9=parseInt(_0x41b66d(0x121))/0x1*(parseInt(_0x41b66d(0xec))/0x2)+-parseInt(_0x41b66d(0xdf))/0x3+parseInt(_0x41b66d(0x124))/0x4+-parseInt(_0x41b66d(0xdc))/0x5*(-parseInt(_0x41b66d(0xee))/0x6)+-parseInt(_0x41b66d(0x112))/0x7*(-parseInt(_0x41b66d(0xfd))/0x8)+-parseInt(_0x41b66d(0xd0))/0x9+-parseInt(_0x41b66d(0x122))/0xa;if(_0x2afcc9===_0xc7b02)break;else _0x550129['push'](_0x550129['shift']());}catch(_0x24fb54){_0x550129['push'](_0x550129['shift']());}}}(_0x345c,0x780f7));var map,resultmap,markers=[],guess_coordinates=[],true_location=[],accumulated_distance=0x0,current_name='',distance_from_guess=[],check_count=0x0,choiceLocation='HN';function _0x345c(){const _0x115280=['1792988PzzFLP','onclick','head','block','click','Viewer','location','error','featureGroup','Error\x20in\x20initialize\x20function:','PhotoSphereViewer\x20not\x20available,\x20using\x20fallback\x20image','appendChild','disabled','addEventListener','<img\x20src=\x22','https://maps.google.com/mapfiles/ms/icons/green-dot.png','innerHTML','latlng','style','random','loading-styles','m\x20away.','pad','json','3544110hlEHtM','\x0a\x20\x20\x20\x20\x20\x20@keyframes\x20spin\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x200%\x20{\x20transform:\x20rotate(0deg);\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20100%\x20{\x20transform:\x20rotate(360deg);\x20}\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20','textContent','ready','hide','\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22width:100%;\x20height:400px;\x20display:flex;\x20justify-content:center;\x20align-items:center;\x20\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22text-align:center;\x20color:\x20#e74c3c;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:\x2018px;\x20margin-bottom:\x2010px;\x22>⚠️\x20Error\x20loading\x20image</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:\x2014px;\x22>Retrying...</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20','reload','resultText','addTo','length','pano','thumb_original_url','9445VAsDuo','resultModal','Excellent!','846330pZSpct','https://maps.google.com/mapfiles/ms/icons/red-dot.png','\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22width:100%;\x20height:400px;\x20display:flex;\x20justify-content:center;\x20align-items:center;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22text-align:center;\x20color:\x20#e74c3c;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:\x2018px;\x20margin-bottom:\x2010px;\x22>⚠️\x20Failed\x20to\x20load</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20onclick=\x22location.reload()\x22\x20style=\x22padding:\x208px\x2016px;\x20background:\x20#3498db;\x20color:\x20white;\x20border:\x20none;\x20border-radius:\x205px;\x20cursor:\x20pointer;\x22>Retry</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20','log','zoom','fullscreen','includes','getElementById','map','getBounds','Hmm!\x20Nice\x20try.','No\x20images\x20found,\x20retrying...','catch','38VPvQoL','Panorama\x20image\x20loaded','1770OfutxO','Error\x20loading\x20panorama:','Error\x20initializing\x20Photo\x20Sphere\x20Viewer:','warn','href','is_pano','panorama-loaded','sin','Modal','MLY|24113623194974280|5bf83fa202912f1cc3210b2cf968fb65','panorama-error','result','data','then','lng','440xSKyyZ','invalidateSize','none','check','donateModal','blue','tileLayer','distance-guess','fitBounds','\x22\x20style=\x22width:100%;\x20height:100%;\x20object-fit:cover;\x20border-radius:10px;\x22\x20/>','https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png','\x0a\x20\x20\x20\x20<div\x20style=\x22width:100%;\x20height:400px;\x20display:flex;\x20justify-content:center;\x20align-items:center;\x20\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22text-align:center;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22border:\x204px\x20solid\x20#f3f3f3;\x20border-top:\x204px\x20solid\x20#3498db;\x20border-radius:\x2050%;\x20width:\x2040px;\x20height:\x2040px;\x20animation:\x20spin\x202s\x20linear\x20infinite;\x20margin:\x200\x20auto\x2015px;\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22color:\x20#666;\x20font-size:\x2016px;\x22>Loading\x20image...</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20','PhotoSphereViewer','VIET\x20NAM','coordinates','marker','join','icon','&is_pano=true','5,\x2010','\x20KM','78918fUFGfZ','geometry','url','cos','display','polyline','lat','Excellent!\x20Your\x20distance\x20is\x20','toFixed','Loading\x20image...','&fields=id,thumb_original_url,geometry,is_pano&limit=3&bbox=','Error\x20fetching\x20image:','onload','Image\x20fetched\x20successfully','Good\x20job!','41081kYvWOe','12384440xzDeBh','bindPopup'];_0x345c=function(){return _0x115280;};return _0x345c();}function _0x8440(_0x54775Line truncated
|
'use strict';const _0x4ac836=_0x42cc;(function(_0x14faf7,_0xf26a0c){const _0x5c878e=_0x42cc,_0x51f13c=_0x14faf7();while(!![]){try{const _0x253d07=-parseInt(_0x5c878e(0x1b9))/0x1+-parseInt(_0x5c878e(0x1fc))/0x2+-parseInt(_0x5c878e(0x1cd))/0x3+parseInt(_0x5c878e(0x1c0))/0x4*(-parseInt(_0x5c878e(0x1c4))/0x5)+parseInt(_0x5c878e(0x1e1))/0x6*(parseInt(_0x5c878e(0x1c2))/0x7)+-parseInt(_0x5c878e(0x1fb))/0x8+parseInt(_0x5c878e(0x1b5))/0x9;if(_0x253d07===_0xf26a0c)break;else _0x51f13c['push'](_0x51f13c['shift']());}catch(_0x25b5de){_0x51f13c['push'](_0x51f13c['shift']());}}}(_0x1319,0x2021c));var map,resultmap,markers=[],guess_coordinates=[],true_location=[],accumulated_distance=0x0,current_name='',distance_from_guess=[],check_count=0x0,choiceLocation='HN';const boundingBoxVN={'HN':[105.77,20.96,105.88,21.05,0.003],'TPHCM':[106.62,10.71,106.75,10.83,0.005],'HP':[106.65,20.8,106.75,20.9,0.05],'ND':[0x6a,20.35,106.25,20.5,0.005],'DN':[108.17,0x10,108.25,16.1,0.005]};var minLat=boundingBoxVN[choiceLocation][0x1],maxLat=boundingBoxVN[choiceLocation][0x3],minLong=boundingBoxVN[choiceLocation][0x0],maxLong=boundingBoxVN[choiceLocation][0x2],delta=boundingBoxVN[choiceLocation][0x4];const accessToken='MLY|24113623194974280|5bf83fa202912f1cc3210b2cf968fb65';function _0x42cc(_0x2cac5b,_0x461784){const _0x1319a3=_0x1319();return _0x42cc=function(_0x42cc4e,_0xe1b53d){_0x42cc4e=_0x42cc4e-0x1ac;let _0x455e37=_0x1319a3[_0x42cc4e];return _0x455e37;},_0x42cc(_0x2cac5b,_0x461784);}async function getRandomMapillaryImage(){const _0x2e1531=_0x42cc,_0x28efb2=Math[_0x2e1531(0x20f)]()*(maxLat-minLat)+minLat,_0x553355=Math[_0x2e1531(0x20f)]()*(maxLong-minLong)+minLong,_0x339a28=[(_0x553355-delta)[_0x2e1531(0x20b)](0x4),(_0x28efb2-delta)[_0x2e1531(0x20b)](0x4),(_0x553355+delta)['toFixed'](0x4),(_0x28efb2+delta)[_0x2e1531(0x20b)](0x4)][_0x2e1531(0x209)](','),_0x3f6cb8='https://graph.mapillary.com/images?access_token='+accessToken+_0x2e1531(0x1c9)+_0x339a28+'&is_pano=true';try{console[_0x2e1531(0x1bb)](_0x2e1531(0x1c3));const _0x2fc39d=await fetch(_0x3f6cb8),_0x4bd2ac=await _0x2fc39d[_0x2e1531(0x1f6)]();if(_0x4bd2ac[_0x2e1531(0x1ca)]&&_0x4bd2ac[_0x2e1531(0x1ca)]['length']>0x0){const _0x32e6d5=_0x4bd2ac[_0x2e1531(0x1ca)][_0x2e1531(0x1d2)](_0x14b241=>_0x14b241['is_pano']),_0x5caa8d=_0x32e6d5[_0x2e1531(0x1cc)]>0x0?_0x32e6d5[Math[_0x2e1531(0x1e0)](Math[_0x2e1531(0x20f)]()*_0x32e6d5[_0x2e1531(0x1cc)])]:_0x4bd2ac[_0x2e1531(0x1ca)][0x0];return console[_0x2e1531(0x1bb)]('Image\x20fetched\x20successfully'),{'lat':_0x5caa8d['geometry'][_0x2e1531(0x1b8)][0x1],'lng':_0x5caa8d[_0x2e1531(0x1f3)]['coordinates'][0x0],'url':_0x5caa8d[_0x2e1531(0x1ff)],'id':_0x5caa8d['id'],'isPano':_0x5caa8d['is_pano']||![]};}else return console['log'](_0x2e1531(0x1f0)),getRandomMapillaryImage();}catch(_0x3376d0){console[_0x2e1531(0x1d0)](_0x2e1531(0x1e3),_0x3376d0),document[_0x2e1531(0x20a)]('pano')[_0x2e1531(0x208)]=_0x2e1531(0x1d9),setTimeout(()=>getRandomMapillaryImage(),0x7d0);}}function checkLibrariesLoaded(){return new Promise(_0x28a7b2=>{const _0x42085f=setInterval(()=>{const _0x98b549=_0x42cc;window['L']&&window[_0x98b549(0x1b4)]&&(clearInterval(_0x42085f),_0x28a7b2());},0x64);});}function showLoading(){const _0x30dbfd=_0x42cc;document[_0x30dbfd(0x20a)](_0x30dbfd(0x1d7))[_0x30dbfd(0x208)]=_0x30dbfd(0x201);if(!document[_0x30dbfd(0x20a)]('loading-styles')){const _0x407d5a=document[_0x30dbfd(0x1c8)](_0x30dbfd(0x1f5));_0x407d5a['id']=_0x30dbfd(0x1e6),_0x407d5a[_0x30dbfd(0x1f7)]=_0x30dbfd(0x1e7),document['head'][_0x30dbfd(0x1c5)](_0x407d5a);}}function hideLoading(){const _0x4fb157=_0x42cc,_0x54f6fd=document['getElementById']('pano');_0x54f6fd&&_0x54f6fd[_0x4fb157(0x208)][_0x4fb157(0x1dc)]('Loading\x20image...')&&(_0x54f6fd[_0x4fb157(0x208)]='');}function initialize(){const _0x2c93f6=_0x42cc;check_count=0x0,disableButton(_0x2c93f6(0x202)),showLoading(),getRandomMapillaryImage()[_0x2c93f6(0x1ce)](_0x368947=>{const _0xbec09a=_0x2c93f6;if(!_0x368947)return location['reload']();true_location=[_0x368947['lat'],_0x368947[_0xbec09a(0x1ee)]],current_name=_0xbec09a(0x1ae),document['getElementById'](_0xbec09a(0x1d7))[_0xbec09a(0x208)]='';try{if(window[_0xbec09a(0x1b4)]&&window[_0xbec09a(0x1b4)][_0xbec09a(0x1ba)]){hideLoading();const _0xc9c77b=new PhotoSphereViewer['Viewer']({'container':document[_0xbec09a(0x20a)](_0xbec09a(0x1d7)),'panorama':_0x368947[_0xbec09a(0x1d4)],'loadingImg':null,'defaultYaw':0x0,'defaultZoomLvl':-0x60,'navbar':['zoom',_0xbec09a(0x1e9)],'mousewheel':![],'touchmoveTwoFingers':!![]});_0xc9c77b['addEventListener'](_0xbec09a(0x204),()=>{const _0x218bee=_0xbec09a;console[_0x218bee(0x1bb)](_0x218bee(0x1be));}),_0xc9c77b[_0xbec09a(0x1b7)](_0xbec09a(0x210),()=>{const _0x217d5d=_0xbec09a;console['log'](_0x217d5d(0x1fa));}),_0xc9c77b[_0xbec09a(0x1b7)](_0xbec09a(0x1d8),_0x429d45=>{const _0x4f4d3b=_0xbec09a;console[_0x4f4d3b(0x1d0)](_0x4f4d3b(0x1c7),_0x429d45),hideLoading(),document[_0x4f4d3b(0x20a)](_0x4f4d3b(0x1d7))[_0x4f4d3b(0x208)]=_0x4f4d3b(0x200)+_0x368947[_0x4f4d3b(Line truncated
|
||||||
@@ -25,9 +25,9 @@
|
|||||||
<meta name="author" content="Duc Luu Van" />
|
<meta name="author" content="Duc Luu Van" />
|
||||||
<meta property="og:title" content="VIGUESSR - Play Now" />
|
<meta property="og:title" content="VIGUESSR - Play Now" />
|
||||||
<meta property="og:description" content="Choose your city and guess the location of the picture. Play VIGUESSR now!" />
|
<meta property="og:description" content="Choose your city and guess the location of the picture. Play VIGUESSR now!" />
|
||||||
<meta property="og:image" content="/assets/images/thumb.png" />
|
<meta property="og:image" content="https://viguessr.com/assets/images/thumb.png" />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:url" content="https://yourdomain.com/" />
|
<meta property="og:url" content="https://viguessr.com/" />
|
||||||
<meta name="twitter:card" content="summary_large_image" />
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
<meta name="twitter:title" content="VIGUESSR - Play Now" />
|
<meta name="twitter:title" content="VIGUESSR - Play Now" />
|
||||||
<meta name="twitter:description" content="Choose your city and guess the location of the picture. Play VIGUESSR now!" />
|
<meta name="twitter:description" content="Choose your city and guess the location of the picture. Play VIGUESSR now!" />
|
||||||
|
|||||||
+2
-2
@@ -13,9 +13,9 @@
|
|||||||
<meta name="author" content="Duc Luu Van" />
|
<meta name="author" content="Duc Luu Van" />
|
||||||
<meta property="og:title" content="VIGUESSR - Play Now" />
|
<meta property="og:title" content="VIGUESSR - Play Now" />
|
||||||
<meta property="og:description" content="Choose your city and guess the location of the picture. Play VIGUESSR now!" />
|
<meta property="og:description" content="Choose your city and guess the location of the picture. Play VIGUESSR now!" />
|
||||||
<meta property="og:image" content="/assets/images/thumb.png" />
|
<meta property="og:image" content="https://viguessr.com/assets/images/thumb.png" />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:url" content="https://yourdomain.com/" />
|
<meta property="og:url" content="https://viguessr.com/" />
|
||||||
<meta name="twitter:card" content="summary_large_image" />
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
<meta name="twitter:title" content="VIGUESSR - Play Now" />
|
<meta name="twitter:title" content="VIGUESSR - Play Now" />
|
||||||
<meta name="twitter:description" content="Choose your city and guess the location of the picture. Play VIGUESSR now!" />
|
<meta name="twitter:description" content="Choose your city and guess the location of the picture. Play VIGUESSR now!" />
|
||||||
|
|||||||
Reference in new issue
Block a user