Tuesday, November 3, 2015

Hosting HTML pages with Google Drive

TL;DR - Put your shared file ID after this URL: https://drive.google.com/host/

Simpler version:
Let's just say you have a HTML page you want to host privately(without paying of course). It could be for a demo purpose(like I have been using for this blog) or to have it available at your disposal always(like a bookmarks or notes archive you don't want in your primary app).

There are many methods, but I believe using Google drive is much simpler(almost everybody has a Google account).

Share your File in Google Drive

I'll assume that you already have your file uploaded to Google Drive.
Right click on the file(yes it works!) and select share.


Now Select Anyone with the link can view in the drop down as shown below:

Then Select copy link.

Now, your copied link should look like this:
https://drive.google.com/file/d/0B4V9Li5VmqqQV3R3NVk1ZnBYMGc/view?usp=sharing

The string within file/d/ and /view? is your file id. Copy it and place it after the following url: 
https://googledrive.com/host/

Now, the result should be something like this:
https://googledrive.com/host/0B4V9Li5VmqqQV3R3NVk1ZnBYMGc

That's the link to view your HTML file in all it's glory!!
If you need a readable(or remeberable URL), use goo.gl(or some other service which allows custom URL shortening) to shorten the URL.

Hope this helped someone. Happy Coding!

Thursday, July 10, 2014

Simple Marquee With Start and Stop Controls

Update: This is not working in chrome(I might work on it..)
I have been looking through this topic for two days and something came to my mind.
By the collective knowledge of the plugins ( and non plugins ) I came across, I learned one thing.Nothing's perfect for me.
Many of them required plugins for this function ( some of them offered additional features like smooth scrolling.. blah.. blah.. blah ).

So, I tried to make something simple and here it is.


I have used setAttribute('scrollamount', 0, 0); for this ( which works flawlessly with Firefox, Chrome, IE with JS support ).

DEMO                                           Download

Till next post, happy designing. 

Tuesday, February 25, 2014

Simple way to use Google fonts in a web page

Used resources: Google fonts, Chrome.
In one of my previous posts , I've explained how to add fonts to photoshop without installing them in the system.
As a web designer, one should take good care of typography in the designs. This is because, the whole internet serves as one big information industry and nothing (not icons, pics, clip arts..) can explain something as neat as a word.
Never fear about what we can do to make content look better. We can start with fonts.
In the case of fonts used in web pages, minimal ones like Open Sans, Sans-sherif, Arial were the dominating families.
To use these fonts, we should get our hands-on a little HTML,CSS and Google fonts.
Google fonts is an online repository, from which we can link and use a huge variety of fonts.

I am going to explain the process of using Open-sans in a simple web page.
First go to the Google fonts page for Open-sans .


Then, we should select the variants (different weights) we want. And then click on the text that says "Collection(1 Font Family)" and copy the tag under "Add this code to your website"

Paste the tag in the HTML file within <head> </head> tags.

Then copy the font-family text and paste it in the CSS property of any (I've used in <h1> and <p>)
tag.

Now, the font styles will be applied for the contents of those tags.


You can use my HTML file for further reference:

DEMO                        DOWNLOAD

Till next post, happy designing. 

Tuesday, February 18, 2014

Add fonts to Adobe (collection) Photoshop without installing fonts

Used resources: Windows XP, Adobe Photoshop CS5, Google Fonts

There are some times, when we really need a different style in a particular text in Photoshop alone.
Thanks to Steve Jobs for making typography an important design factor.

I am a designer. I like minimal fonts like Segoe UI and Open sans.
But Open Sans is not available in the Windows OS by default. We have to install it.
You can do it by opening fonts folder by Run>Fonts and then drag & drop the fonts (font files have .ttf or .otf as extensions. You can download a huge collection from web. Just search google) into it to install.
But, what if we want the font to appear in Photoshop alone (without installing)?
There's a folder, in which the Adobe looks for User installed fonts:(default installation)
C:\Program Files\Common Files\Adobe\Fonts\



If you want many styles in a single font, place the fonts inside a folder like this:


Then copy that folder to the Adobe fonts folder mentioned above.

Now, the font will appear in Photoshop with styles next to it:


Thanks for reading. follow@saravanapriyanm