UnderZ

Javascript Library.

Getting Started.

How to use UnderZ ?


How to include the library in my project?

  1. Get the library file _z.js and place it in your project folder.
  2. Include the library in your html file inside <head> tag, better if it is The First JavaScript Include:
<head>
<script type="text/javascript" src="_z.js"></script>
</head>
  1. Done!.

How to initiate the code when the library starts?

  1. Edit the script tag and add underZ attribute to it:
<head>
<script type="text/javascript" src="_z.js" underZ></script>
</head>
  1. Type your code inside the tag:
<head>
<script type="text/javascript" src="_z.js" underZ>
// add variable to library
_z.var = [ "data", 123 ];
// edit the var variable
_z.var["data2"] = { "char": 'c', "num": 9 };

// clone the library to new var
$ = _z;
</script>
</head>
  1. When the page loads the library, your code will be executed immediately; even if the page is not ready.

How to preform action on element?

Please see: Library Syntax