Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

opening html from google drive

I have made a page in html5 with css3. It works fine on local (I dont use any server, just doubleclick in the index to open it).
I want to put it in google drive. I have load all the documents needed, but when I try to open the html, I can only see the text (I mean, it is not being executing, I can see just the source code). Any suggestion?

like image 361
Ane Hervías Caballero Avatar asked Aug 02 '12 11:08

Ane Hervías Caballero


People also ask

How do I open an HTML file from a website in Google Drive?

Create a new folder in Drive and share it as "Public on the web." Upload your HTML, JS & CSS files to this folder. Open the HTML file & you will see "Preview" button in the toolbar. Share the URL that looks like www.googledrive.com/host/... from the preview window and anyone can view your web page.

Can you use Google Drive link for HTML?

Go to drive.google.com, right-click any image file, and choose Get Link to get a shareable link of that image. Make sure that the access is set to Anyone on the internet with this link can view. Paste that file link in the box below to generate the HTML embed code.

Can you run a website from Google Drive?

Create a website straight from Google DriveYou can build a website to view and display your files in many different ways, including a blog or a dashboard. You can even create a digital asset store where you can easily filter through images.


2 Answers

EDIT: As of August 2016 Google Drive can no longer be used to host static web pages, so this solution no longer works.

  1. Create a new folder in Drive and share it as "Public on the web."
  2. Upload your content files to this folder.
  3. Right click on your folder and click on Details.
  4. Copy Hosting URL and paste it on your browser.(e.g. https://googledrive.com/host/0B716ywBKT84AcHZfMWgtNk5aeXM)
  5. It will launch index.html if it exist in your folder other wise list all files in your folder.
like image 26
Dev Avatar answered Sep 18 '22 12:09

Dev


Not available any more, https://support.google.com/drive/answer/2881970?hl=en

Host web pages with Google Drive

Note: This feature will not be available after August 31, 2016.

I highly recommend https://www.heroku.com/ and https://www.netlify.com/

like image 122
Mahmoud Hboubati Avatar answered Sep 17 '22 12:09

Mahmoud Hboubati