benjamin5607 commited on
Commit
52f5b09
Β·
verified Β·
1 Parent(s): 08f05d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -106,6 +106,7 @@ html_code = f"""
106
 
107
  /* --- World Map Page --- */
108
  #world-map-page {{ background: #111; z-index: 200; transform: translateY(100%); display: flex; flex-direction: column; }}
 
109
  .map-search-bar {{
110
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 500px;
111
  z-index: 1000; display: flex; gap: 10px; background: rgba(0,0,0,0.8); padding: 10px; border-radius: 12px; border: 1px solid #444;
@@ -113,6 +114,19 @@ html_code = f"""
113
  .map-input {{ flex: 1; background: transparent; border: none; color: white; font-size: 16px; outline: none; }}
114
  .map-icon-btn {{ background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gold); }}
115
  .home-btn {{ background: #333; color: white; border: 1px solid #555; padding: 0 15px; border-radius: 8px; font-weight: bold; cursor: pointer; }}
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  #full-map {{ width: 100%; height: 100%; }}
117
 
118
  /* --- Loader --- */
@@ -175,9 +189,11 @@ html_code = f"""
175
  <button class="home-btn" onclick="closeWorldMapPage()">🏠 HOME</button>
176
  <input type="text" id="map-search-input" class="map-input" placeholder="Search City (e.g. Gangnam, London)..." onkeydown="if(event.key === 'Enter') searchMapLocation()">
177
  <button class="map-icon-btn" onclick="searchMapLocation()">πŸ”</button>
178
- <button class="map-icon-btn" onclick="getMyLocation()">πŸ“</button>
179
  </div>
 
180
  <div id="full-map"></div>
 
 
181
  </div>
182
 
183
  <div id="loader" class="loading-screen">
 
106
 
107
  /* --- World Map Page --- */
108
  #world-map-page {{ background: #111; z-index: 200; transform: translateY(100%); display: flex; flex-direction: column; }}
109
+
110
  .map-search-bar {{
111
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 500px;
112
  z-index: 1000; display: flex; gap: 10px; background: rgba(0,0,0,0.8); padding: 10px; border-radius: 12px; border: 1px solid #444;
 
114
  .map-input {{ flex: 1; background: transparent; border: none; color: white; font-size: 16px; outline: none; }}
115
  .map-icon-btn {{ background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gold); }}
116
  .home-btn {{ background: #333; color: white; border: 1px solid #555; padding: 0 15px; border-radius: 8px; font-weight: bold; cursor: pointer; }}
117
+
118
+ /* πŸ”₯ Floating Location Button (Bottom Right) */
119
+ .floating-loc-btn {{
120
+ position: absolute; bottom: 30px; right: 20px;
121
+ width: 50px; height: 50px; border-radius: 50%;
122
+ background: white; color: black; border: none;
123
+ box-shadow: 0 4px 10px rgba(0,0,0,0.3);
124
+ font-size: 24px; cursor: pointer; z-index: 1000;
125
+ display: flex; justify-content: center; align-items: center;
126
+ transition: transform 0.2s;
127
+ }}
128
+ .floating-loc-btn:active {{ transform: scale(0.95); }}
129
+
130
  #full-map {{ width: 100%; height: 100%; }}
131
 
132
  /* --- Loader --- */
 
189
  <button class="home-btn" onclick="closeWorldMapPage()">🏠 HOME</button>
190
  <input type="text" id="map-search-input" class="map-input" placeholder="Search City (e.g. Gangnam, London)..." onkeydown="if(event.key === 'Enter') searchMapLocation()">
191
  <button class="map-icon-btn" onclick="searchMapLocation()">πŸ”</button>
 
192
  </div>
193
+
194
  <div id="full-map"></div>
195
+
196
+ <button class="floating-loc-btn" onclick="getMyLocation()">🎯</button>
197
  </div>
198
 
199
  <div id="loader" class="loading-screen">