Bug fixes
This commit is contained in:
parent
d0bd4c97fe
commit
ba86e14c14
@ -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,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -352,20 +352,20 @@ const siteMap = [
|
|||||||
name: `Certificates`,
|
name: `Certificates`,
|
||||||
brief: `This outlet has access to blockchain verification to all of RanchiMall issued Internship & Employment certificates`,
|
brief: `This outlet has access to blockchain verification to all of RanchiMall issued Internship & Employment certificates`,
|
||||||
outletLinks: [
|
outletLinks: [
|
||||||
{
|
{
|
||||||
label: "Certificate list",
|
label: "Certificate list",
|
||||||
url: "https://www.ranchimall.net/certify/",
|
url: "https://www.ranchimall.net/certify/",
|
||||||
outbound: true,
|
outbound: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Verify Certificate",
|
label: "Verify Certificate",
|
||||||
url: "verify.html",
|
url: "verify.html",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "See Intern Payments",
|
label: "See Intern Payments",
|
||||||
url: "https://ranchimall.github.io/ribcpayments/",
|
url: "https://ranchimall.github.io/ribcpayments/",
|
||||||
outbound: true,
|
outbound: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -373,14 +373,14 @@ 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 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const render = {
|
const render = {
|
||||||
bitBondRow(obj) {
|
bitBondRow(obj) {
|
||||||
const { series, currentValue, timeElapsed, percentGain } = obj;
|
const { series, currentValue, timeElapsed, percentGain } = obj;
|
||||||
return html`
|
return html`
|
||||||
<div class="bit-bond-series__row grid">
|
<div class="bit-bond-series__row grid">
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
<h5 class="label color-0-8 weight-500">Series</h5>
|
<h5 class="label color-0-8 weight-500">Series</h5>
|
||||||
@ -396,18 +396,18 @@ 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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
},
|
},
|
||||||
bobFundRow(obj) {
|
bobFundRow(obj) {
|
||||||
console.log(obj);
|
console.log(obj);
|
||||||
const { invested, floId, currentValue, timeElapsed, gain } = obj;
|
const { invested, floId, currentValue, timeElapsed, gain } = obj;
|
||||||
return html`
|
return html`
|
||||||
<div class="bob-fund__row grid">
|
<div class="bob-fund__row grid">
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
<h5 class="label color-0-8 weight-500">FLO ID</h5>
|
<h5 class="label color-0-8 weight-500">FLO ID</h5>
|
||||||
@ -430,13 +430,13 @@ const render = {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
},
|
},
|
||||||
icoInvestorRow(obj, options) {
|
icoInvestorRow(obj, options) {
|
||||||
const { extension, investorName, bio, contribution } = obj;
|
const { extension, investorName, bio, contribution } = obj;
|
||||||
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}`}>
|
||||||
@ -509,8 +509,8 @@ const render = {
|
|||||||
button.textContent = name
|
button.textContent = name
|
||||||
return button;
|
return button;
|
||||||
},
|
},
|
||||||
statusBanner(bannerMsg) {
|
statusBanner(bannerMsg) {
|
||||||
return html.node`
|
return html.node`
|
||||||
<section class="banner">
|
<section class="banner">
|
||||||
<p class="banner__text">${bannerMsg}</p>
|
<p class="banner__text">${bannerMsg}</p>
|
||||||
<button class="close-button" onclick="this.parentNode.remove()">
|
<button class="close-button" onclick="this.parentNode.remove()">
|
||||||
@ -715,11 +715,11 @@ 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))
|
||||||
if (matchedOutlet)
|
if (matchedOutlet)
|
||||||
renderFloorOutlets(floor, matchedOutlet.outletLinks[0].url)
|
renderFloorOutlets(floor, matchedOutlet.outletLinks[0].url)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
6
ico.html
6
ico.html
@ -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 community’s 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.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user