Just copy paste the script to your blog post. Thats it. Enjoy <!-- Quick ADD --> <!-- View Counter BEGIN --> <script> window .onload = function () { var xhr = new XMLHttpRequest(); var url = window .location.href.replace( "https://" , "" ).replace( /\//g , "" ); var urlr = url.substring( 0 , 53 ); //document.getElementById("demo").innerHTML = urlr; xhr.open( "GET" , "https://api.countapi.xyz/hit/" +urlr); xhr.responseType = "json" ; xhr.onload = function () { document .getElementById( "viewcount" ).innerHTML = this .response.value; } xhr.send(); } </script> <h1><span> Views: <span id= "viewcount" ></span></span><h1> <p id= "demo" ></p> <!-- View Counter END --> <!--LikeBtn.com BEGIN--> <span class= "likebtn-wrapper&qu
Comments
Post a Comment