ok

Mini Shell

Direktori : /home/importfo/www/apexorthopedicandeyehospital.com/
Upload File :
Current File : /home/importfo/www/apexorthopedicandeyehospital.com/count.php

  <script src="script.js"></script>
  
  		<div id="rs-counter" class="rs-counter style2-about pt-100 md-pt-70" style="padding-bottom: 4px;">
				<div class="container">
					<div class="row couter-area">
						<div class="col-md-3 sm-mb-30">
							<div class="counter-item text-center">
							
								<div class="counter-text"  style="background-color: #0c243c;  height:120px;">
									<center><h2 class="rs-count percent"  style="
    color: white;
    font-weight: 600;
    margin: 13px;
">90</h2>
									<h4 class="title mb-0">Orthopedic Treatment
</h4></center>
								</div>
							</div>
						</div>
						<div class="col-md-3 sm-mb-30">
							<div class="counter-item text-center">
							
								<div class="counter-text"  style="background-color: #0c243c;  height:120px;">
								<center>	<h2 class="rs-count percent"  style="
    color: white;
    font-weight: 600;
    margin: 13px;
">90</h2>
									<h4 class="title mb-0">Eyes Treatments</h4></center>
								</div>
							</div>
						</div>
						<div class="col-md-3">
							<div class="counter-item text-center">

								<center>	<div class="counter-text"  style="background-color:#0c243c;  height:120px;">
								<h2 class="rs-count percent"  style="
    color: white;
    font-weight: 600;
    margin: 13px;
">100</h2>
									<h4 class="title mb-0">Happy Patients
</h4>
								</div></center>
							</div>
						</div>
						<div class="col-md-3">
							<div class="counter-item text-center">
						<center>
								<div class="counter-text"  style="background-color: #0c243c; height:120px;">
                                    <style>
  .counter {
    font-size: 36px; font-weight: bold;text-align: center;color: white;}</style>
									<div class="counter" id="counter" style="padding-top: 14px;">surat
                                        <h4 style="margin-top: 25px; color:white; font-size:24px;">Location</h4></div>

								</div>
                            </center>
							</div>
						</div>
					</div>
				</div>
			</div>
			
			<script>
			    // Function to animate counter numbers
function animateCounter($counter, finalValue) {
    $counter.prop('Counter', 0).animate({
        Counter: finalValue
    }, {
        duration: 2000, // Adjust animation duration as needed
        easing: 'swing',
        step: function (now) {
            $counter.text(Math.ceil(now));
        }
    });
}

// Function to initialize counter animations
function initCounters() {
    $('.rs-count').each(function () {
        var finalValue = parseInt($(this).text(), 10);
        animateCounter($(this), finalValue);
    });
}

// Call initCounters when document is ready
$(document).ready(function () {
    initCounters();
});

			</script>
			
			<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>


<style>
<style>
    /* Counter Section CSS */
#rs-counter {
    padding-top: 3px; /* Adjust as needed */
    background-image: url('assets/images/background/ab.png)');
    background-size: cover;
    background-position: center;
}

@media (max-width: 991px) {
    #rs-counter {
        padding-top: 70px; /* Adjust as needed for smaller devices */
    }
}

.counter-area {
    margin-top: -15px;
}

.counter-item {
    position: relative;
    margin-bottom: 30px;
}

.counter-text {
    position: relative;
}

.rs-count {
    position: relative;
    display: inline-block;
    font-size: 42px;
    line-height: 1;
    color: #112958;
    padding-right: 25px;
    margin-bottom: 15px;
}

.rs-count.percent:before {
    content: '%';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.title {
    font-size: 20px;
    color: #ffffff;
    margin-top: 7px;
}
</style>
</style>

<script>
    // Function to animate counter numbers
function animateCounter($counter, finalValue) {
    $counter.prop('Counter', 0).animate({
        Counter: finalValue
    }, {
        duration: 2000, // Adjust animation duration as needed
        easing: 'swing',
        step: function (now) {
            $counter.text(Math.ceil(now));
        }
    });
}

// Function to initialize counter animations
function initCounters() {
    $('.rs-count').each(function () {
        var finalValue = parseInt($(this).text(), 10);
        animateCounter($(this), finalValue);
    });
}

// Call initCounters when document is ready
$(document).ready(function () {
    initCounters();
});
</script>
		



  


<script>
    <script>
  // Set your target number
  const targetNumber = 100;
  // Set the speed (milliseconds per increment)
  const speed = 10;
  // Get the counter element
  const counterElement = document.getElementById('counter');
  // Calculate the increment value based on speed and target number
  const increment = targetNumber / (1000 / speed);

  let currentNumber = 0;

  // Function to update the counter
  function updateCounter() {
    if (currentNumber < targetNumber) {
      currentNumber += increment;
      // Round to the nearest integer for whole numbers
      counterElement.textContent = Math.round(currentNumber);
      // Update the counter after the specified speed
      setTimeout(updateCounter, speed);
    } else {
      // Ensure the counter displays the exact target number when reached
      counterElement.textContent = targetNumber;
    }
  }

  // Call the function to start the counter
  updateCounter();
</script>
</script>

Zerion Mini Shell 1.0