Iklan

How to Upload Files JavaScript and CSS in Github.com

How to Upload Files JavaScript and CSS in Github.com


On this time Gowidget will share how to save files JavaScript and CSS on Github. For users of web / blog or those who like the brain tweaking certainly need a blog template file storage such as JavaScript and CSS to shorten or summarize the file.

After some time ago Google has announced that Google Code will be disabled, and they recommend to use one of the best hosting service provider that GitHub to store external file.

How to Save Files JavaScript in Github
     
Please you follow the tutorial below:
1. Please list and Create an account in Github.com
2. Complete list please login with your Github account.
3. Select the "New Repository" on the Tab Menu section on the website, please look and see pictures and you choose "New Repository".


How to Upload Files JavaScript and CSS in Github.com


3. You will then be posted on the project, here you will create a folder where the files belong to you (you already uploaded). Follow the steps as shown below:

How to Upload Files JavaScript and CSS in Github.com


4. Then click the Plus (Create A New File Here) as shown below:

How to Upload Files JavaScript and CSS in Github.com

5. If so, please enter your upload JavaScript you want to save here. Give the name of the project is up to you and must use an extension in accordance with the type of file you want to upload, for example, if you insert JavaScript then the file name must be file.js or file.css

How to Upload Files JavaScript and CSS in Github.com


6. Then click Commit to save the new file that you created the project.

How to Upload Files JavaScript and CSS in Github.com

7. Next you will go back to the page previously, right click on the file and copy the link address.

How to Upload Files JavaScript and CSS in Github.com


8. Go to page Rawgit.com  Paste link (your project from github) look at the example in the figure below, and copy the link in the box as shown below. Select only the links that I put a red box as shown below.

How to Upload Files JavaScript and CSS in Github.com


So please use the links that you get, for example in the blog template, widgets and so forth. Example:

<script src = 'https: //cdn.rawgit.com/gowidget051/gowidget/master/examplecode.js'> 
</ script>

So how to upload files CSS to Github, may be useful

Next
Prev Post
Previous
Next Post
Buka Komentar