Bug fixes

This commit is contained in:
sairaj mote 2023-04-02 04:10:08 +05:30
parent d0bd4c97fe
commit ba86e14c14
4 changed files with 56 additions and 56 deletions

View File

@ -343,7 +343,7 @@ const siteMap = [
outletLinks: [ outletLinks: [
{ {
label: "Explore", label: "Explore",
url: "https://ranchimall.github.io/RIBC/", url: "https://ranchimall.github.io/ribc/",
outbound: true, outbound: true,
} }
], ],
@ -373,7 +373,7 @@ const siteMap = [
]; ];
function formatAmount(amount, currency = 'USD') { function formatAmount(amount, currency = 'USD') {
return amount.toLocaleString(currency === 'USD'? 'en-US': 'en-IN', { style: 'currency', currency }); return amount.toLocaleString(currency === 'USD' ? 'en-US' : 'en-IN', { style: 'currency', currency });
} }
@ -396,7 +396,7 @@ const render = {
<h3 class="value current-value" style="color: var(--green)">${formatAmount(currentValue)}</h3> <h3 class="value current-value" style="color: var(--green)">${formatAmount(currentValue)}</h3>
<div class="flex align-center"> <div class="flex align-center">
<svg class="icon up-arrow" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M13 7.828V20h-2V7.828l-5.364 5.364-1.414-1.414L12 4l7.778 7.778-1.414 1.414L13 7.828z"/></svg> <svg class="icon up-arrow" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M13 7.828V20h-2V7.828l-5.364 5.364-1.414-1.414L12 4l7.778 7.778-1.414 1.414L13 7.828z"/></svg>
<span class="percent-gain">${ `${percentGain}%`}</span> <span class="percent-gain">${`${percentGain}%`}</span>
<span class="time-elapsed">${`In last ${timeElapsed} years`}</span> <span class="time-elapsed">${`In last ${timeElapsed} years`}</span>
</div> </div>
</div> </div>
@ -436,7 +436,7 @@ const render = {
const { thumbnail } = options; const { thumbnail } = options;
const folder = thumbnail ? "investors-thumbnail" : "investors"; const folder = thumbnail ? "investors-thumbnail" : "investors";
return html` return html`
<div class=${`person-card investor-card grid gap-1-5 ${thumbnail? 'person-card--small': 'person-card--big'}`} > <div class=${`person-card investor-card grid gap-1-5 ${thumbnail ? 'person-card--small' : 'person-card--big'}`} >
<img class="person__image" src=${`assets/${folder}/${investorName}.${extension}`} alt=${`${investorName} profile picture`} loading="lazy"> <img class="person__image" src=${`assets/${folder}/${investorName}.${extension}`} alt=${`${investorName} profile picture`} loading="lazy">
<div class="grid"> <div class="grid">
<h3 class="person__name value capitalize">${investorName}</h3> <h3 class="person__name value capitalize">${investorName}</h3>
@ -448,19 +448,19 @@ const render = {
</div> </div>
`; `;
}, },
// internCard(obj) { // internCard(obj) {
// const { extension, internName, level, floId, project } = obj; // const { extension, internName, level, floId, project } = obj;
// const card = getRef("intern_card_template").content.cloneNode(true).firstElementChild; // const card = getRef("intern_card_template").content.cloneNode(true).firstElementChild;
// const investorImage = card.querySelector(".person__image"); // const investorImage = card.querySelector(".person__image");
// investorImage.src = `assets/interns/${internName}.${extension}`; // investorImage.src = `assets/interns/${internName}.${extension}`;
// investorImage.setAttribute("alt", `${internName} profile picture`); // investorImage.setAttribute("alt", `${internName} profile picture`);
// card.querySelector(".intern__level").classList.add(level.toLowerCase()) // card.querySelector(".intern__level").classList.add(level.toLowerCase())
// card.querySelector(".intern__level").textContent = level; // card.querySelector(".intern__level").textContent = level;
// card.querySelector(".person__name").textContent = internName; // card.querySelector(".person__name").textContent = internName;
// card.querySelector(".intern-flo-id").textContent = floId; // card.querySelector(".intern-flo-id").textContent = floId;
// card.querySelector(".intern__project").textContent = project; // card.querySelector(".intern__project").textContent = project;
// return card; // return card;
// }, // },
floorLabel(floorNumber, offsetTop) { floorLabel(floorNumber, offsetTop) {
return html` return html`
<div class="floor-label interact" style=${`top: ${offsetTop}px`} data-target=${`floor_${floorNumber}`}> <div class="floor-label interact" style=${`top: ${offsetTop}px`} data-target=${`floor_${floorNumber}`}>
@ -715,7 +715,7 @@ function hideOutletSwitcher() {
let currentPage let currentPage
function renderSiteMap() { function renderSiteMap() {
getRef('floor_list').append(html.node`${siteMap.map((floor, index) =>render.floorListItem(floor, index))}`) getRef('floor_list').append(html.node`${siteMap.map((floor, index) => render.floorListItem(floor, index))}`)
const pathArray = location.pathname.split('/') const pathArray = location.pathname.split('/')
siteMap.forEach((floor) => { siteMap.forEach((floor) => {
const matchedOutlet = floor.outlets.find(outlet => pathArray[pathArray.length - 1].includes(outlet.outletLinks[0].url)) const matchedOutlet = floor.outlets.find(outlet => pathArray[pathArray.length - 1].includes(outlet.outletLinks[0].url))

View File

@ -349,7 +349,7 @@
</div> </div>
<div class="link-container"> <div class="link-container">
<a class="round" href="https://www.ranchimall.net/BitBonds/" target="_blank">2017 release</a> <a class="round" href="https://www.ranchimall.net/BitBonds/" target="_blank">2017 release</a>
<a class="round" href="https://ranchimall.github.io/blockchain-bonds/" target="_blank">Blockchain <a class="round" href="https://ranchimall.github.io/blockchainbonds/" target="_blank">Blockchain
version</a> version</a>
</div> </div>
</div> </div>

View File

@ -250,7 +250,7 @@
</footer> </footer>
</section> </section>
<section> <section>
<a class="ext-link-tile" href="https://ranchimall.github.io/bobs-fund/" target="_blank"> <a class="ext-link-tile" href="https://ranchimall.github.io/bobsfund/" target="_blank">
<div class="grid"> <div class="grid">
<h4 class="tile__title">See Bob's Fund in action</h4> <h4 class="tile__title">See Bob's Fund in action</h4>
<p class="tile__brief">Visit the website to see investors and asset performance</p> <p class="tile__brief">Visit the website to see investors and asset performance</p>
@ -490,7 +490,7 @@
invested: 1000000, invested: 1000000,
BTC_base: 37488.00, BTC_base: 37488.00,
USD_base: 72.56, USD_base: 72.56,
href: `https://ranchimall.github.io/bobs-fund/#cf16bb877f49cb70348bbddeb439f4b46fb5d51b0c09763667762bbea36e8305` href: `https://ranchimall.github.io/bobsfund/#cf16bb877f49cb70348bbddeb439f4b46fb5d51b0c09763667762bbea36e8305`
}, },
] ]
@ -563,7 +563,7 @@
timeElapsed = (new Date().getFullYear() - 2017) timeElapsed = (new Date().getFullYear() - 2017)
return render.bobFundRow({ ...investor, currentValue, gain, timeElapsed }) return render.bobFundRow({ ...investor, currentValue, gain, timeElapsed })
}) })
timelineContents = html`<div class="grid series-container series-container--bobs-fund"> ${fundRows} </div>`; timelineContents = html`<div class="grid series-container series-container--bobsfund"> ${fundRows} </div>`;
} else { } else {
let obj = { let obj = {
BTC_base, BTC_base,

View File

@ -195,8 +195,8 @@
<p> <p>
The price discovery during active phase has been USD 1500 per The price discovery during active phase has been USD 1500 per
token giving RMTs in circulation a valuation of 150 million USD. Unless this price is token giving RMTs in circulation a valuation of 150 million USD. Unless this price is
realised in open realized in open
makets on sustainable basis, new tokens will not be put in circulation. markets on sustainable basis, new tokens will not be put in circulation.
</p> </p>
</li> </li>
</ol> </ol>
@ -206,7 +206,7 @@
Currently we are not selling any RanchiMall Tokens (RMT). <br> You can buy tokens at Currently we are not selling any RanchiMall Tokens (RMT). <br> You can buy tokens at
our last valuation in <a href="https://www.ranchimall.net/exchange/" target="_blank">our our last valuation in <a href="https://www.ranchimall.net/exchange/" target="_blank">our
exchange</a> to become a exchange</a> to become a
token holder and be part of our communitys learning process. Our products are aimed at long token holder and be part of our community,s learning process. Our products are aimed at long
term investors. term investors.
<br> Once you become a token holder, please be patient and be prepared to stay the <br> Once you become a token holder, please be patient and be prepared to stay the
whole course of journey. You will not regret it. whole course of journey. You will not regret it.