duongve commited on
Commit
e32bc5b
·
verified ·
1 Parent(s): a137f8c

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +50 -44
templates/index.html CHANGED
@@ -1,44 +1,50 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Weather Dashboard</title>
7
- <link rel="stylesheet" href="/static/css/style.css">
8
- </head>
9
- <body>
10
- <div class="container">
11
- <header>
12
- <h1>Weather Dashboard</h1>
13
- </header>
14
- <main>
15
- <div class="content">
16
- <section class="search-section">
17
- <input type="text" id="city-input" placeholder="E.g., New York, London, Tokyo">
18
- <button id="search-button">Search</button>
19
- <p>or</p>
20
- <button id="location-button">Use Current Location</button>
21
- </section>
22
- <section class="weather-section">
23
- <div class="current-weather" id="current-weather">
24
- <!-- Current weather data will be displayed here -->
25
- </div>
26
- <h2>4-Day Forecast</h2>
27
- <div class="forecast" id="forecast">
28
- <!-- <h2>4-Day Forecast</h2> -->
29
- <!-- Forecast data will be displayed here -->
30
- </div>
31
- </section>
32
- </div>
33
- <section class="subscribe-section">
34
- <h2>Subscribe to Daily Weather Updates</h2>
35
- <form id="subscribe-form">
36
- <input type="email" id="email-input" placeholder="Enter your email">
37
- <button type="submit">Subscribe</button>
38
- </form>
39
- </section>
40
- </main>
41
- </div>
42
- <script src="/static/js/script.js"></script>
43
- </body>
44
- </html>
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Weather Dashboard</title>
7
+ <link rel="stylesheet" href="/static/css/style.css">
8
+ </head>
9
+ <body>
10
+ <div class="container">
11
+ <header>
12
+ <h1>Weather Dashboard</h1>
13
+ </header>
14
+ <main>
15
+ <div class="content">
16
+ <section class="search-section">
17
+ <input type="text" id="city-input" placeholder="E.g., New York, London, Tokyo">
18
+ <button id="search-button">Search</button>
19
+ <p>or</p>
20
+ <button id="location-button">Use Current Location</button>
21
+ <div id="city-history">
22
+ <strong>City History:</strong>
23
+ <!-- City history will be displayed here -->
24
+ </div>
25
+ <button id="clear-history-button" style="display: none;" >Clear History</button>
26
+ </section>
27
+ <section class="weather-section">
28
+ <div class="current-weather" id="current-weather">
29
+ <!-- Current weather data will be displayed here -->
30
+ </div>
31
+ <h2>4-Day Forecast</h2>
32
+ <div class="forecast" id="forecast">
33
+ <!-- <h2>4-Day Forecast</h2> -->
34
+ <!-- Forecast data will be displayed here -->
35
+ </div>
36
+ <button id="load-more-btn" onclick="loadMoreForecast()" style="display: none;">Load More</button>
37
+ </section>
38
+ </div>
39
+ <section class="subscribe-section">
40
+ <h2>Subscribe to Daily Weather Updates</h2>
41
+ <form id="subscribe-form">
42
+ <input type="email" id="email-input" placeholder="Enter your email">
43
+ <button type="submit">Subscribe</button>
44
+ </form>
45
+ </section>
46
+ </main>
47
+ </div>
48
+ <script src="/static/js/script.js"></script>
49
+ </body>
50
+ </html>