Skip to content

Commit

Permalink
Update of Website
Browse files Browse the repository at this point in the history
  • Loading branch information
s27288-pj committed Jan 7, 2024
1 parent 04f28cf commit ef66d98
Show file tree
Hide file tree
Showing 21 changed files with 1,154 additions and 132 deletions.
39 changes: 27 additions & 12 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,38 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<!-- Popup content -->
<div class="popup-container" id="popup">
<p>Try the Konami Code!</p>
<div id="popup">
<p class="popup-text">Try mobile version of the website</p>
<p class="popup-text">Try the Konami Code!</p>
<button onclick="closePopup()">Close</button>
</div>

<button onclick="toggleMode()" class="toggle-button">Toggle Mode</button>
<h1>Weather App</h1>
<div class="search-container">
<input type="text" id="location-input" placeholder="Enter location...">
<button onclick="searchWeather()">Search</button>
<div id="header-container">
<div id="weather-app-icon">
<img src="images/015-meteorology.png" alt="Weather App Icon">
</div>
<div id="weather-app-title">
<h1>Weather App</h1>
</div>
<div class="mode-switch">
<input type="range" min="1" max="3" value="2" class="slider" id="modeSlider">
<p>Mode: <span id="modeText">Default</span></p>
</div>
</div>

<div id="search-container">
<div id="location-input-div">
<input type="text" id="location-input-field" placeholder="Enter location...">
</div>
<div id="search-button-div">
<button id="search-button" onclick="searchWeatherOnClick()">Search</button>
</div>
</div>
<ul id="suggestions-list"></ul>

<div id="suggestions-list" style="display: block;"></div>

<div class="weather-container">
<div id="current-weather-title" style="display: none;"><h2>Current Weather</h2> </div>
<div id="current-weather"></div>
<div id="weather-container">
<div id="current-weather" style="display: none;"></div>
<h2 id="forecast-title" style="display: none;">Forecast</h2>
<div class="forecast-table-container">
<table id="forecast-table" class="forecast-table" style="display: none;">
Expand Down
Loading

0 comments on commit ef66d98

Please sign in to comment.