{"id":26488,"date":"2020-12-26T17:57:00","date_gmt":"2020-12-26T16:57:00","guid":{"rendered":"https:\/\/help.qualiware.it\/qw-help\/?p=26488"},"modified":"2022-12-14T12:24:39","modified_gmt":"2022-12-14T11:24:39","slug":"visualizzazione-dellorologio-tramite-evento-renderclient","status":"publish","type":"post","link":"https:\/\/help.qualiware.it\/qw-help\/visualizzazione-dellorologio-tramite-evento-renderclient\/","title":{"rendered":"Visualizzazione dell&#8217;orologio tramite evento RenderClient"},"content":{"rendered":"<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\">\/\/ Il seguente frammento di codice pu\u00f2 essere inserito nell'EventoRenderClient per visualizzare\r\n\/\/ l'orologio in un form sia desktop che mobile\r\n\r\nvar clock=setInterval(function(){ \r\n\r\n\tif ($('#&lt;Label1&gt;').length&gt;0) {\r\n\t\tvar today = new Date();\r\n\t\tvar time = today.getHours() + \":\" + today.getMinutes() + \":\" + today.getSeconds();\r\n\t\t$('#&lt;Label1&gt;').setLabel(time) \r\n\t}\r\n\telse\r\n\t\tclearInterval(clock)\r\n\t\r\n\t}, 100);\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\/\/ Il seguente frammento di codice pu\u00f2 essere inserito nell&#8217;EventoRenderClient per visualizzare \/\/ l&#8217;orologio in un form sia desktop che mobile var clock=setInterval(function(){ if ($(&#8216;#&lt;Label1&gt;&#8217;).length&gt;0) { var today = new Date(); var time = today.getHours() + &#8220;:&#8221; + today.getMinutes() + &#8220;:&#8221; + today.getSeconds(); $(&#8216;#&lt;Label1&gt;&#8217;).setLabel(time) } else clearInterval(clock) }, 100);<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"ngg_post_thumbnail":0,"footnotes":""},"categories":[65],"tags":[88],"acf":[],"_links":{"self":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/26488"}],"collection":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/comments?post=26488"}],"version-history":[{"count":2,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/26488\/revisions"}],"predecessor-version":[{"id":29739,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/26488\/revisions\/29739"}],"wp:attachment":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/media?parent=26488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/categories?post=26488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/tags?post=26488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}