Skip to content

Commit

Permalink
fixed line on top of year for time.html
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkin committed Jan 6, 2024
1 parent 198d82d commit e56fda3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions build/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
module.exports = {
content: [
'../src/**/*.html',
'../src/**/*.py',
],
theme: {
extend: {},
Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async def stop_server(request, response):

async def run_as_access_point(request, response):
print("Running as access point")
success = server.connect_access_point('gurgleapps', 'gurgleapps')
success = server.start_access_point('gurgleapps', 'gurgleapps')
if success:
await response.send_html("Running as access point")
else:
Expand Down
2 changes: 1 addition & 1 deletion src/www/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/www/time.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
<div class="bg-gradient-to-br from-gray-700 to-gray-900"></div>
</div>
<div class="relative px-1" id="flipClockYear">0000</div>
<div class="absolute inset-0 h-full flex items-center justify-center">
<div class="h-px bg-gray-800"></div>
<div class="absolute inset-0 w-full h-full flex items-center justify-center">
<div class="h-px w-full bg-gray-800"></div>
</div>
</div>
</div>
Expand Down Expand Up @@ -109,11 +109,11 @@
statusElement.textContent = 'Error: ' + json.message
} else {
statusElement.textContent = 'Time OK'
timeElement.textContent = `Server Time: ${formatTime(json.time)}`
flipClockHours.textContent = json.time[3].toString().padStart(2, '0')
flipClockMins.textContent = json.time[4].toString().padStart(2, '0')
flipClockYear.textContent = json.time[0].toString().padStart(4, '0')
}
timeElement.textContent = `Server Time: ${formatTime(json.time)}`
flipClockHours.textContent = json.time[3].toString().padStart(2, '0')
flipClockMins.textContent = json.time[4].toString().padStart(2, '0')
flipClockYear.textContent = json.time[0].toString().padStart(4, '0')
} else {
statusElement.textContent = 'Error: ' + response.status
}
Expand Down

0 comments on commit e56fda3

Please sign in to comment.