{"id":216624,"date":"2005-06-08T18:23:49","date_gmt":"2005-06-08T18:23:49","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/javascript-in-posts-2\/"},"modified":"2016-08-18T19:52:56","modified_gmt":"2016-08-18T19:52:56","slug":"javascript-in-posts-2","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/javascript-in-posts-2\/","title":{"rendered":"Javascript in posts"},"content":{"rendered":"<p>I&#8217;ve searched through the forums and haven&#8217;t found a good answer to my problem.<\/p>\n<p>I have some horizontal webcomics that are about 850X300px, and they won&#8217;t fit into my current blog theme (760px canvas, with about 500 body and 180 sidebar, with spacers).  My two options are to cut up the comics and post them in a more vertical manner, or simply use a javascript pop-up with a custom window size to display each one as the user clicks on the appropriate link.<\/p>\n<p>This javascript works inside an html page, but not inside a post.  What do I need to do?  <\/p>\n<p>Of course, if anyone has other suggestions as to how to display each comic within the canvas, please let me know.<\/p>\n","protected":false},"template":"","class_list":["post-216624","topic","type-topic","status-closed","hentry","topic-tag-javascripts"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/216624","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\/216624\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=216624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}