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" data-theme="drop"></span> <script>(function(d,e,s){if(d.getElementById("likebtn_wjs"))return;a=d.createElement(e);m=d.getElementsByTagName(e)[0];a.async=1;a.id="likebtn_wjs";a.src=s;m.parentNode.insertBefore(a, m)})(document,"script","//w.likebtn.com/js/w/widget.js");</script> <!--LikeBtn.com END--> <!-- Pinterest Add in Each Post--> <script> var u = encodeURIComponent(window.location.href); var i = encodeURIComponent(document.images[0].src); var t = encodeURIComponent(document.images[0].alt); document.write('<a data-pin-do="buttonPin" data-pin-count="above" data-pin-tall="true" href="'+'https://www.pinterest.com/pin/create/button/?url='+u+'&media='+i+'&description='+t+'"><\/a>'); </script> <script language="JavaScript" src="dynamic.js"></script> <!-- Pinterest --> <!-- Tumblr --> <a class="tumblr-share-button" href="https://www.tumblr.com/share"></a> <script id="tumblr-js" async src="https://assets.tumblr.com/share-button.js"></script> <!-- Tumblr -->
Comments
Post a Comment