Hide Tor URLS on Tor page by default

This commit is contained in:
Taylor Helsper 2020-03-08 23:51:36 -05:00
parent 485eab969d
commit d3ab58fc1c

View File

@ -3,6 +3,20 @@
<title>{{ title }}</title> <title>{{ title }}</title>
{% include 'includes/head.html' %} {% include 'includes/head.html' %}
<script>
$(document).ready(function() {
$("#show_onion_urls").on("click", function() {
//$("#show_onion_urls").hide(0);
$(".onion_url_placeholder").hide(0)
$(".onion_url").show();
});
});
</script>
<style>
.onion_url {
display: none;
}
</style>
</head> </head>
<body> <body>
@ -29,6 +43,11 @@
<br/> <br/>
<div class="main_header">Tor Onion Addresses</div> <div class="main_header">Tor Onion Addresses</div>
<div class="main_header_sub_text">
Sharing these Onion URLs will allow others to access your device. Keep them private unless there is someone you specifically want to share access with.
<br/><br/>
<button id="show_onion_urls" class="ui-button ui-widget ui-corner-all">Show Onion URLs</button>
</div>
<table class="bitcoind_table"> <table class="bitcoind_table">
<thead class="bitcoind_table_header"> <thead class="bitcoind_table_header">
<td>Service</td> <td>Service</td>
@ -40,7 +59,10 @@
{% for service in services %} {% for service in services %}
<tr> <tr>
<td><b>{{ service.service }}</b></td> <td><b>{{ service.service }}</b></td>
<td>{{ service.url }}</td> <td>
<span class="onion_url">{{ service.url }}</span>
<span class="onion_url_placeholder">.....................................</span>
</td>
<td>{{ service.port }}</td> <td>{{ service.port }}</td>
<td> <td>
{% if service.guide|length %} {% if service.guide|length %}