Skip to content

Commit

Permalink
Updating to use touch start. The experience is a little better.
Browse files Browse the repository at this point in the history
  • Loading branch information
runxc1 committed Mar 31, 2024
1 parent abe3853 commit be4a710
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
5 changes: 4 additions & 1 deletion Pages/About.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

<PageTitle>About</PageTitle>

<h1>When it's done I'll add something here</h1>
<h1>Built for fun</h1>
<p>This site/app was created out of my own desire to time multiple kids I coach both when they are racing as well as at practice when doing intervals.
If you run into an issue, want to contribute an idea or code you can find the source on <a href="https://github.com/runxc1/TrackBlazor">Github</a>
</p>
7 changes: 5 additions & 2 deletions Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{
<FluentGridItem xs="6">
<FluentCard MinimalStyle="true" Class="take-split">
<div @onclick="() => TryTakeSplit(timer)">
<div @ontouchstart="() => TryTakeSplit(timer)">
<h6 style="text-align: center; margin-bottom:2px">@timer.Name</h6>
<div class="flexCont" style="justify-content:space-between;">
<div style="min-width:100px; font-size:26px;">@timer.Stopwatch.Elapsed.ToString(timeFormat)</div>
Expand Down Expand Up @@ -133,8 +133,11 @@
</FluentStack>

</FluentCard>
</div>

</div>
<div style="float: right; padding: 10px; 5px">
Version: 1.0.1
</div>

<style>
div.minimalPadding div.fluent-card-minimal-style {
Expand Down
2 changes: 1 addition & 1 deletion Pages/Tester.razor
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
{
timers.Add(new PausableTimer("Runner-" + ++currentCount));
}
PeriodicTimer periodicTimer = new(TimeSpan.FromMilliseconds(20));
PeriodicTimer periodicTimer = new(TimeSpan.FromMilliseconds(50));

protected override void OnInitialized()
{
Expand Down
5 changes: 2 additions & 3 deletions TrackBlazor.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
Expand All @@ -13,8 +13,7 @@
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.*-*" PrivateAssets="all" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.*-* " />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.5.0" />
<ServiceWorker Include="wwwroot\service-worker.js"
PublishedContent="wwwroot\service-worker.published.js" />
<ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" />
</ItemGroup>

</Project>

0 comments on commit be4a710

Please sign in to comment.