Skip to content

sylhare/webkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webkit

Generic badge npm version Codacy Badge

Some tests on javascript, CSS and HTML. Because at least with github it can be stored online and I know where to find them. You know that feeling like "I knew how to do it, where did I put that ... oh right I made a junk repo out of it 👍". Are you really reading this? 👀

Start learning

Here are some complete website for web based languages and technologies to learn:

HTML

Here is a list of nice links for HTML:

CSS

Here is a list of nice links for CSS:

Responsive navbar

It is default with bootstrap, but here are some explainations on how to do it yourself:

Colors

Color therory

Make it look good:

HSL, HSV, RGB

BootStrap

Bootstrap is a nice CSS / Javascript framework to build good looking sites, app, blogs, etc.

You can follow the github project here

There are also a lot of layout tools that can be used to either customiser or simplify your life with bootstrap such as :

Isolated bootstrap

If you don't want to have everything bootstrapped but rather only the grid or else, you can isolate bootstrap into another class say .bootstrap-iso with less.

And you can install less with the node.js package manager (npm):

npm install -g less

For proxy errors try this:

npm config set proxy https://<proxy-server-url>:<port>
npm config set https-proxy https://<proxy-server-url>:<port>

Javascript

Here is a list of nice links for Javascript:

Events

Server requests

I have mostly french documentation for that, how to handle server/application or API communication. Ajax and XMLHttpRequest:

Managing JSON

You can load JSON through an XMLHttpRequest.

When you want to transform a JSON object into string or a string into a JSON. Write that in the console (ctr + shift + i) in the browser

var myJSON = { "name": "John", "level": "27" };
myJSON

var myString = JSON.stringify(myJSON);
myString

var myParsed = JSON.parse(myString);
myParsed

Miscellaneous

In Javascript, the will take each element of an array separately.

arr =[1, 2, 3, 4]
String.fromCharCode(…arr)

Will return the string equivalent for all of the element of arr

Test framework

To test your javascript code, you might need the help of some test framework. As in other languages, they are here to help you write better code.