{"id":3309,"date":"2016-03-11T21:58:52","date_gmt":"2016-03-12T05:58:52","guid":{"rendered":"http:\/\/lisahistory.net\/wordpress\/?p=3309"},"modified":"2025-08-18T13:22:33","modified_gmt":"2025-08-18T20:22:33","slug":"embedding-hypothes-is-in-canvas","status":"publish","type":"post","link":"https:\/\/lisahistory.net\/wordpress\/2016\/03\/embedding-hypothes-is-in-canvas\/","title":{"rendered":"Embedding Hypothes.is in Canvas"},"content":{"rendered":"<p>This is one of those posts I&#8217;m writing so I don&#8217;t forget how to do something.<\/p>\n<p>After testing <a href=\"https:\/\/lisahistory.net\/wordpress\/2016\/03\/annotation-kami-vs-hypothes-is\/\" target=\"_blank\">Hypothes.is for annotations<\/a>, and realizing that the Redirect Tool in canvas would force an ordinary webpage with annotations to only open in a new tab, I figured out something.<\/p>\n<p>Canvas will only embed secure (SSL) pages (those with an address starting <em>https:\/\/<\/em>). All my web pages are just plain ole http. But it turns out that my host, Lunarpages, can create an\u00a0SSL page by just using the URL of the server (https:\/\/fand.lunarserver.com\/username + rest of the URL). So any page I already have can become a secure page by using this URL instead.<\/p>\n<p>So to make this happen automatically, here&#8217;s the workflow:<\/p>\n<p>1. Create my own webpage with text and images.<\/p>\n<p>2. Include the hypothes.is code in the HTML of the page<\/p>\n<pre><a href=\"https:\/\/hypothes.is\/embed.js\">https:\/\/hypothes.is\/embed.js<\/a><\/pre>\n<p>3. Use the Redirect Tool in Canvas, using the URL of the page, but with the Lunarpages server preface (in this case https:\/\/fand.lunarservers.com\/~lisahi2\/)<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3311\" src=\"https:\/\/i0.wp.com\/lisahistory.net\/wordpress\/wp-content\/uploads\/2016\/03\/redirectapp.png?resize=529%2C270&#038;ssl=1\" alt=\"redirectapp\" width=\"529\" height=\"270\" \/><\/p>\n<p>4. Voila:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3310\" src=\"https:\/\/i0.wp.com\/lisahistory.net\/wordpress\/wp-content\/uploads\/2016\/03\/hypothesisincanvas.png?resize=648%2C326&#038;ssl=1\" alt=\"hypothesisincanvas\" width=\"648\" height=\"326\" srcset=\"https:\/\/i0.wp.com\/lisahistory.net\/wordpress\/wp-content\/uploads\/2016\/03\/hypothesisincanvas.png?w=1408&amp;ssl=1 1408w, https:\/\/i0.wp.com\/lisahistory.net\/wordpress\/wp-content\/uploads\/2016\/03\/hypothesisincanvas.png?resize=300%2C151&amp;ssl=1 300w, https:\/\/i0.wp.com\/lisahistory.net\/wordpress\/wp-content\/uploads\/2016\/03\/hypothesisincanvas.png?resize=768%2C387&amp;ssl=1 768w, https:\/\/i0.wp.com\/lisahistory.net\/wordpress\/wp-content\/uploads\/2016\/03\/hypothesisincanvas.png?resize=1024%2C516&amp;ssl=1 1024w, https:\/\/i0.wp.com\/lisahistory.net\/wordpress\/wp-content\/uploads\/2016\/03\/hypothesisincanvas.png?w=1296&amp;ssl=1 1296w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is one of those posts I&#8217;m writing so I don&#8217;t forget how to do something. After testing Hypothes.is for annotations, and realizing that the Redirect Tool in canvas would force an ordinary webpage with annotations to only open in a new tab, I figured out something. Canvas will only embed secure (SSL) pages (those [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_post_was_ever_published":false},"categories":[32,33,10,22],"tags":[],"class_list":["post-3309","post","type-post","status-publish","format-standard","hentry","category-cmslms","category-discussion","category-online-teaching","category-the-web"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/lisahistory.net\/wordpress\/wp-json\/wp\/v2\/posts\/3309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lisahistory.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lisahistory.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lisahistory.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lisahistory.net\/wordpress\/wp-json\/wp\/v2\/comments?post=3309"}],"version-history":[{"count":1,"href":"https:\/\/lisahistory.net\/wordpress\/wp-json\/wp\/v2\/posts\/3309\/revisions"}],"predecessor-version":[{"id":9899,"href":"https:\/\/lisahistory.net\/wordpress\/wp-json\/wp\/v2\/posts\/3309\/revisions\/9899"}],"wp:attachment":[{"href":"https:\/\/lisahistory.net\/wordpress\/wp-json\/wp\/v2\/media?parent=3309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lisahistory.net\/wordpress\/wp-json\/wp\/v2\/categories?post=3309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lisahistory.net\/wordpress\/wp-json\/wp\/v2\/tags?post=3309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}