{# <script src="https://pimcore.navabrinditsolutions.com/typesense-js-master/dist/typesense.js"></script> #}
<script src="../../../typesense-js-master/dist/typesense.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&display=swap');
:root{
--orange:#ff7800;
--black:#130f40;
--light-color:#666;
--box-shadow:0 .5rem 1.5rem rgba(0,0,0,.1);
--border:.2rem solid rgba(0,0,0,.1);
--outline:.1rem solid rgba(0,0,0,.1);
--outline-hover:.2rem solid var(--black);
}
* {
font-family: 'serif', sans-serif;
margin:0; padding:0;
box-sizing: border-box;
outline: none; border:none;
text-decoration: none;
text-transform: capitalize;
transition: all .2s linear;
}
html{
font-size: 62.5%;
overflow-x: hidden;
scroll-behavior: smooth;
scroll-padding-top: 7rem;
}
body{
background-color:#FCFFFE!important;
}
.companies{
background-color:#F9F9F9;
}
.home{
background-color:#F9F9F9;
}
.articles{
background-color:#F9F9F9;
}
section{
padding:2rem 9%;
}
.review{
background-color:#F9F9F9;
}
.heading{
text-align: center;
padding:2rem 0;
padding-bottom: 3rem;
font-size: 3.5rem;
color:var(--black);
}
.heading span{
background: var(--orange);
color:#fff;
display:inline-block;
padding:.5rem 3rem;
clip-path: polygon(100% 0, 93% 50%, 100% 99%, 0% 100%, 7% 50%, 0% 0%);
}
.btn{
margin-top: 1rem;
display: inline-block;
padding: .8rem 3rem;
font-size: 1.7rem;
border-radius: .5rem;
border:.2rem solid var(--black);
color:var(--black);
cursor:pointer;
background: none;
}
.ban{
margin-top: 1rem;
display: inline-block;
padding: .8rem 3rem;
font-size: 1.7rem;
border-radius: .5rem;
border:.2rem solid #e5871c !important;
color:#f6f4ea !important;
cursor:pointer;
background: none;
}
.btn:hover{
background: var(--orange);
color:#fff;
}
.header{
position: relative;
top:0; left:0; right:0;
z-index: 1000;
display: flex;
align-items: center;
justify-content: space-between;
padding: 2rem 9%;
background:#fff;
box-shadow: var(--box-shadow);
}
.header .logo{
font-size: 2.5rem;
font-weight: bloder;
color:var(--black);
}
.header .logo i{
color:var(--orange);
}
.header .navbar a{
font-size: 1.7rem;
margin:0 1rem;
color:var(--black);
}
.header .navbar{
margin-right:-600px;
}
.header .navbar a:hover{
color:var(--orange);
}
.header .icons div{
height: 4.5rem;
width: 4.5rem;
line-height: 4.5rem;
border-radius: .5rem;
background:#eee;
color:var(--black);
font-size: 2rem;
margin-right: 1rem;
cursor: pointer;
text-align: center;
}
.header .icons div:hover{
background: var(--orange);
color:#fff;
}
#menu-btn{
display: none;
}
.header .search-form{
position: absolute;
top:110%; right:-110%;
width: 50rem;
height:5rem;
background:#fff;
border-radius: .5rem;
overflow: hidden;
display: flex;
align-items: center;
box-shadow: var(--box-shadow);
}
.header .search-form.active{
right:2rem;
transition: .4s linear;
}
.header .search-form input{
height:100%;
width:100%;
background: none;
text-transform: none;
font-size: 1.6rem;
color:var(--black);
padding:0 1.5rem;
}
.header .search-form label{
font-size: 2.2rem;
padding-right: 1.5rem;
color:var(--black);
cursor: pointer;
}
.header .search-form label:hover{
color:var(--orange);
}
.header .shopping-cart{
position: absolute;
top:110%; right:-110%;
padding:1rem;
border-radius: .5rem;
box-shadow: var(--box-shadow);
width:35rem;
background: #fff;
}
.header .shopping-cart.active{
right:2rem;
transition: .4s linear;
}
.header .shopping-cart .box{
display: flex;
align-items: center;
gap:1rem;
position: relative;
margin:1rem 0;
}
.header .shopping-cart .box img{
height:10rem;
}
.header .shopping-cart .box .fa-trash{
font-size: 2rem;
position: absolute;
top:50% right:2rem;
cursor: pointer;
color:var(--light-color);
transform: translateY(-50%);
}
.header .shopping-cart .box .fa-trash:hover{
color:var(--orange);
}
.header .shopping-cart .box .content h3{
color:var(--black);
font-size:1.7rem;
padding-bottom:1rem;
}
.header .shopping-cart .box .content span{
color:var(--light-color);
font-size:1.6rem;
}
.header .shopping-cart .box .content .quantity{
padding-left: 1rem;
}
.header .shopping-cart .total{
font-size: 2.5rem;
padding: 1rem 0;
text-align: center;
color:var(--black);
}
.header .shopping-cart .btn{
display:block;
text-align:center;
margin:1rem;
}
.header .login-form{
position: absolute;
top:110%; right:-110%;
width:30rem;
box-shadow: var(--box-shadow);
padding:2rem;
border-radius: .5rem;
background:#fff;
text-align:center;
}
.header .login-form.active{
right:2rem;
transition: .4s linear;
}
.header .login-form h3{
font-size: 2.5rem;
text-transform: uppercase;
color: var(--black);
}
.header .login-form .box{
width: 100%;
margin:.7rem 0;
background:#eee;
border-radius: .5rem;
padding:1rem;
font-size: 1.6rem;
color:var(--black);
text-transform: none;
}
.header .login-form p{
font-size: 1.4rem;
padding:.5rem 0;
color:var(--light-color);
}
.header .login-form p a{
color:var(--orange);
text-decoration: underline;
}
.home{
display: flex;
align-items: center;
justify-content: center;
background:url(https://e0.pxfuel.com/wallpapers/347/698/desktop-wallpaper-investment-and-finance-u2013-mishov-trading-stock-market-business-growth-investing-financial-market.jpg) no-repeat;
{# background: url(https://pimcore.navabrinditsolutions.com/admin/asset/get-image-thumbnail?id=99) no-repeat; #}
background-position: center;
background-size: cover;
padding-top:17rem;
padding-bottom:10rem;
}
.home .content{
text-align: center;
width:60rem;
}
.home .content h3{
color:#fbf6ee;
font-size: 3rem;
}
.home .content h3 span{
color:var(--orange);
}
.home .content p{
color:#f2ebd9;
font-size: 14px;
padding:1rem 0;
line-height: 1.8;
font-style:oblique;
}
.companies .box-container{
display:grid;
grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
gap:1.5rem;
}
.companies .box-container .box{
padding:3rem 2rem;
background: #fff;
outline: var(--outline);
outline-offset: -1rem;
text-align:center;
box-shadow:var(--box-shadow);
}
.companies .box-container .box:hover{
outline: var(--outline-hover);
outline-offset: 0rem;
}
.companies .box-container .box img{
margin:1rem 0;
height: 15rem;
}
img{
max-width:100%;
height:auto;
object-fit:fill;
}
.companies .box-container .box h3{
font-size: 2.5rem;
line-height:1.8;
color:var(--black);
}
.companies .box-container .box p{
font-size: 1.5rem;
line-height:1.8;
color:var(--light-color);
padding:1rem 0;
}
.products .product-slider{
padding:1rem;
}
.products .product-slider:first-child{
padding:2rem;
}
.products .product-slider .box{
background:#fff;
border-radius: .5rem;
text-align: center;
padding:3rem 2rem;
outline-offset: -1rem;
outline: var(--outline);
outline: var(--box-shadow);
transition: .2s linear;
}
.products .product-slider .box:hover{
outline-offset: 0rem;
outline: var(--outline-hover);
}
.products .product-slider .box img{
height:20rem;
}
.products .product-slider .box h3{
font-size: 2.5rem;
color:var(--black);
}
.products .product-slider .box .price{
font-size: 2rem;
color:var(--light-color);
padding:.5rem 0;
}
.products .product-slider .box .stars i{
font-size: 1.7rem;
color:var(--orange);
padding: .5rem 0;
}
.categories .box-container{
display:grid;
grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
gap:1.5rem;
}
.categories .box-container .box{
padding:3rem 2rem;
border-radius: .5rem;
background:#fff;
box-shadow: var(--box-shadow);
outline:var(--outline);
outline-offset: -1rem;
text-align:center;
}
.categories .box-container .box:hover{
outline:var(--outline-hover);
outline-offset: 0rem;
}
.categories .box-container .box img{
margin:1rem 0;
height:15rem;
}
.categories .box-container .box h3{
font-size:2rem;
color:var(--black);
line-height: 1.8;
}
.categories .box-container .box p{
font-size: 1.7rem;
color:var(--light-color);
line-height:1.8;
padding:1rem 0;
}
.review .review-slider{
padding:1rem;
}
.review .review-slider .box{
background:#fff;
border-radius: .5rem;
text-align: center;
padding:3rem 2rem;
outline-offset: -1rem;
outline: var(--outline);
outline: var(--box-shadow);
transition: .2s linear;
}
.review .review-slider .box:hover{
outline-offset: 0rem;
outline: var(--outline-hover);
}
.review .review-slider .box img{
height:10rem;
width:10rem;
border-radius: 50%;
}
.review .review-slider .box p{
padding:1rem 0;
line-height: 1.8;
color:var(--light-color);
font-size: 1.5rem;
}
.review .review-slider .box h3{
padding-bottom: .5rem;
color:var(--black);
font-size: 2.2rem;
}
.review .review-slider .box .stars i{
color:var(--orange);
font-size: 1.7rem;
}
.articles .box-container{
display:grid;
grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
gap:1.5rem;
}
.articles .box-container .box{
overflow: hidden;
border-radius: .5rem;
box-shadow: var(--box-shadow);
background:#fff;
}
.articles .box-container .box img{
height:25rem;
width:100%;
object-fit:cover;
}
.articles .box-container .box .content{
padding:2rem;
}
.articles .box-container .box .content .icons{
display: flex;
align-items: center;
justify-content: space-between;
padding-bottom: 1.5rem;
margin-bottom: 1rem;
border-bottom: var(--border);
}
.articles .box-container .box .content .icons a{
color:var(--light-color);
font-size:1.5rem;
}
.articles .box-container .box .content .icons a:hover{
color:var(--black);
}
.articles .box-container .box .content .icons a i{
color:var(--orange);
padding-right: .5rem;
}
.articles .box-container .box .content h3{
line-height: 1.8;
color:var(--black);
font-size: 2.2rem;
padding:.5rem 0;
}
.articles .box-container .box .content p{
line-height: 1.8;
color:var(--light-color);
font-size: 1.5rem;
padding:.5rem 0;
}
.footer{
background: #fff;
}
.footer .box-container{
display:grid;
grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
gap:1.5rem;
}
.footer .box-container .box h3{
font-size: 2.5rem;
color:var(--black);
padding:1rem 0;
}
.footer .box-container .box h3 i{
color:var(--orange);
}
.footer .box-container .box .links{
display: block;
font-size: 1.5rem;
color:var(--light-color);
padding:1rem 0;
}
.footer .box-container .box .links i{
color:var(--orange);
padding-right: .5rem;
}
.footer .box-container .box .links:hover i{
padding-right: 2rem;
}
.footer .box-container .box p{
line-height:1.8;
font-size: 1.5rem;
color:var(--light-color);
padding:1rem 0;
}
.footer .box-container .box .share a{
height:4rem;
width:4rem;
line-height:4rem;
border-radius: .5rem;
font-size: 2rem;
color:var(--black);
margin-left: .2rem;
background:#eee;
text-align: center;
}
.footer .box-container .box .share a:hover{
background:var(--orange);
color:#fff;
}
.footer .box-container .box .email{
width:100%;
margin:.7rem 0;
padding:1rem;
border-radius: .5rem;
background: #eee;
font-size: 1.6rem;
color:var(--black);
text-transform:none;
}
.footer .box-container .box .payment-img{
margin-top: 2rem;
height:5rem;
}
.footer .credit{
text-align:center;
margin-top: 2rem;
padding:1rem;
padding-top: 2.5rem;
font-size:2rem;
color:var(--black);
border-top: var(--border);
}
.footer .credit span{
color:var(--orange);
}
/*media queries*/
@media (max-width:991px){
html{
font-size:55%;
}
.header{
padding:2rem;
}
section{
padding:2rem;
}
}
@media (max-width:768px){
#menu-btn{
display: inline-block;
}
.header .search-form{
width:90%;
}
.header .navbar{
position: absolute;
top:110%; right:-110%;
width:30rem;
box-shadow: var(--box-shadow);
border-radius: .5rem;
background:#fff;
}
.header .navbar.active{
right:2rem;
transition: .4s linear;
}
.header .navbar a{
font-size: 2rem;
margin:2rem 2.5rem;
display: block;
}
}
@media (max-width:450px){
html{
font-size:50%;
}
.heading{
font-size:2.5rem;
}
.footer{
text-align:center;
}
}
.head-active{
color:orange!important;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #F6F6FC;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
margin-left: 340px;
margin-top: 4px;
margin-right: 5px;
}
.dropdown-content li {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
#search-input{
background-color: #EBEBF8;
width: 230px;
height: 35px;
padding: 5px;
margin-right: 186px;
}
.dropdown-content li a{
font-size : 12px!important;
}
</style>
<header class="header">
<a href="https://pimcore.navabrinditsolutions.com/" class="logo"><i class="fas fa-shopping-basket" style="padding-right:5px";></i>News Repos</a>
<nav class="navbar">
<a class="head-menu" id="Home" href="/Companies/Home">home</a>
<a class="head-menu" id="Companies" href="/Companies/Companies">companies</a>
<a class="head-menu" id="Articles" href="/Companies/Articles">articles</a>
<a class="head-menu" id="RatingsReviews" href="/Companies/RatingsReviews">reviews</a>
<input id="search-input" type="text" name="search" placeholder="search companies" onkeyup="search()">
<div id="search-results" class="dropdown-content" style="display:none;"></div>
</nav>
<div class="icons">
<div class="fas fa-bars" id="menu-btn"></div>
</div>
</header>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script>
var typesense = new Typesense.Client({
'nodes': [
{
'host': 'nkmw3sb1yz6qu7c2p-1.a1.typesense.net',
'port': '443',
'protocol': 'https'
}],
'apiKey': 'GY4g1NiCxQ0n757pXqcUdONtSnIRyhMX',
'numRetries': 3, // A total of 4 tries (1 original try + 3 retries)
'connectionTimeoutSeconds': 10,
'retryIntervalSeconds': 0.1,
'healthcheckIntervalSeconds': 2,
'logLevel': 'debug'
})
var enable;
$.ajax({
type: "GET",
url: 'https://pimcore.navabrinditsolutions.com/api/companies/v1/enable',
async: false,
"success":function(resdata){
enable = resdata.message;
}
});
var path = window.location.href;
$('.navbar a').each(function() {
//alert(this.href);
if (this.href === path) {
jQuery(this).addClass('head-active');
}
});
console.log(enable);
function search () {
var searchTerm = document.getElementById('search-input').value
if(searchTerm != ''){
if(enable == true){
typesense.collections('news_repos').documents().search({
'q': searchTerm,
'query_by': ['company_name','country','city','state']
}).then(function (searchResults) {
var keys = Object.keys(searchResults.hits).length;
var i=0;
var results='';
for(i=0; i < keys; i++){
//console.log(searchResults.hits[i].document.id);
var hrefurl = "https://pimcore.navabrinditsolutions.com/companyDetails?id="+searchResults.hits[i].document.id;
console.log(hrefurl);
results += '<li><a href='+hrefurl+'>'+ searchResults.hits[i].document.company_name +'</a></li>';
}
$('#search-results').show();
$('#search-results').html(results);
}).catch(function (error) {
document.getElementById('search-results').innerHTML = error
})
}else{
$.ajax({
type: "POST",
url: 'https://pimcore.navabrinditsolutions.com/api/companies/v1/search',
data: {searchTerm : searchTerm},
"success":function(resdata){
console.log(resdata);
var keys = Object.keys(resdata.message).length;
console.log(keys);
var i=0;
var results='';
if(keys > 0){
for(i=0; i < keys; i++){
var id = resdata.message[i].company_id;
var hrefurl = "https://pimcore.navabrinditsolutions.com/companyDetails?id="+id;
//console.log(resdata.message[i].company_id);
results += '<li><a href='+hrefurl+'>'+ resdata.message[i].company_name +'</a></li>';
}
$('#search-results').show();
$('#search-results').html(results);
}
}
});
}
}else{
$('#search-results').hide();
}
}
</script>