Skip to content

Commit

Permalink
fix: buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
akurilov committed Sep 1, 2024
1 parent 32ce7cd commit d8d954e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion web/pub-src-details.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<button id="pub-src-lim-incr-btn"
type="button"
class="flex justify-center items-center text-blue-500 border border-blue-500 h-6 hover:bg-blue-200 dark:hover:bg-blue-900 static w-[100px]">
<span style="font-size: large"><b>+</b></span>&nbsp;Increase
+ Increase
</button>

<div id="request-increase-success-dialog"
Expand Down
11 changes: 3 additions & 8 deletions web/pub.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,7 @@
<div class="w-24 border-b-2 border-cyan-500 text-cyan-500">Publishing</div>
<div class="grow"></div>
<div class="w-16 hover:text-green-500 mr-2">
<div
onclick="window.location.assign('login.html')"
id="login"
style="display: none">
Sign In
</div>

</div>
</div>
</nav>
Expand All @@ -94,7 +89,7 @@
<div>
<button type="button" class="flex justify-center items-center align-middle text-blue-500 border border-blue-500 h-6 hover:bg-blue-200 dark:hover:bg-blue-900 static px-2 w-[100px] items-center"
onclick="localStorage.getItem(keyUserId) ? window.location.assign('pub-msg.html') : (confirm('This function is available for signed in users only. Proceed to sign in?') ? window.location.assign('login.html') : console.log('user refused to sign in to continue'))">
<span style="font-size: large"></span>&nbsp;Publish
Publish
</button>
</div>
</div>
Expand Down Expand Up @@ -151,7 +146,7 @@
<span class="pt-1 w-[200px]">Sources:</span>
<button type="button" class="flex justify-center items-center text-blue-500 border border-blue-500 h-6 hover:bg-blue-200 dark:hover:bg-blue-900 static ml-1 px-2 w-[100px]"
onclick="localStorage.getItem(keyUserId) ? window.location.assign('pub-src-new.html') : (confirm('This function is available for signed in users only. Proceed to sign in?') ? window.location.assign('login.html') : console.log('user refused to sign in to continue'))">
<span style="font-size: large"><b>+</b></span>&nbsp;Source
+ Source
</button>
</div>
<div class="flex flex-col">
Expand Down
7 changes: 1 addition & 6 deletions web/sub.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,7 @@
<div class="w-24 hover:text-cyan-500" onclick="window.location.assign('pub.html')">Publishing</div>
<div class="grow"></div>
<div class="w-16 hover:text-green-500 mr-2">
<div
onclick="window.location.assign('login.html')"
id="login"
style="display: none">
Sign In
</div>

</div>
</div>
</nav>
Expand Down

0 comments on commit d8d954e

Please sign in to comment.