opening html from google drive

后端 未结 9 563
夕颜
夕颜 2020-12-24 05:31

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

相关标签:
9条回答
  • 2020-12-24 05:45

    I don't think it is necessary to "host" the content using the way from the accepted answer. It is too complicated for a normal user with limited developing skills.

    Google actually has provided hosting feature without using Drive SDK/API, what you need is just few clicks. Check this out:

    http://support.google.com/drive/bin/answer.py?hl=en&answer=2881970

    It is the same to the answer of user1557669. However, in step 4, the URL is not correct, it is like:

    https://drive.google.com/#folders/...

    To get the correct host URL. Right click on the html file (you have to finish 1-3 steps first and put the html in the public shared folder), and select "Details" from the context menu. You will find the hosting URL right close to the bottom of the details panel. It should look like:

    https://googledrive.com/host/.../abc.html

    Then you can share the link to anyone. Happy sharing.

    0 讨论(0)
  • 2020-12-24 05:45

    A lot of the solutions offered here do not seem to work anymore. I'm currently on a chromebook and wanted to view an HTML5 banner. This seems impossible now through Google Drive or other apps (as mentioned in previous comments).

    The method I ended up using to view the HTML5 was the following:

    1. Open Google Adwords (create a free account if you dont have one)
    2. Click on Ads in the top panel
    3. Click on "+AD" and choose image ad
    4. Choose "upload an ad"
    5. Drag and drop your zip file into the area
    6. Click on Preview
    7. Voila, you will see your HTML5 banners in their full beauty

    There may well an easier way, but this way is pretty good too. Hope it helps and worked well for me.

    0 讨论(0)
  • 2020-12-24 05:59

    Steps:

    1. Upload html file to the google drive and share it as "Public on the web" after uploading just make sure that the content of your html is not modified in the drive.
    2. Right click on the shared file and click on 'Get link' and save it to notepad it will look something like 'https://drive.google.com/open?id=0B55nkHvMDw18T3VaYjY3NEE4SEE'
    3. Take the code (about 28 character alphanumeric) after '=' sign from the above link and paste it after 'https://googledrive.com/host/' now 'https://googledrive.com/host/0B55nkHvMDw18T3VaYjY3NEE4SEE' is your actual sharable url link, open the html file from address bar of the browser using this url.
    0 讨论(0)
  • 2020-12-24 06:01
    1. Create a new folder in Drive and share it as "Public on the web."
    2. Upload your HTML, JS & CSS files to this folder.
    3. Open the HTML file & you will see "Preview" button in the toolbar.
    4. Share the URL that looks like www.googledrive.com/host/... from the preview window and anyone can view your web page.
    0 讨论(0)
  • 2020-12-24 06:02

    Found method to see your own html file (from here (scroll down to answer from prac): https://productforums.google.com/forum/#!topic/drive/YY_fou2vo0A)

    -- use Get Link to get URL with id=... substring -- put uc instead of open in URL

    0 讨论(0)
  • 2020-12-24 06:07

    Now you can use https://sites.google.com

    Build internal project hubs, team sites, public-facing websites, and more—all without designer, programmer, or IT help. With the new Google Sites, building websites is easy. Just drag content where you need it.

    0 讨论(0)
提交回复
热议问题