diff --git a/signet.html b/signet.html index 4dfb90a..72b408c 100644 --- a/signet.html +++ b/signet.html @@ -1,149 +1,202 @@ - - - - - + + + + + - + Inscribe the planet + - - - - - - - - - - + + + + + + + + + + + +

Welcome to the online inscriber

+

This tool may not work in safari browser. If you are using that, consider switching.

+
+ +
+ + +
+ +

Please choose what you want to inscribe:

+ + + +
+ +
+ + + +
+ +
+ +
+ +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + + 61 + +

Select a feerate (sats/vB)

+
+
+
...
+
Min
+
+
+
...
+
Mid
+
+
+
...
+
Max
+
+
+
+ + +
+ - - +
+
+ + +
+
-
+
+ + +
-
-
-
- -
- -
- -

Inscribe the Planet

-
- -
- -
-
-
- -
-
-
-
-
- -

This tool may not work in safari browser. If you are using that, consider switching.

-
- -
- - -
- - - -
- -
- - - -
- -
- -
- -
- -
- - -
- -
- - -
- -
- - -
- -
- -
- -
- - -
- -
- - -
- -
- - -
- -
- -

61

-

Select a feerate (sats/vB)

-
-
-
...
-
Min
-
-
-
...
-
Mid
-
-
-
...
-
Max
-
-
-
- - -
- -
-
- - -
-
-
- - -
-
- - -
-
-
-
-
-
- - - - -
- - - - - - + if (inscribed_already.length != 0) { + alert("The following files are inscribed already: " + inscribed_already.join(', ')); + } + + if (errors.length != 0) { + alert("Could not check the following files due to an error: " + inscribed_already.join(', ')); + } + + if (inscribed_already.length == 0) { + alert("Your files seem not to be inscribed yet."); + } + + $('#bytes_checker').innerHTML = 'Check if file(s) are inscribed already'; + } + + async function init(num) { + if (!num) { + let isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); + if (isSafari) $('.safari_warning').style.display = "block"; + let minfee = await getMinFeeRate(); + $('#sats_per_byte').innerText = minfee; + $('#sats_range').value = minfee; + } + num = num + 1; + let allrates = await getAllFeeRates(); + $('.minfee .num').innerText = allrates["minimumFee"]; + $('.midfee .num').innerText = allrates["hourFee"]; + $('.maxfee .num').innerText = allrates["fastestFee"]; + let isgreen; + $$('.fee .num').forEach(function (item) { + if (item.style.backgroundColor == "green" || getComputedStyle(item).backgroundColor == "rgb(0, 128, 0)") isgreen = item; + }); + if (isgreen) { + $('#sats_per_byte').innerText = Number(isgreen.innerText); + $('#sats_range').value = Number(isgreen.innerText); + sessionStorage["feerate"] = isgreen.innerText; + } + sessionStorage["bitcoin_price"] = await getBitcoinPrice(); + await waitSomeSeconds(10); + init(num); + } + + init(0); + +
+ + + + + +