hjkhhjhjol;gkhjhjkhjkhjsdfsdfsfdbbcerweriu
bnmbnmbnghjghjgsdfdsfsdfuin
/
home1
/
smileinminutesgr
/
smileinminutes.com
/
Upload FileeE
HOME
<?php require_once 'includes/web.config.php'; require_once 'includes/admin.inc.php'; ?><!DOCTYPE html> <html dir="ltr" lang="en"> <head> <!-- Meta Tags --> <meta name="viewport" content="width=device-width,initial-scale=1.0"/> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <meta name="description" content="Smile In Minutes - Friendly Doctor & Staff � Affordable Pricing � Immediate Response- 24/7 � Save Time and Money" /> <meta name="keywords" content="Top Dental Clinic in Noida, Smile In Minutes Noida, Delhi, India, Best Dental Care in Noida, Best Dentist in Noida, Delhi - Dr Priyanka Gupta (BDS)" /> <meta name="author" content="Shashwat India" /> <!-- Page Title --> <title>Reviews | SMILE IN MINUTES</title> <!-- Favicon and Touch Icons --> <link href="images/favicon.png" rel="shortcut icon" type="image/png"> <!-- Stylesheet --> <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css"> <link href="css/jquery-ui.min.css" rel="stylesheet" type="text/css"> <link href="css/animate.css" rel="stylesheet" type="text/css"> <link href="css/css-plugin-collections.css" rel="stylesheet"/> <!-- CSS | menuzord megamenu skins --> <link id="menuzord-menu-skins" href="css/menuzord-skins/menuzord-boxed.css" rel="stylesheet"/> <!-- CSS | Main style file --> <link href="css/style-main.css" rel="stylesheet" type="text/css"> <!-- CSS | Preloader Styles --> <link href="css/preloader.css" rel="stylesheet" type="text/css"> <!-- CSS | Custom Margin Padding Collection --> <link href="css/custom-bootstrap-margin-padding.css" rel="stylesheet" type="text/css"> <!-- CSS | Responsive media queries --> <link href="css/responsive.css" rel="stylesheet" type="text/css"> <!-- CSS | Style css. This is the file where you can place your own custom css code. Just uncomment it and use it. --> <!-- <link href="css/style.css" rel="stylesheet" type="text/css"> --> <!-- Revolution Slider 5.x CSS settings --> <link href="js/revolution-slider/css/settings.css" rel="stylesheet" type="text/css"/> <link href="js/revolution-slider/css/layers.css" rel="stylesheet" type="text/css"/> <link href="js/revolution-slider/css/navigation.css" rel="stylesheet" type="text/css"/> <!-- CSS | Theme Color --> <link href="css/colors/theme-skin-blue.css" rel="stylesheet" type="text/css"> <link href="https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/4.0.1/ekko-lightbox.min.css" rel="stylesheet" type="text/css"> <!-- external javascripts --> <script src="js/jquery-2.2.4.min.js"></script> <script src="js/jquery-ui.min.js"></script> <script src="js/bootstrap.min.js"></script> <!-- JS | jquery plugin collection for this theme --> <script src="js/jquery-plugin-collection.js"></script> <!-- Revolution Slider 5.x SCRIPTS --> <script src="js/revolution-slider/js/jquery.themepunch.tools.min.17.delaye"></script> <script src="js/revolution-slider/js/jquery.themepunch.revolution.min.18.d"></script> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> <style> .chart { /* width: 500px; */ display: flex; justify-content: space-between; flex-direction: column; height: 100%; float: left; } .chart .rate-box { display: flex; justify-content: center; align-items: center; gap: 15px; height: 30px; padding: 20px 0; padding: 10px; } .chart .rate-box > * { height: 100%; display: flex; align-items: center; font-weight: 500; color: #444; } .rate-box .value { display: flex; align-items: center; } .rate-box .value:hover { color: #66bb6a; } .chart .value { font-size: 30px; cursor: pointer; } .rate-box .progress-bar { border-width: 1px; position: relative; background-color: #cfd8dc91; height: 10px; border-radius: 100px; width: 350px; } .rate-box .progress-bar .progress { background-color: #66bb6a; height: 100%; border-radius: 100px; transition: 300ms ease-in-out; } .global { height: 100%; width: 150px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; margin-left: 60px; float: left; margin-top: -46px; } .one .fas { color: #cfd8dc; } .two { background: linear-gradient(to right, #66bb6a 0%, transparent 0%); -webkit-background-clip: text !important; -webkit-text-fill-color: transparent; transition: 0.5s ease-in-out all; } .global > span { font-size: 90px; font-weight: 500; } .rating-icons { display: flex; justify-content: center; align-items: center; position: relative; width: 100%; height: 10%; } .rating-icons span { position: absolute; display: flex; font-size: 30px; left: 50%; transform: translateX(-50%); margin-bottom: 5px; } .total-reviews { font-size: 25px !important; } </style><?php include('googletagmanager.php'); ?> </head> <body class="has-side-panel side-panel-right fullwidth-page side-push-panel"> <div class="body-overlay"></div> <!-- SIDE MENU BAR --> <?php include('side-menu-bar.php'); ?> <div id="wrapper" class="clearfix"> <!-- preloader --> <!-- preloader --> <div id="preloader"> <div id="spinner"> <img src="images/preloaders/1.gif" alt=""> </div> <div id="disable-preloader" class="btn btn-default btn-sm">Disable Preloader</div> </div> <!-- Header --> <?php include('header.php'); ?> <!-- Start main-content --> <div class="main-content"> <!-- Section: inner-header --> <section class="inner-header divider parallax layer-overlay overlay-dark-8" data-bg-img="images/bg/bg1.jpg"> <div class="container pt-60 pb-60"> <!-- Section Content --> <div class="section-content"> <div class="row"> <div class="col-md-12 xs-text-center"> <h3 class="title text-white">Google Review</h3> <ol class="breadcrumb mt-10 white"> <li><a class="text-white" href="#">Home</a></li> <li class="active text-theme-colored">Google Review</li> </ol> </div> </div> </div> </div> </section> <!-- Section: Appointment --> <div class="main-content"> <!-- Section: Dental Camps --> <section class="video-gallery-section"> <div class="container"> <h3 class="page-header" id="youtube-gallery">Google Review</h3> <div class="row"> <script src="https://static.elfsight.com/platform/platform.js" data-use-service-core defer></script> <div class="elfsight-app-1005e349-48cd-422a-b09f-d1bc430a91b0"></div> </div> </div> </section> </div> <!-- Footer --> <?php include('footer.php'); ?> <a class="scrollToTop" href="#"><i class="fa fa-angle-up"></i></a> </div> <!-- end wrapper --> <!-- Footer Scripts --> <!-- JS | Custom script for all pages --> <script src="js/custom.js"></script> <script src=""> let rateBox = Array.from(document.querySelectorAll(".rate-box")); let globalValue = document.querySelector(".global-value"); let two = document.querySelector(".two"); let totalReviews = document.querySelector(".total-reviews"); let reviews = { 5: 0, 4: 0, 3: 0, 2: 0, 1: 0 }; updateValues(); function updateValues() { rateBox.forEach((box) => { let valueBox = rateBox[rateBox.indexOf(box)].querySelector(".value"); let countBox = rateBox[rateBox.indexOf(box)].querySelector(".count"); let progress = rateBox[rateBox.indexOf(box)].querySelector(".progress"); console.log(typeof reviews[valueBox.innerHTML]); countBox.innerHTML = nFormat(reviews[valueBox.innerHTML]); let progressValue = Math.round( (reviews[valueBox.innerHTML] / getTotal(reviews)) * 100 ); progress.style.width = `${progressValue}%`; }); totalReviews.innerHTML = getTotal(reviews); finalRating(); } function getTotal(reviews) { return Object.values(reviews).reduce((a, b) => a + b); } document.querySelectorAll(".value").forEach((element) => { element.addEventListener("click", () => { let target = element.innerHTML; reviews[target] += 1; updateValues(); }); }); function finalRating() { let final = Object.entries(reviews) .map((val) => val[0] * val[1]) .reduce((a, b) => a + b); // console.log(typeof parseFloat(final / getTotal(reviews)).toFixed(1)); let ratingValue = nFormat(parseFloat(final / getTotal(reviews)).toFixed(1)); globalValue.innerHTML = ratingValue; two.style.background = `linear-gradient(to right, #66bb6a ${ (ratingValue / 5) * 100 }%, transparent 0%)`; } function nFormat(number) { if (number >= 1000 && number < 1000000) { return `${number.toString().slice(0, -3)}k`; } else if (number >= 1000000 && number < 1000000000) { return `${number.toString().slice(0, -6)}m`; } else if (number >= 1000000000) { return `${number.toString().slice(0, -9)}md`; } else if (number === "NaN") { return `0.0`; } else { return number; } } </script> </body> </html>