Category Archives: HTML 5

Rainbow example with jQuery.

This simple example show you how to use jquery with html tags.

<!DOCTYPE html>
<title>rainbow example</title>
<script src=”../js/jquery-2.2.0.js”></script>
<script>for(d=document,i=0;k=i>>1,k<7;setTimeout(function(w){d.getElementById(w).id=”x”+w},555*k,i++))d.write(“<b id=”+i+”><style>b{width:0;height:0;transition:width 1s,height 1s;border-radius:70ex 70ex 0 0;position:fixed;bottom:-4ex}#x”+i+”{left:”+(9+4*k)+”ex;width:”+(80-6*k)+”ex;height:”+(40-3*k)+”ex;box-shadow:”+(i%2&&”inset 0″)+” 0 6ex hsl(“+50*k+”,99%,50%)}</style>”)</script>

Posted in All, HTML 5, javascript, Programming. Tagged with , , , .

How to make one hidden hyperlink .

According to wikipedia the term hyperlink are defined by this words:
In computing, a hyperlink is a reference to data that the reader can directly follow either by clicking or by hovering.[1] A hyperlink points to a whole document or to a specific element within a document. Hypertext is text with hyperlinks. A software system that’s used for viewing and creating hypertext is a hypertext system, and to create a hyperlink is to hyperlink (or simply to link). A user following hyperlinks is said to navigate or browse the hypertext.

Today I will show one simple effect like hidden hyperlink.
I will use one checkbox to make it visible.
Let’s see the source code:
<!DOCTYPE html>
<meta charset=”UTF-8″>
<title>Title of the document</title>
<style type=”text/css”>
.my-link {
visibility: hidden;
opacity: 0;

padding: 1em;

visibility 0.5s ease,
opacity 0.5s ease,
background-color 0.5s ease;

.my-link:focus {
color: #00f;
background-color: #fff;

.show-my-toggle:checked + .my-link {
visibility: visible;
opacity: 1;
<input type=”checkbox” class=”show-my-toggle” checked />
<a href=”#0″ class=”my-link”>Link ascuns</a>

Posted in All, HTML 5, Programming, web. Tagged with , , , .

Top 2016 online editors for javascript and html.

Today I want to show you online editors for html5 and javascript. This online JavaScript editors are great because they allow you to edit your code directly from your browser also to share your code.
I found many editors online but I don’t like it because:
– not free or trial version;
– to complex and hard to use with 17 inch display;
– hard to understand how working and make settings;
– hard to manipulates aditionals files and libraries;
– to many moves with the mouse;
– few users to share content and help you;
– to many options and windows;
This is my top for 2016 and I tested all of this online editors.

Let’s begin with:

1. jsfiddle
– need settings for javascript libraries;
– for javascript online editor – first ad position at the top;
2. cssdeck
– simplicity goes here;
– complex editor with many features:html,javascript,php,python 2.7.6 version, running under cloud with apache, node.js;
– for javascript it’s simple to develop your project;
– for real development online – first ad position at the top;
4. rendera.herokuapp
– very simple editor;
– with source code template and examples;
– default html5;
– one click add javascript libraries;
– features for Pro like Dropbox backup, private bins;
– simple online editor;
– you can choose your libraries and find externals libraries;
– many settings like: chat , stream, templates;
– good , but I don’t like to acces my google account;

Posted in All, HTML 5, javascript, Programming. Tagged with , , , .

JavaScript – Processing.js 2D library – part 002.

In the last tutorials I told you about studio sketchpad.
Another way to working with processing is to run your script into html files.
If you want to download the processing then you can get it from processing website.
The download will come with an integrated development environment.
If you want to use your processing sketch then you need to make some changes because I will got errors with the IDE.
The changes I make to fix that is to put into the top of your sketch Ball ball001; and MovingBall mb001;.
See the source code.

The most of this features can be found here.

Posted in All, HTML 5, javascript, Processing.js, Programming. Tagged with , , , , , , .

JavaScript – Processing.js 2D library – part 001.

This is part 001 from tutorials series about Processing.js.
The javascript library Processing help us to create one good interface with our javascript.
This library come with many features to show into canvas data and infos and also to create 2D and 3D interfaces.
I used to show this features one online editor named studio sketchpad and can be found here
Using this online editor can help you but if you want to use all features then you need to put the library into your html file.
In this tutorial I just use the online editor and later will come with another tutorials about how to set the library.
Make one account of this online editor if you want to save your work.
The development is simple and has some rules.
The script will have two functions setup – for settings and draw – basically will draw the canvas.

This will fill with functions, statements and all the commands available to Processing.js.
Take a look at page references.
On the bottom of the script can also make classes.
This will be created like this:

As can we see classes comes without void and args ().
Let’s how it’s works classes by using two : Ball and MovingBall.
If you want to make one class and then you need to used then use this steps:
– create the class Ball;
– add two functions: update and display;
– add also the possition of the class by using two float variables x,y ;
– because any class need to have one instance then you need one,so put this instance into the class and named like the class Ball;
– this instance will need to take the possition and then to used so you need also two variables: _x and _y;
– if you want to show it then also you need a display function with some 2D/3D primitives;
Also the classes can be created not just to show you the 2D/3D primitives.
Let’s see the source code of this class named Ball.

Let’s make another class named MovingBall.
This class will be like the Ball class and will be extended by Ball class.
This means the all content of Ball class can be used or not by MovingBall.

This MovingBall has the MovingBall extends the Ball with _x,_y and also used super to reference the superclass of a subclass. Take a look where is put the variables x,y and _x,_y into the Ball and MovingBall.
The Ball will get _x,_y possitions and will give it to x,y, also the MovingBall will follow the same rules.
Now I will add one function to MovingBall named drawline, see:

This will set the sets the color used to draw lines and borders around shapes with stroke function and will make one line from x,y to 0,0.
When will run this function will have one line.
Let’s see the MovingBall class:

The first step when you want to using this library is to know how to set the canvas and how to change it.
The size of this canvas can be done with this function: size.
For example : size(400,400) means 400 pixels x 400 pixels.
The background can be change it with background() function and sets the color used for the background.
The smooth function will draw all geometry with smooth (anti-aliased) edges.
Because we want to draw something then you need to fill the setup and draw functions.
Also into setup function will put the new created classes and will used into draw function to draw.
Let’s see the final source code:

You can see my example here:

Posted in All, HTML 5, javascript, Processing.js, Programming. Tagged with , , , , , , .