315 lines
16 KiB
HTML
315 lines
16 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>RanchiMall</title>
|
|
<meta name="description" content="">
|
|
<link rel="shortcut icon" href="assets/RM logo.png" type="image/png">
|
|
<link rel="stylesheet" href="assets/css/main.min.css">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com">
|
|
<link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300..900&display=swap" rel="stylesheet">
|
|
</head>
|
|
|
|
<body data-theme="light">
|
|
<sm-notifications id="notification_drawer"></sm-notifications>
|
|
<!-- Popup -->
|
|
|
|
<section id="elevator_popup" class="grid hide-completely">
|
|
<header class="elevator__header">
|
|
<button class="close-button justify-self-start" onclick="hideSiteMap()">
|
|
<svg class="icon icon-only close-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24"
|
|
height="24">
|
|
<path fill="none" d="M0 0h24v24H0z" />
|
|
<path
|
|
d="M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z" />
|
|
</svg>
|
|
</button>
|
|
</header>
|
|
<ul id="floor_list" class="grid"></ul>
|
|
</section>
|
|
|
|
<!-- -->
|
|
|
|
<header id="main_header" class="grid align-center full-bleed">
|
|
<button id="elevator_button" class="button" onclick="showSiteMap()">
|
|
<svg class="icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M12 3L16.3301 10.5H7.66987L12 3Z" />
|
|
<path d="M12 21L7.66987 13.5L16.3301 13.5L12 21Z" />
|
|
</svg>
|
|
<span class="button__label">
|
|
Elevator
|
|
</span>
|
|
</button>
|
|
<a href="index.html" class="main-logo flex align-center page-link justify-self-center" data-target="home_page">
|
|
<svg id="main_header__logo" class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
<path
|
|
d="M20.46,21.32C20,19.78,18.6,18.59,15.3,17a12.67,12.67,0,0,1-2.64-1.56,4.27,4.27,0,0,1-.79-1,2.6,2.6,0,0,1,0-1.41c.24-.68.49-1,2.43-2.85a7.18,7.18,0,0,0,2.09-2.92,4.25,4.25,0,0,0,0-1.77,6.52,6.52,0,0,0-2.85-3.11c-.56-.36-.81-.4-.81-.15a2.33,2.33,0,0,1-.18.45L12.4,3l-.53-.36c-.28-.21-.64-.41-.77-.49s-.46-.11-.46,0a6.21,6.21,0,0,1-.37.83s-.08,0-.17-.08c-1.15-.83-1.64-1-1.64-.73A7.33,7.33,0,0,1,7.7,3.65C6.48,5.68,5.24,6.7,4,6.7c-.56,0-.54,0-.37.64s.2.58.68.43a3.37,3.37,0,0,0,1.09-.54.86.86,0,0,1,.3-.17,1.34,1.34,0,0,1,.13.39.79.79,0,0,0,.17.4A3.5,3.5,0,0,0,7.37,7.3L7.8,7l.09.34c.12.45.19.51.62.39a4.25,4.25,0,0,0,2.17-1.54l.38-.45,0,.39A5.92,5.92,0,0,1,8.89,9.54L7.67,10.71c-2,1.93-1.89,3.51.37,5a27.41,27.41,0,0,0,2.89,1.51c.17.07.62.32,1,.54C14,19,15,20.23,15,21.48a2,2,0,0,0,0,.49h0c0,.05,0,.05.56-.1a1.89,1.89,0,0,0,.53-.21,2.41,2.41,0,0,0-.34-1.15,7.05,7.05,0,0,0-1.68-1.77,21.91,21.91,0,0,0-3.2-1.83A9.53,9.53,0,0,1,8.16,15.2a2.18,2.18,0,0,1-.74-1.55C7.42,12.79,7.86,12,9,11c1.77-1.64,2.45-2.45,2.92-3.55a2.28,2.28,0,0,0,.26-1.26A2,2,0,0,0,12,5.06l-.2-.45L12,4.3l.28-.49.09-.18L12.6,4a3.69,3.69,0,0,1,.61,1.76A3.47,3.47,0,0,1,12.94,7l-.09.25s-.21.37-.41.69A17.78,17.78,0,0,1,9.91,10.6c-1.07,1-1.43,1.62-1.47,2.47a2.05,2.05,0,0,0,.7,1.73,10.47,10.47,0,0,0,3.28,2.08c2.28,1.13,3.26,1.81,4,2.73a2.94,2.94,0,0,1,.74,1.75,1.26,1.26,0,0,0,.09.57.48.48,0,0,0,.26,0l.51-.13.29-.08,0-.28c-.13-1-1-2-2.47-3a25.52,25.52,0,0,0-3.26-1.77,8.59,8.59,0,0,1-2.23-1.43,2.09,2.09,0,0,1-.5-2.62c.26-.53.5-.83,2.35-2.6,1.51-1.45,2.15-2.58,2.15-3.79A3.67,3.67,0,0,0,13,3.48a3,3,0,0,1-.4-.42A1.85,1.85,0,0,1,13,2.33a6.74,6.74,0,0,1,1.83,1.73,2.62,2.62,0,0,1,.47,1.68,3,3,0,0,1-.55,1.84c-.45.78-.79,1.14-2.67,2.93a5.56,5.56,0,0,0-1.3,1.64,1.77,1.77,0,0,0-.21,1,1.76,1.76,0,0,0,.19.92,6.28,6.28,0,0,0,2.9,2.34,21.6,21.6,0,0,1,3.66,2c1.35,1,2,2,2,3a1.06,1.06,0,0,0,.05.47,2.83,2.83,0,0,0,1-.24C20.56,21.68,20.56,21.66,20.46,21.32ZM7.29,6.4h0a2.23,2.23,0,0,1-.9.28L6,6.72l.43-.53a15.22,15.22,0,0,0,1.89-3,3.52,3.52,0,0,1,.38-.67c.07-.08.49.2,1,.64l.39.35L9.66,4A6.7,6.7,0,0,1,7.29,6.4Zm3.58-1.11A5.8,5.8,0,0,1,9.25,6.51h0a3.3,3.3,0,0,1-.74.17l-.35,0,.39-.49a15.64,15.64,0,0,0,1.32-2,4.63,4.63,0,0,1,.28-.49c.06-.08.33.26.57.77l.28.57Zm1-1.4a1.63,1.63,0,0,1-.28.4A6.63,6.63,0,0,1,11,3.72l-.53-.56.12-.29c.2-.49.24-.51.64-.19a5.57,5.57,0,0,1,.85.78A2.78,2.78,0,0,1,11.87,3.89Z" />
|
|
</svg>
|
|
<h4 class="h4 header__company-name">RanchiMall</h4>
|
|
</a>
|
|
<theme-toggle></theme-toggle>
|
|
</header>
|
|
<article id="home_page" class="page">
|
|
<!-- <aside id="floor_line_map" class="grid">
|
|
<div class="flex line-map justify-center">
|
|
<div id="floor_line_map__circle" class="line-map__circle"></div>
|
|
<div class="line-map__bar"></div>
|
|
</div>
|
|
<div id="floor_label_container"></div>
|
|
</aside> -->
|
|
<main id="floor_container" class="grid"></main>
|
|
</article>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.3/gsap.min.js"></script>
|
|
<script src="assets/js/components.js"></script>
|
|
<script src="https://unpkg.com/uhtml@3.0.1/es.js"></script>
|
|
<script src="assets/js/index.js"></script>
|
|
<script>
|
|
|
|
const icoInvestors = [
|
|
{
|
|
extension: 'jpg',
|
|
investorName: 'Abhijeet Das Gupta',
|
|
bio: 'Product and Technology Solutions Architect at 366Pi Technologies',
|
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
|
},
|
|
{
|
|
extension: 'jpg',
|
|
investorName: 'Amit Jagetia',
|
|
bio: 'IT Professional in FinTech Industry',
|
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
|
},
|
|
{
|
|
extension: 'jpg',
|
|
investorName: 'Amitesh Anand',
|
|
bio: 'Co-founder and CEO, 366Pi Technologies and Director of Technology, Fennex Ltd.',
|
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
|
},
|
|
{
|
|
extension: 'jpg',
|
|
investorName: 'Atul Agarwal',
|
|
bio: 'Entrepreneur, Real Estate Developer, Blockchain Entrepreneur, Iconoclast',
|
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
|
},
|
|
{
|
|
extension: 'jpg',
|
|
investorName: 'Barun Kumar',
|
|
bio: 'Cybersecurity Professional, Founder of Mantran Consulting, Singapore',
|
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
|
},
|
|
{
|
|
extension: 'jpg',
|
|
investorName: 'Janardan Tiwary',
|
|
bio: 'Retd. General Manager Coal India, Ranchi, Mining Engineer from IIT Dhanbad',
|
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
|
},
|
|
{
|
|
extension: 'jpg',
|
|
investorName: 'Kanwal Koul',
|
|
bio: 'Working Professional in the power sector',
|
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
|
},
|
|
{
|
|
extension: 'jpg',
|
|
investorName: 'Mansoor Ahmed',
|
|
bio: 'Cybersecurity Expert, Founder, and Director Winged World',
|
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
|
},
|
|
{
|
|
extension: 'jpg',
|
|
investorName: 'Meghna Patel',
|
|
bio: 'Marketing Professional turned Blockchain Enthusiast',
|
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
|
},
|
|
{
|
|
extension: 'jpg',
|
|
investorName: 'Nikhil Kulkarni',
|
|
bio: 'CTO and Co-Founder of tripDarwin.com',
|
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
|
},
|
|
{
|
|
extension: 'jpg',
|
|
investorName: 'Pankaj Miglani',
|
|
bio: 'Professional Services Consultant at AWS Cybersecurity',
|
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
|
},
|
|
{
|
|
extension: 'jpg',
|
|
investorName: 'Rajeev Kumar Gupta',
|
|
bio: 'Curator cum Organizer, TEDx Kanke, and Former DGM-Corporate & Regulatory Affairs at JWS Steel ',
|
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
|
},
|
|
{
|
|
extension: 'jpg',
|
|
investorName: 'Sudhir Taneja',
|
|
bio: 'Sales and Marketing Professional, Associate Vice President, HDFC Life',
|
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
|
},
|
|
{
|
|
extension: 'jpg',
|
|
investorName: 'Varucchi Dubey',
|
|
bio: 'Founder and Managing Director, DNV Security Solutions Pvt Ltd.',
|
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
|
},
|
|
{
|
|
extension: 'jpg',
|
|
investorName: 'Venkat Narayanan',
|
|
bio: 'Business Excellence Professional, Sr. Manager at Tata Consultancy Services',
|
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
|
},
|
|
]
|
|
|
|
function renderAllSeries() {
|
|
const bonds = bitBondSeries.map((series, index) => {
|
|
return render.bitBondRow(series)
|
|
})
|
|
renderElem(getRef('bit_bond_series__container'), html`${bonds}`)
|
|
}
|
|
function renderAllFundInvestors() {
|
|
const funds = bobFund.map(investor => render.bobFundRow(investor))
|
|
renderElem(getRef('bob_fund_investors__container'), html`${funds}`)
|
|
}
|
|
function renderAllIcoInvestors() {
|
|
const frag = document.createDocumentFragment()
|
|
getRef('ico_investors__container').innerHTML = ''
|
|
icoInvestors.forEach(investor => {
|
|
frag.append(render.icoInvestorRow(investor, { thumbnail: true }))
|
|
})
|
|
getRef('ico_investors__container').append(frag)
|
|
}
|
|
/* renderAllIcoInvestors()
|
|
renderAllSeries()
|
|
renderAllFundInvestors() */
|
|
|
|
|
|
function showOutletSwitcher(button) {
|
|
if (isOutletSwitcherOpen) return
|
|
isOutletSwitcherOpen = true
|
|
const buttonDimensions = button.getBoundingClientRect()
|
|
getRef('outlet_switcher').setAttribute('style', `top: ${buttonDimensions.top + document.documentElement.scrollTop}px; left: ${buttonDimensions.left}px;`)
|
|
getRef('outlet_switcher').classList.remove('hide')
|
|
getRef('outlet_switcher').animate(slideInDown, {
|
|
duration: 300,
|
|
easing: easeOutOvershoot,
|
|
fill: 'forwards'
|
|
})
|
|
}
|
|
|
|
const allOutletCarousels = document.querySelectorAll('.outlet-preview sm-carousel')
|
|
|
|
let homepagePercent = floorLineMapPercent = 0
|
|
// const RO = new ResizeObserver(entries => {
|
|
// entries.forEach(entry => {
|
|
// homepagePercent = getRef('floor_container').scrollHeight / 100
|
|
// floorLineMapPercent = getRef('floor_line_map').getBoundingClientRect().height / 100
|
|
// renderAllFloorLabels()
|
|
// updatePos()
|
|
// });
|
|
// })
|
|
// RO.observe(document.body)
|
|
function getScrollPercent() {
|
|
const root = getRef('home_page')
|
|
return (root.scrollTop) / ((root.scrollHeight) - root.clientHeight) * 100;
|
|
}
|
|
|
|
// getRef('home_page').addEventListener('scroll', e => {
|
|
// throttle(updatePos, 1000 / 30)
|
|
// }, { passive: true })
|
|
|
|
function updatePos() {
|
|
window.requestAnimationFrame(() => {
|
|
getRef('floor_line_map__circle').setAttribute('style', `transform: translateY(${(getScrollPercent()) * (floorLineMapPercent)}px)`)
|
|
})
|
|
}
|
|
|
|
|
|
function renderAllFloorLabels() {
|
|
const frag = document.createDocumentFragment()
|
|
document.querySelectorAll('.floor').forEach((floor, index) => {
|
|
getRef('floor_label_container').innerHTML = ''
|
|
const top = ((floor.getBoundingClientRect().top - getRef('floor_container').getBoundingClientRect().top + getRef('floor_container').offsetTop) / homepagePercent) * floorLineMapPercent
|
|
const label = render.floorLabel(index + 1, top)
|
|
frag.append(label)
|
|
})
|
|
getRef('floor_label_container').append(frag)
|
|
}
|
|
|
|
const floorObserver = new IntersectionObserver(entries => {
|
|
entries.forEach(entry => {
|
|
if (entry.isIntersecting) {
|
|
document.querySelector(`.floor-label[data-target="${entry.target.id}"]`).classList.add('floor-label--active')
|
|
}
|
|
else {
|
|
document.querySelector(`.floor-label[data-target="${entry.target.id}"]`).classList.remove('floor-label--active')
|
|
}
|
|
})
|
|
},
|
|
{
|
|
threshold: 0.2
|
|
})
|
|
document.querySelectorAll('.floor').forEach(floor => floorObserver.observe(floor))
|
|
|
|
|
|
function renderFloor(obj) {
|
|
const { floorNo, floor, brief, outlets } = obj
|
|
return html`
|
|
<section id=${`floor_${floorNo + 1}`} class="floor">
|
|
<header class="floor__header grid align-center">
|
|
<h4 class="floor__num">Floor ${floorNo + 1}</h5>
|
|
<h4 class="floor__title">${floor}</h3>
|
|
</header>
|
|
<main id=${`floor_${floorNo + 1}__outlets`} class="grid outlets-container">
|
|
<p>${brief}</p>
|
|
${outlets}
|
|
</main>
|
|
</section>
|
|
`;
|
|
}
|
|
|
|
function renderAllFloors() {
|
|
const floorOutlets = siteMap.map((floor, floorNo) => {
|
|
return renderFloor({ ...floor, floorNo, outlets: renderFloorOutlets(floor.outlets) })
|
|
})
|
|
renderElem(getRef('floor_container'), html`${floorOutlets}`)
|
|
}
|
|
renderAllFloors()
|
|
|
|
function renderOutletPreview(obj) {
|
|
const { outletNo, name, brief, outletLinks } = obj
|
|
return html`
|
|
<section class="outlet-preview">
|
|
<div class="grid outlet-preview__info">
|
|
<h3 class="outlet__title">${name}</h3>
|
|
<p class="outlet__description margin-bottom-1-5r">${brief}</p>
|
|
<div class="flex flex-wrap gap-1-5 justify-start">
|
|
${outletLinks.map(link => renderOutletLink(link))}
|
|
</div>
|
|
</div>
|
|
<div class="grid outlet-preview__number-container">
|
|
<h1 class="outlet-preview__number-title h2 color-0-3 weight-900">Outlet</h1>
|
|
<h1 class="outlet-preview__number" data-number="${outletNo + 1}">${outletNo + 1}</h1>
|
|
</div>
|
|
`;
|
|
}
|
|
function renderOutletLink(linkDetails) {
|
|
const { label, url, outbound } = linkDetails
|
|
return html`
|
|
<a href=${url} class="button outlet-preview__button" target=${outbound ? '_blank' : ''}>
|
|
<span class="button__label">${label}</span>
|
|
</a>
|
|
`
|
|
}
|
|
|
|
function renderFloorOutlets(outlets) {
|
|
return outlets.map((outlet, outletNo) => {
|
|
return renderOutletPreview({ ...outlet, outletNo })
|
|
})
|
|
}
|
|
|
|
|
|
</script>
|
|
</body>
|
|
|
|
</html> |