Created
January 29, 2021 13:34
Revisions
-
saurav-sarkar-1 renamed this gist
Jan 29, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
saurav-sarkar-1 created this gist
Jan 29, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,32 @@ <!DOCTYPE html> <html> <head> <title>SDM Google Integration</title> <style> body { background-color: black; text-align: center; color: white; font-family: Arial, Helvetica, sans-serif; } </style> </head> <body> <h1>Embedding google doc as an iframe</h1> <script> function prepareFrame(docid) { var ifrm = document.createElement("IFRAME"); var src = "https://docs.google.com/document/d/" + docid + "/edit?embedded=true" ifrm.setAttribute("src", src); ifrm.style.width = "100vw"; ifrm.style.height = "100vh"; document.body.appendChild(ifrm); } prepareFrame('<pass the google id of a document owned by you'); </script> </body> </html>