Category Archives: web

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>
<html>
<head>
<meta charset=”UTF-8″>
<title>Title of the document</title>
<style type=”text/css”>
.my-link {
visibility: hidden;
opacity: 0;

padding: 1em;

transition:
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;
}
</style>
</head>
<body>
<input type=”checkbox” class=”show-my-toggle” checked />
<a href=”#0″ class=”my-link”>Link ascuns</a>
</body>
</html>

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

Share images over internet with snaggy website tool.

This tool can be very suitable for artists who want to fix or to request details in their artistic process.
Also for those who want to report bugs, represented by static images.
Here’s what makes this tool:
capture your screen with your keyboard’s Print Screen key.
use snaggy’s simple editor to crop and annotate your image.
you can also paste selections from your favorite image editor.
paste local files and images from websites into snaggy.

Posted in All, web, Windows 10. Tagged with , , , .

Make firefox addon with node.js and jpm – part 001.

Download the npm from nodejs official website.
Run the windows downloaded program and make your testing directory and run the npm:

The next step is to run the instalation of jpm with this:

Will see also the folders where is the new jpm.
To make your addons you need to login into your firefox dev account and take one generate API credentials.
Then run this commands and fill with data the new addon, like you can see in the next example:

I have this files into my folder free-tutorials.org_addons:

The my_user is my user and you will have the name of your user.
Use the next command to build an XPI.

Into this moment the addon is not signed. If you use about:config will see this:
npm_jpm_addon_signature
Use this link to submit the addon. You need to upload your XPI file and also to follow the steps from mozilla website.
When you done the you can see your addon.
My default example addon version 0.0.1 can be found here: free-tutorials.org addon.
The addon is not signed yet so will need to set xpinstall.signatures.required to false from about:config if you want to install it.
I will make another tutorial about how to do the signed process.

Posted in All, node.js, Programming, web, Windows 10. Tagged with , , , , , , , , , , , .

JavaScript tutorial – part 001

Because many users used javascript with web browser or to make web development I will make few tutorials about JavaScript.
I will try to cover the most important details and features that JavaScript has to offer.
First , the JavaScript language has no concept of input or output because is designed to run as a scripting language in a host environment.
The JavaScript is an object-oriented dynamic language with types and operators, standard built-in objects, and methods.
The syntax is based on the Java and C languages.
JavaScript’s types are:

  • Number
  • String
  • Boolean
  • Function
  • Object
  • Symbol

Because Symbol type is new in Edition 6 then you need to know this: A symbol is a unique and immutable data type and may be used as an identifier for object properties.. See this example with one symbol type definition.

One good website to learn the basics of JavaScript it’s www.w3schools.com.
Let’s try to get screen resolution with javascript.
First you need to make your html file and to add this source code under <script></script>  html tags:

This variables will be used with this source code:

Detecting the screen resolution come when we used variables and then we used that to make redirecting on another page.
How to create an object constructor
This is the source code :

The output will be one window with this text: My_first_name ;

You can test it online with jsbin.com website.

Posted in All, javascript, Programming, web. Tagged with , , , , .

GoJS with random function example.

This is a simple example with GoJS API.
If you want to use into website the you need to buy the API.
Also you can make a try with this example but will have this text:
test

<!DOCTYPE html>
<html>
<head>
<script src=”go-debug.js”></script>
<script id=”code” type=”text/javascript”>
function init(){
var $ = go.GraphObject.make;
var myDiagram =
$(go.Diagram, “myDiagram”,
{
initialContentAlignment: go.Spot.Center, // center Diagram contents
“undoManager.isEnabled”: true,// enable Ctrl-Z to undo and Ctrl-Y to redo
initialContentAlignment: go.Spot.Center,
allowZoom: true,

“grid.gridCellSize”: new go.Size(20, 20),

});

var myModel = $(go.Model);
// in our model data, each node is represented by a JavaScript object:
myModel.nodeDataArray = [
{ key: getRandomColor() },
];

myDiagram.model = myModel;
myPalette =
$(go.Palette, “myPalette”,  // must name or refer to the DIV HTML element
{
nodeTemplate: myDiagram.nodeTemplate,
model: new go.GraphLinksModel([  // specify the contents of the Palette
{ key: “Alpha” },
{ key: “Beta” },
{ key: “Gamma” },
{ key: “Delta” }
])
});
} //init

function getRandomColor() {
var letters = ‘0123456789ABCDEF’.split(”);
var color = ‘#’;
for (var i = 0; i < 6; i++ ) {
color += letters[Math.floor(Math.random() * 16)];
}
return color;
}

</script>
</head>
<body onload=”init()”>
<div style=”width:100%; white-space:nowrap;”>
<span style=”display: inline-block; vertical-align: top; padding: 5px; width:80px”>
<div id=”myPalette” style=”border: solid 1px gray; height: 400px; background-color:#CCCCCC;”></div>
</span>

<span style=”display: inline-block; vertical-align: top; padding: 5px; width:80%”>
<div id=”myDiagram” style=”border: solid 1px gray; height: 400px; background-color:#CCCCCC;”></div>
</span>
</div>
</body>
</html>
The source code will make two areas with four text and the next area will have output of random javascript random function. See this image:
test2

Posted in All, javascript, Programming, web. Tagged with , , , , .