{"id":232,"date":"2021-12-11T04:49:59","date_gmt":"2021-12-10T20:49:59","guid":{"rendered":"http:\/\/www.forillusion.com\/?page_id=232"},"modified":"2023-08-17T22:29:05","modified_gmt":"2023-08-17T14:29:05","slug":"time","status":"publish","type":"page","link":"https:\/\/www.forillusion.com\/index.php\/tools\/time\/","title":{"rendered":"<p style=\"display: none;\">Time<\/p>"},"content":{"rendered":"\n<p style=\"font-size:100px;text-align:center;color:#404040;\" id=\"p1\"><span id=\"date\" class=\"datecss\"><\/span><\/p>\n<p style=\"font-size:200px;text-align:center;color:#404040;\" id=\"p2\"><span id=\"time\" class=\"timecss\"><\/span><\/p>\n<\/br>\n<p style=\"font-size:200px;text-align:center;color:#404040;\" id=\"p2\"><\/p>\n<script src=\"https:\/\/cdn.jsdelivr.net\/npm\/jquery@3.5.1\/dist\/jquery.min.js\"><\/script>\n<script>\n            var m=0;\n\t\t\tfunction run(t2){\n\t\t\t\tvar m1=Math.round(new Date() \/ 1000);\n                var m2=Number(t2);\n\t\t\t\t\/\/var m2=Number(t4[0])*3600+Number(t4[1])*60+Number(t4[2]);\n\t\t\t\tm=m1-m2;\n\t\t\t}\n\t\t\t\n\t\t\t$.getJSON('http:\/\/api.k780.com\/?app=life.time&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=json',function(result){\n\t\t\t\trun(result.result.timestamp);});\n\t\t\t\n\t\t\tfunction showdate(){\n\t\t\t\tvar date = new Date();\n\t\t\t\tvar year = date.getFullYear();\n\t\t\t\tvar month = date.getMonth()+1;\n\t\t\t\tmonth=month<10?\"0\"+month:month;\n\t\t\t\tvar day = date.getDate();\n\t\t\t\tday=day<10?\"0\"+day:day;\n\t\t\t\tvar date = year+\".\"+month+\".\"+day;\n\t\t\t\tdocument.getElementById(\"date\").innerHTML = date;\n\t\t\t}\n\t\t\t\t\n\t\t\tfunction show(){\n                showdate();\n\t\t\t\tvar date = new Date();\n\t\t\t\tvar m3=date.getHours()*3600+date.getMinutes()*60+date.getSeconds();\n\t\t\t\tvar m4=m3-m;\n\t\t\t\t\n\t\t\t\tvar hour = parseInt(m4\/3600).toString();\n\t\t\t\thour= hour<10?\"0\"+ hour: hour;\n\t\t\t\tvar minute = parseInt((m4%3600)\/60).toString();\n\t\t\t\tminute=minute<10?\"0\"+minute:minute;\n\t\t\t\tvar second = (m4%60).toString();\n\t\t\t\tsecond=second<10?\"0\"+second:second;\n\t\t\t\t\n\t\t\t\tvar time =hour+\":\"+minute+\":\"+second ;\n\t\t\t\tdocument.getElementById(\"time\").innerHTML = time;\n\t\t\t}\n\t\t\tshow();\n\t\t\tsetInterval(\"show()\",100);\n\t\t<\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":254,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-232","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/pages\/232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/comments?post=232"}],"version-history":[{"count":0,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/pages\/232\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/pages\/254"}],"wp:attachment":[{"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/media?parent=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}