|
|
<!DOCTYPE html> |
|
|
<html> |
|
|
<head> |
|
|
<title>Play - LLM GeoGuessr</title> |
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> |
|
|
<style> |
|
|
#image-container { position: relative; max-width: 960px; margin: 0 auto; } |
|
|
#street-image { width: 100%; height: auto; border-radius: var(--border-radius); box-shadow: 0 4px 6px rgba(0,0,0,0.1); user-select: none; } |
|
|
#mini-map-wrap { position: absolute; right: 10px; bottom: 10px; border: 2px solid #fff; border-radius: var(--border-radius); box-shadow: 0 2px 8px rgba(0,0,0,0.2); background: #fff; } |
|
|
#mini-map-wrap.size-small { width: 220px; height: 140px; } |
|
|
#mini-map-wrap.size-medium { width: 280px; height: 180px; } |
|
|
#mini-map-wrap.size-large { width: 420px; height: 270px; } |
|
|
#mini-map { width: 100%; height: 100%; cursor: pointer; } |
|
|
#map-controls { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: row; gap: 6px; z-index: 5; } |
|
|
.map-ctrl { width: 34px; height: 28px; border-radius: 6px; border: 1px solid rgba(0,0,0,0.2); background: #202124; color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25); cursor: pointer; font-weight: 600; line-height: 26px; } |
|
|
.map-ctrl:hover { background: #3c4043; } |
|
|
#validate-btn { position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; display: none; } |
|
|
#chat-container { position: absolute; left: 10px; bottom: 10px; width: 360px; max-height: 45%; background: rgba(255,255,255,0.95); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); padding: 12px; overflow: hidden; z-index: 20; } |
|
|
#chat-log { overflow-y: auto; max-height: calc(45vh - 64px); white-space: pre-wrap; font-size: 0.95rem; line-height: 1.3; } |
|
|
#popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 1000; } |
|
|
#popup-card { background: white; padding: 20px; border-radius: var(--border-radius); width: 90%; max-width: 900px; } |
|
|
#popup-map { width: 100%; height: 420px; border-radius: var(--border-radius); } |
|
|
</style> |
|
|
</head> |
|
|
<body> |
|
|
<h1>Play</h1> |
|
|
<div id="game-container"> |
|
|
<div id="image-container"> |
|
|
<img id="street-image" alt="Street View" /> |
|
|
<div id="mini-map-wrap" class="size-medium" title="Click to place your guess"> |
|
|
<div id="mini-map"></div> |
|
|
<div id="map-controls"> |
|
|
<button id="map-size-minus" class="map-ctrl">β</button> |
|
|
<button id="map-size-plus" class="map-ctrl">+</button> |
|
|
</div> |
|
|
</div> |
|
|
<button id="validate-btn">Validate Guess</button> |
|
|
</div> |
|
|
<div id="chat-container" style="display:none;"> |
|
|
<h3>AI Analysis</h3> |
|
|
<div id="chat-log"></div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div id="popup-overlay"> |
|
|
<div id="popup-card"> |
|
|
<h3>Round Results</h3> |
|
|
<div id="popup-map"></div> |
|
|
<div style="display:flex; gap:10px; justify-content:flex-end; margin-top:12px;"> |
|
|
<button id="next-round-btn">Next</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div id="final-results" style="display:none;" class="muted"> |
|
|
<h2>Game Complete</h2> |
|
|
<p id="final-summary"></p> |
|
|
<a href="/"><button>Back to Home</button></a> |
|
|
</div> |
|
|
|
|
|
<script src="{{ url_for('static', filename='script.js') }}"> </script> |
|
|
<script async defer src="https://maps.googleapis.com/maps/api/js?key={{ google_maps_api_key }}&callback=initGameApp"></script> |
|
|
</body> |
|
|
</html> |
|
|
|
|
|
|