From b9a5c34a38c94673523cce079b108d6580607241 Mon Sep 17 00:00:00 2001 From: Markus Bopp Date: Wed, 29 Mar 2023 02:20:08 +0200 Subject: [PATCH 1/4] + reverted back to original theme in signet.html --- signet.html | 2552 ++++++++++++++++++++++++++------------------------- 1 file changed, 1300 insertions(+), 1252 deletions(-) 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); + +
+ + + + + + From 22c0aaffccc2dbf022732112b1b8e0813a5f4d42 Mon Sep 17 00:00:00 2001 From: Markus Bopp Date: Wed, 29 Mar 2023 02:23:09 +0200 Subject: [PATCH 2/4] + reverted back to original theme in signet.html --- index.html | 6 +++--- signet.html | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 435e957..0c6b1f1 100644 --- a/index.html +++ b/index.html @@ -281,7 +281,7 @@ } } else if ( this.files[ 0 ].size >= 350000 ) { alert( "You exceeded this software's hard size limit of 350 kb files. Modify the code to override the limit." ) - this.value = null; + this.value = null; } else { var b64 = await encodeBase64( this ); } @@ -419,7 +419,7 @@ } function isValidJson( content ) { if ( !content ) return; - try { + try { var json = JSON.parse( content ); } catch ( e ) { return; @@ -615,7 +615,7 @@ $( '.type_of_address' ).style.border = "1px solid white"; } else { $( '.address' ).style.backgroundColor = "initial"; - $( '.address' ).style.border = "1px solid white"; + $( '.address' ).style.border = "1px solid white"; $( '.type_of_address' ).style.borderStyle = "none"; } } diff --git a/signet.html b/signet.html index 72b408c..135f0f6 100644 --- a/signet.html +++ b/signet.html @@ -1378,9 +1378,5 @@ onclick="location.reload();">Reset - - - - From 016adb424b92a52b5b9e011d921b011223d8e15d Mon Sep 17 00:00:00 2001 From: Markus Bopp Date: Wed, 29 Mar 2023 02:33:09 +0200 Subject: [PATCH 3/4] + added a signet bootstrap version temporarily --- signet-bootstrap.html | 1339 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1339 insertions(+) create mode 100644 signet-bootstrap.html diff --git a/signet-bootstrap.html b/signet-bootstrap.html new file mode 100644 index 0000000..9934552 --- /dev/null +++ b/signet-bootstrap.html @@ -0,0 +1,1339 @@ + + + + + + + + + + + + + + + + + + + + + + + Inscribe the planet + + + + + + + + + + + + + + +
+ +
+
+
+ +
+ +
+ +

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
+
+
+
+ + +
+ +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+
+
+
+ +
+ +
+ + +
+ + + + + + + From 5fb49051ba1ba8bfe5d9d5d5afcabb34cfe8ea35 Mon Sep 17 00:00:00 2001 From: Markus Bopp Date: Wed, 29 Mar 2023 02:37:31 +0200 Subject: [PATCH 4/4] + added mainnet version in index.html --- index.html | 1949 +++++++++++++++++++++++++++++++++++----------------- 1 file changed, 1305 insertions(+), 644 deletions(-) diff --git a/index.html b/index.html index 0c6b1f1..f009c11 100644 --- a/index.html +++ b/index.html @@ -1,165 +1,148 @@ - - - - - Inscribe the planet - - - - - - - - + + + + + + + + + + + + +
+ +
+
+
+ +
+ +
+ +

Inscribe the Planet

+
+ +
- async function getBitcoinPrice() { - var prices = []; - var cbprice = await getBitcoinPriceFromCoinbase(); - var kprice = await getBitcoinPriceFromKraken(); - var cdprice = await getBitcoinPriceFromCoindesk(); - var gprice = await getBitcoinPriceFromGemini(); - var bprice = await getBitcoinPriceFromBybit(); - prices.push( Number( cbprice ), Number( kprice ), Number( cdprice ), Number( gprice ), Number( bprice ) ); - prices.sort(); - return prices[ 2 ]; - } - - - -

Welcome to the online inscriber

-

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

-

First enter a taproot address from an ordinal wallet

-

-

Then upload a file you want that address to own or click here to register a domain name

-
-

-

-

61

-

Select a feerate (measured in sats per byte)

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

Sats per byte: 1

-
- -
-

-
- - + +
+ + +
+
+
+ + +
+
+ + +
+ + + +
+
+ +
+ +
+ + -
- - + await sleep(1000); + } + + 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 ); + +
+ + + + + +