[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [donate-static/staging] Add on window loading wrapper
commit 2f6ece077e8071bb2c222a59e7ae8f271d579643
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date: Fri Dec 11 11:42:18 2020 +0100
Add on window loading wrapper
---
content/cryptocurrency/contents.lr | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/content/cryptocurrency/contents.lr b/content/cryptocurrency/contents.lr
index 53f4c664..71116b4b 100644
--- a/content/cryptocurrency/contents.lr
+++ b/content/cryptocurrency/contents.lr
@@ -23,12 +23,14 @@ body:
</p>
</div>
<script>
- var origin = window.location.origin;
- if(origin.endsWith('.onion')) {
- $('#clear-net').hide();
- } else {
- $('#onion-net').hide();
- }
+ document.addEventListener("DOMContentLoaded", function(){
+ var origin = window.location.origin;
+ if(origin.endsWith('.onion')) {
+ $('#clear-net').hide();
+ } else {
+ $('#onion-net').hide();
+ }
+ });
</script>
<div class="btc-form" id="clear-net">
<style type="text/css"> .btcpay-form { display: inline-flex; align-items: center; justify-content: center; } .btcpay-form--inline { flex-direction: row; } .btcpay-form--block { flex-direction: column; } .btcpay-form--inline .submit { margin-left: 15px; } .btcpay-form--block select { margin-bottom: 10px; } .btcpay-form .btcpay-custom-container{ text-align: center; }.btcpay-custom { display: flex; align-items: center; justify-content: center; } .btcpay-form .plus-minus { cursor:pointer; font-size:25px; line-height: 25px; background: #DFE0E1; height: 30px; width: 45px; border:none; border-radius: 60px; margin: auto 5px; display: inline-flex; justify-content: center; } .btcpay-form select { -moz-appearance: none; -webkit-appearance: none; appearance: none; color: currentColor; background: transparent; border:1px solid transparent; display: block; padding: 1px; margin-left: auto; margin-right: auto; font-size: 11px; cursor: pointer; } .btcpay-form select:hover { border-color: #ccc; }
#btcpay-input-price { -moz-appearance: none; -webkit-appearance: none; border: none; box-shadow: none; text-align: center; font-size: 25px; margin: auto; border-radius: 5px; line-height: 35px; background: #fff; } #btcpay-input-price::-webkit-outer-spin-button, #btcpay-input-price::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } </style>
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits