{"id":12575973,"date":"2020-03-23T22:14:52","date_gmt":"2020-03-23T22:14:52","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/javascript-error-175\/"},"modified":"2020-03-23T22:14:52","modified_gmt":"2020-03-23T22:14:52","slug":"javascript-error-175","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/javascript-error-175\/","title":{"rendered":"JavaScript Error"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>I am having JavaScript error at https:\/\/weloveblogging.com\/wp-content\/themes\/vmag\/js\/vmag-custom.js?ver=1.1.6.1560616008<\/p>\n<p>It&#8217;s saying &#8220;vmag-custom.js?ver=1.1.6.1560616008:150 Uncaught TypeError: Cannot set property &#8216;innerHTML&#8217; of null&#8221;<\/p>\n<p>\/*Time*\/<br \/>\n\tvar myVar = setInterval(function() {<br \/>\n\t    vmagTime();<br \/>\n\t}, 100);<\/p>\n<p>\tfunction vmagTime() {<br \/>\n\t    var d = new Date();<br \/>\n\t    document.getElementById(&#8220;time&#8221;).innerHTML = d.toLocaleTimeString();<br \/>\n\t}\t<\/p>\n<p>Open attached file to view the problem: https:\/\/weloveblogging.com\/untitled\/<\/p>\n<p>I don&#8217;t know JavaScript. Let me know what to do.<\/p>\n<p>Thank you.<\/p>\n","protected":false},"template":"","class_list":["post-12575973","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12575973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12575973\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12575973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}