Skip to content

Commit

Permalink
Removes debugging aid. Updates Discord links.
Browse files Browse the repository at this point in the history
  • Loading branch information
JudahGabriel committed Jan 25, 2024
1 parent 6d92084 commit 44de718
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 20 deletions.
8 changes: 8 additions & 0 deletions Chavah.NetCore/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ public IActionResult Give()
return Redirect("https://blog.messianicradio.com/2020/06/announcing-messiahs-musicians-fund-we.html");
}

[HttpGet]
[Route("giveonce")]
[Route("give-once")]
public IActionResult GiveOnce()
{
return Redirect("https://messianicradio.com/#/donate");
}

[HttpGet]
public IActionResult ActivityFeed()
{
Expand Down
7 changes: 0 additions & 7 deletions Chavah.NetCore/wwwroot/js/Controllers/HeaderController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,6 @@
dismissDonationBanner() {
window.localStorage.setItem(HeaderController.donationBannerLocalStorageKey, "true");
}

skipToNearEnd(): void {
const duration = this.audioPlayer.duration.getValue();
if (!isNaN(duration) && duration > 0) {
this.audioPlayer.skipToNearEndZanz();
}
}
}

App.controller("HeaderController", HeaderController);
Expand Down
6 changes: 0 additions & 6 deletions Chavah.NetCore/wwwroot/js/Services/AudioPlayerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,6 @@ namespace BitShuva.Chavah {
}
}

skipToNearEndZanz() {
if (this.audio && this.audio.duration) {
this.audio.currentTime = this.audio.duration - 10;
}
}

skipToEnd() {
if (this.audio && this.audio.duration) {
this.audio.currentTime = this.audio.duration - 1;
Expand Down
2 changes: 1 addition & 1 deletion Chavah.NetCore/wwwroot/views/partials/Footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

</div>

<a class="discord-chat" href="https://discord.com/channels/1106734875031109733/1106734876218101762" target="_blank" uib-tooltip="Chat with other Chavah listeners" tooltip-placement="left">
<a class="discord-chat" href="https://discord.gg/gKrqH4MApy" target="_blank" uib-tooltip="Chat with other Chavah listeners" tooltip-placement="left">
<img src="/images/discord.svg" width="35" height="35" loading="lazy" />
</a>
</section>
Expand Down
6 changes: 0 additions & 6 deletions Chavah.NetCore/wwwroot/views/partials/Header.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,6 @@ <h3 ng-hide="vm.currentUserName">
Administration
</a>
</li>
<li ng-hide="!vm.isAdmin">
<a href="javascript:void(0)" ng-click="vm.skipToNearEnd()">
<i class="fa fa-user-plus fa-fw"></i>
Judah repro
</a>
</li>
<li ng-show="vm.currentUserName">
<a href="javascript:void(0)" ng-click="vm.signOut()">
<i class="fa fa-sign-out fa-fw"></i> Sign out
Expand Down

0 comments on commit 44de718

Please sign in to comment.