mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-01 00:59:15 +01:00
16 lines
454 B
JavaScript
16 lines
454 B
JavaScript
$(function () {
|
|
$(".localizeDate").each(function (index) {
|
|
var serverDate = $(this).text();
|
|
var localDate = new Date(serverDate);
|
|
|
|
var dateString = localDate.toLocaleDateString() + " " + localDate.toLocaleTimeString();
|
|
$(this).text(dateString);
|
|
});
|
|
|
|
|
|
$(".input-group-clear").on("click", function(){
|
|
$(this).parents(".input-group").find("input").val(null);
|
|
});
|
|
|
|
$(".only-for-js").show();
|
|
});
|