"counter-hackaton"
Bootstrap 3.0.0 Snippet by onojagodday

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!-- Add this css in head tag --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.0/css/font-awesome.min.css"> <!-- Here is the section --> <section id="counter" class="counter"> <div class="main_counter_area"> <div class="overlay p-y-3"> <div class="container"> <div class="row"> <div class="main_counter_content text-center white-text wow fadeInUp"> <div class="col-md-3"> <div class="single_counter p-y-2 m-t-1"> <i class="fa fa-heart m-b-1"></i> <h2 id="user-counter" class="statistic-counter">100</h2> <p>Love Our Team</p> </div> </div> <div class="col-md-3"> <div class="single_counter p-y-2 m-t-1"> <i class="fa fa-check m-b-1"></i> <h2 id="resume-counter" class="statistic-counter">100</h2> <p>Resumes</p> </div> </div> <div class="col-md-3"> <div class="single_counter p-y-2 m-t-1"> <i class="fa fa-refresh m-b-1"></i> <h2 id="views-counter" class="statistic-counter">100</h2> <p>Views</p> </div> </div> </div> </div> </div> </div> </div> </section><!-- End of counter Section --> <!-- Add this script before </body> --> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.1/jquery.waypoints.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/Counter-Up/1.0.0/jquery.counterup.min.js"></script>
body{ font-size:18px; font-weight: 400; } .p-y-2 { padding-top: 28px; padding-bottom: 28px; } .p-y-3 { padding-top: 45px; padding-bottom: 45px; } .m-b-1 { margin-bottom: 18px; } .m-t-1 { margin-top: 18px; } /*========================================================== counter section style ============================================================*/ .main_counter_area{ background: url(https://images.pexels.com/photos/196288/pexels-photo-196288.jpeg?w=940&h=650&auto=compress&cs=tinysrgb) no-repeat top center; background-size: cover; overflow: hidden; } .main_counter_area .main_counter_content .single_counter{ background: rgba(236, 72, 72, 0.5); color: #fff; } .main_counter_area .main_counter_content .single_counter i{ font-size:36px; }
var getJSON = function(url) { return new Promise(function(resolve, reject) { var xhr = new XMLHttpRequest(); xhr.open('get', url, true); xhr.responseType = 'json'; xhr.onload = function() { var status = xhr.status; if (status == 200) { resolve(xhr.response); } else { reject(status); } }; xhr.send(); }); }; getJSON('https://rezme.in/stats').then(function(data) { $("#user-counter").text(data.userCount) $("#resume-counter").text(data.resumeCount) $("#views-counter").text(data.views) result.innerText = data.result; //display the result in an HTML element }, function(status) { //error detection.... alert('Something went wrong.'); }); //jQuery('.statistic-counter').counterUp({ //delay: 10, //time: 2000 //});

Related: See More


Questions / Comments: