From 66c3c237274b279a61ad0ea47fc254d731b9fbed Mon Sep 17 00:00:00 2001 From: ftm1337 Date: Tue, 2 Jul 2024 01:41:18 -0400 Subject: [PATCH] fix2 --- docs/index.css | 33 +++++++++++++----------- docs/index.html | 7 +++--- docs/index.js | 67 +++++++++++++++++++++++++++++++------------------ 3 files changed, 65 insertions(+), 42 deletions(-) diff --git a/docs/index.css b/docs/index.css index f02cdc7..9ded2d9 100644 --- a/docs/index.css +++ b/docs/index.css @@ -1,9 +1,8 @@ -@font-face{font-family:bold;src: url(https://ftm.guru/font/bold.ttf);} -@font-face{ font-family:italic;src: url(https://ftm.guru/font/italic.ttf);} -@font-face{ font-family:light;src: url(https://ftm.guru/font/light.ttf);} -@font-face{ font-family:light_italic;src: url(https://ftm.guru/font/light_italic.ttf);} -@font-face{ font-family:regular;src: url(https://ftm.guru/font/regular.ttf);} -@font-face{ font-family:regular_italic;src: url(https://ftm.guru/font/regular_italic.ttf);} +@font-face{font-family:bold;src: url(https://eliteness.network/fonts/neue-haas-grotesk/NeueHaasDisplayBold.ttf);} +@font-face{ font-family:italic;src: url(https://eliteness.network/fonts/neue-haas-grotesk/NeueHaasDisplayRomanItalic.ttf);} +@font-face{ font-family:light;src: url(https://eliteness.network/fonts/neue-haas-grotesk/NeueHaasDisplayLight.ttf);} +@font-face{ font-family:light_italic;src: url(https://eliteness.network/fonts/neue-haas-grotesk/NeueHaasDisplayLightItalic.ttf);} +@font-face{ font-family:regular;src: url(https://eliteness.network/fonts/neue-haas-grotesk/NeueHaasDisplayRoman.ttf);} *{ font-family:regular; scroll-behavior: smooth !important; @@ -53,9 +52,10 @@ } .tab button.active { - background-color: #55667799; - color: #3ff; + background-color: #5678; + color: #fff; border-bottom: 2px solid; + font-family: bold; } .tabcontent { @@ -158,7 +158,7 @@ footer{ .topnav a { color: white; text-decoration: none; - margin: 0 5px; + font-family: regular; } .topnav-left { @@ -244,13 +244,13 @@ footer{ } .topstat div:first-child { - font-weight: lighter; + font-family: bold; font-size: 1.5em; } .topstat div:last-child { - font-weight: lighter; - font-size: 0.7em; + font-family: regular; + font-size: 1em; } .c2a{ @@ -391,9 +391,14 @@ button:disabled { } .hint, .hint * { - font-family:light_italic; + font-family:italic; text-decoration:none; /*1px dashed underline;*/ - font-size:0.95em; + font-size:0.9em; + color: #aaa; +} + +#spotlight table tbody td:nth-of-type(2n) { + text-align: left; } @media (max-width: 700px) { diff --git a/docs/index.html b/docs/index.html index b89c09e..bac4736 100644 --- a/docs/index.html +++ b/docs/index.html @@ -55,7 +55,7 @@ -->
-
+
... eLOCKS
Total Financial NFTs Minted
@@ -65,7 +65,7 @@
4x Partners
-
Fantom Sonic Ecosystem Integrations
+
Sonic Ecosystem Integrations
@@ -110,7 +110,8 @@

Discover and Manage eLOCK Pos

Search for a NFT by ID

-
+
+


diff --git a/docs/index.js b/docs/index.js index f0c49ee..66beb6e 100644 --- a/docs/index.js +++ b/docs/index.js @@ -2,12 +2,15 @@ function $(_) {return document.getElementById(_);} let provider= {}; let signer= {}; -window.addEventListener('load',async function() -{ - console.log("waitin for 3 secs.."); - $("cw_m").innerHTML = "Connecting.. Please wait." - setTimeout(async () => { await basetrip(); }, 3000); -}, false); +window.addEventListener( + 'load', + async function() { + console.log("waitin for 3 secs.."); + $("cw_m").innerHTML = "Connecting.. Please wait." + setTimeout(async () => { await basetrip(); }, 3000); + }, + false +); function openTab(evt, tabName) { @@ -22,6 +25,7 @@ function openTab(evt, tabName) { } document.getElementById(tabName).style.display = "block"; evt.currentTarget.className += " active"; + //window.location = "#"+tabName; } document.addEventListener('DOMContentLoaded', function() { @@ -210,6 +214,8 @@ async function dexstats() { ]) TOTAL_SUPPLY = Number(_dsd[0]); $("topstat-total").innerHTML = TOTAL_SUPPLY + " 🔐 eLOCKS"; + $("search-inp").max = TOTAL_SUPPLY; + $("search-inp-hint").innerHTML = `IDs Range from 1 to ${TOTAL_SUPPLY}`; return; @@ -233,7 +239,7 @@ async function gubs() { else { for(i=0;i<_ubs[0].length;i++) { $("coll-list").innerHTML += ` -
+
eLOCKS NFT 🔐
# ${_ubs[0][i]}
Tap to Explore! @@ -312,12 +318,12 @@ async function createLock_check() { :"" }

- If the Pool selected has no Gauge Farms yet, then you will Earn all the Trade Fees. If a gauge is established of this pool on a later date, your deposited LP will be automatically staked into the Gauge Farms for earning Higher Rewards for you. + If the Pool selected has no Gauge Farms yet, then you will Earn all the Trade Fees. If a gauge is established on this pool at a later date, your deposited LP will be automatically staked into the Gauge Farms for earning Higher Rewards for you.

- If you wish to take part in the Fantom Sonic Meme Competition, we recommend locking up for smaller periods and tranferring your eLOCKS NFT to the Sonic Community Council so that they can migrate your liquidity to the new Sonic chain when the time comes in the next few month. By transferring to SCC/MemeDAO, you will still continue to Earn all the rewards if you setup your eLOCKS NFT to allow you to claim your Rewards even after the transfer. This is done automatically at creation. -

Note: Only the Current holder of an eLOCK can set the rewards claiming address, which remains intact after transfers unless altered by a Current Holder. As such, when you create an eLOCKS NFT, you become the natural Yield Earner. Unless changed by a later future owner, you will continue to Earn all the Yields. + If you wish to take part in the Fantom Sonic Meme Competition, we recommend locking up for smaller periods such as 1 month and tranferring your eLOCKS NFT to the Sonic Community Council so that they can migrate your liquidity to a new eLOCKS NFT on the new Sonic chain when the time comes in the next few months. By transferring to SCC/MemeDAO, you will still continue to Earn all the rewards even after the transfer. By default, we setup your eLOCKS NFT to allow you (the owner) to claim all Rewards from your NFT. Anyone can initiate a claim on your rewards but only you will receive them, allowing someone else to pay the gas costs or help automate your reward claims. +

Note: Only the Current holder of an eLOCKS NFT can set the rewards claiming address, which remains intact after transfers unless altered by a Current Holder. As such, when you create an eLOCKS NFT, you become the natural Yield Earner. Unless changed by a later future owner, you will continue to Earn all the Yields. SCC has vowed not to change it for MemeContest2024 participants.

- You can always extend your lockup period after the creation of your eLOCKS NFT as well as add more LP tokens to it whenever you like! + You can always extend your lockup period after the creation of your eLOCKS NFT as well as add more LP tokens to it whenever you like! Furthermore, anyone else can also Gift more LP tokens to your NFT. These features can be used to setup an autocompounder to further maximize your Yields with eLOCKS!


@@ -391,7 +397,7 @@ async function createLock() {

eLOCKing ${BASE_NAME}

- ${BASE_NAME} to Deposit: ${fornum(_oamt,18)}
+ ${BASE_NAME} to Deposit: ${(_oamt/1e18).toFixed(18)}

Please Confirm this transaction in your wallet!

`); @@ -401,7 +407,7 @@ async function createLock() {

Order Submitted!


Minting new eLOCK ...

- ${BASE_NAME} Depositing: ${fornum(_oamt,18)}
+ ${BASE_NAME} Depositing: ${(_oamt/1e18).toFixed(18)}

View on Explorer

`); @@ -410,11 +416,15 @@ async function createLock() { notice(`

Order Completed!

- ${BASE_NAME} eLOCKed: ${fornum(_oamt,18)}
+ ${BASE_NAME} eLOCKed: ${(_oamt/1e18).toFixed(18)}


View on Explorer

`); gubs(); + + + document.getElementsByClassName('tablinks')[1].click(); + window.location="#Manage"; } async function searchNFT(_NFTID) { @@ -562,12 +572,18 @@ async function searchNFT(_NFTID) {

Related Addresses

- Owner : ${ LD.owner } -
Earner : ${ LD.earner } -
Pool : ${ LD.pool } -
${ LD.symbol0 } : ${ LD.token0 } -
${ LD.symbol1 } : ${ LD.token1 } -
Gauge : ${ LD.gauge } +
+ + + + + + + + + +
Owner ${ LD.owner }
Earner ${ LD.earner }
Pool ${ LD.pool }
${ LD.symbol0 } ${ LD.token0 }
${ LD.symbol1 } ${ LD.token1 }
Gauge ${ LD.gauge }
+


@@ -612,12 +628,13 @@ async function searchNFT(_NFTID) {

- - `; + + document.getElementsByClassName('tablinks')[2].click() window.location="#spotlight"; + if(window.ethereum && window.ethereum?.selectedAddress != LD.owner) { let _userlpbal = await (new ethers.Contract(LD.pool,LPABI,signer)).balanceOf(window.ethereum.selectedAddress); $("ld-increase-bal").innerHTML = ` @@ -870,7 +887,7 @@ async function LD_increase(_ld) {

eLOCKing ${BASE_NAME}

- ${BASE_NAME} to Deposit: ${fornum(_oamt,18)}
+ ${BASE_NAME} to Deposit: ${(_oamt/1e18).toFixed(18)}

Please Confirm this transaction in your wallet!

`); @@ -880,7 +897,7 @@ async function LD_increase(_ld) {

Order Submitted!


Adding more LP to eLOCK #${LD.id}

- ${BASE_NAME} Depositing: ${fornum(_oamt,18)}
+ ${BASE_NAME} Depositing: ${(_oamt/1e18).toFixed(18)}

View on Explorer

`); @@ -889,7 +906,7 @@ async function LD_increase(_ld) { notice(`

Added more LP to eLOCK #${LD.id}!

- ${BASE_NAME} eLOCKed: ${fornum(_oamt,18)}
+ ${BASE_NAME} eLOCKed: ${(_oamt/1e18).toFixed(18)}


View on Explorer

`);