Friday, December 23, 2016

How to create a Web Clock ?

<html>
<head>
         <script type="text/javascript">
            window.setInterval("updateTime()", 1000);

            function updateTime() {
                var now = new Date();
                var tHrs = now.getHours();
                var tMin = now.getMinutes();
                var tSec = now.getSeconds();
                var tTime = ((tHrs < 10) ? "0" + tHrs : tHrs) + ":" + ((tMin < 10) ? "0" + tMin : tMin) + ":" + ((tSec < 10) ? "0" + tSec : tSec);
                document.getElementById("timeLabel").innerHTML = tTime;

            }
        </script>
</head>


<body>
        <span id="timeLabel"></span></span><span style="cursor: hand; float: right; font-stretch: expanded; padding-right: 10px;">
</body>
</html>

1 comment:

  1. মাত্র 1000 টাকায় সুন্দর ও রুচিশীল ম্যাগািজন ব্লগ ডিজাইন করে নিতে আমাদের সাথে friendallit@gmail.com এ মেইল করে যোগাযোগ করুন অথবা https://www.friendall.cf/ এ ভিজিট করে প্রজেক্ট সাবমিট করুন । এ সুযোগ চলবে আগামী পহেলা জানুয়ারি পর্যন্ত । তাই দেরি না করে আজই মেইল করুন

    ReplyDelete

JWT Authentication in ASP.NET Core Web API

  In this tutorial we'll go through a simple example of how to implement  JWT (JSON Web Token) authentication in an ASP.NET Core 3.0 API...