getHours() 12-hour format

July 29, 2016 admin 0

This Function will give the perfect time format in 1-12 hours   Javascript Function: function getClockTime(id){ var now = new Date(); var hour = now.getHours(); […]

Facebook Dynamic share button url(data-href)

April 30, 2015 admin 0

For JavaScript: <script language=”javascript”> function fbshareCurrentPage() {window.open(“https://www.facebook.com/sharer/sharer.php?u=”+escape(window.location.href)+”&t=”+document.title, ”, ‘menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600’);return false; } </script>   To call the facebook share button: <a href=”javascript:fbshareCurrentPage()” target=”_blank” alt=”Share on Facebook”>Facebook</a>   […]