Files
purple-explorer/views/includes/net_addnodes.pug
T

95 lines
2.8 KiB
Plaintext
Raw Normal View History

script.
$(document).ready(function() {
$('#addnodes-table').dataTable({
autoWidth: true,
searching: false,
ordering: false,
responsive: true,
lengthChange: true,
processing: true,
2020-12-25 15:01:03 -07:00
scrollX: true,
2020-12-01 19:19:50 -07:00
language: {
paginate: {
previous: '<',
next: '>'
}
},
ajax: {
url: '/ext/connections',
dataSrc: function (json) {
2020-11-21 20:27:06 -07:00
var rows = [];
for (var i=0; i<json.data.length; i++) {
rows.push({'nodes':'addnode='+json.data[i]['address']+':'+json.data[i]['port']});
}
return rows;
}
},
fnDrawCallback: function(settings) {
2020-12-25 15:01:03 -07:00
fixDataTableColumns();
fixFooterHeightAndPosition();
},
columns: [
{data: 'nodes', width: '100%'}
],
columnDefs: [
{targets: '_all', className: 'text-left'}
]
});
$('#addnodes2-table').dataTable({
autoWidth: true,
searching: false,
ordering: false,
responsive: true,
lengthChange: true,
processing: true,
2020-12-25 15:01:03 -07:00
scrollX: true,
2020-12-01 19:19:50 -07:00
language: {
paginate: {
previous: '<',
next: '>'
}
},
ajax: {
url: '/ext/connections',
dataSrc: function (json) {
var rows = [];
for (var i=0; i<json.data.length; i++) {
rows.push({'nodes':'addnode '+json.data[i]['address']+':'+json.data[i]['port']+' onetry'});
}
return rows;
}
},
fnDrawCallback: function(settings) {
2020-12-25 15:01:03 -07:00
fixDataTableColumns();
fixFooterHeightAndPosition();
},
columns: [
{data: 'nodes', width: '100%'}
],
columnDefs: [
{targets: '_all', className: 'text-left'}
]
});
});
2020-12-20 18:13:24 -07:00
- var theadClasses = [];
if settings.display.table_header_bgcolor != null && settings.display.table_header_bgcolor != ''
- theadClasses.push('thead-' + settings.display.table_header_bgcolor);
2020-12-12 20:21:49 -07:00
.card.card-default.border-0
.card-body.border-top-0
2020-11-20 20:27:02 -07:00
:markdown-it
If you have trouble syncing your wallet, add these lines to your coin daemon .conf file and restart the wallet.
*Typically you can access the config file through QT-wallet menu, Tools > Open Wallet Configuration File*
2020-12-12 20:21:49 -07:00
table#addnodes-table.table.table-bordered.table-striped.table-paging.mobile-border-right
2020-12-20 18:13:24 -07:00
thead(class=theadClasses)
tr
2020-12-12 20:21:49 -07:00
th AddNode Config Lines
tbody.text-center
2020-12-12 20:21:49 -07:00
.card-body.border-top-0
2020-11-20 20:27:02 -07:00
:markdown-it
Alternatively you can try one of these lines in the coin wallet debug window, or add them with *coindaemon*-cli
2020-12-12 20:21:49 -07:00
table#addnodes2-table.table.table-bordered.table-striped.table-paging.mobile-border-right
2020-12-20 18:13:24 -07:00
thead(class=theadClasses)
tr
2020-12-12 20:21:49 -07:00
th OneTry Node Lines
2020-11-20 20:27:02 -07:00
tbody.text-center